aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-01-20 16:58:27 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-01-20 16:58:27 +0000
commitdbd862ed36b94261503a72dc70e28bef664aebab (patch)
tree695a23a3b463de6c6b9d559162cb8d7ab983595e /www
parentf70e9e2daef0e10e8bffefbeeb3b80e3687399bf (diff)
downloadports-dbd862ed36b94261503a72dc70e28bef664aebab.tar.gz
ports-dbd862ed36b94261503a72dc70e28bef664aebab.zip
- Add p5-Browser-Open 0.04
The functions optionaly exported by this module allows you to open URLs in the user browser. A set of known commands per OS-name is tested for presence, and the first one found is executed. With an optional parameter, all known commands are checked. The "open_browser" uses the system() function to execute the command. If you want more control, you can get the command with the "open_browser_cmd" or "open_browser_cmd_all" functions and then use whatever method you want to execute it. WWW: http://search.cpan.org/dist/Browser-Open/
Notes
Notes: svn path=/head/; revision=340409
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/p5-Browser-Open/Makefile20
-rw-r--r--www/p5-Browser-Open/distinfo2
-rw-r--r--www/p5-Browser-Open/pkg-descr12
-rw-r--r--www/p5-Browser-Open/pkg-plist6
5 files changed, 41 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 65b36790d30d..87ac51c01978 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -635,6 +635,7 @@
SUBDIR += p5-Ark
SUBDIR += p5-Bigtop
SUBDIR += p5-Blog-Spam
+ SUBDIR += p5-Browser-Open
SUBDIR += p5-Business-PayPal
SUBDIR += p5-CGI-Ajax
SUBDIR += p5-CGI-Application
diff --git a/www/p5-Browser-Open/Makefile b/www/p5-Browser-Open/Makefile
new file mode 100644
index 000000000000..7d193f881ea8
--- /dev/null
+++ b/www/p5-Browser-Open/Makefile
@@ -0,0 +1,20 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Browser-Open
+PORTVERSION= 0.04
+CATEGORIES= www perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:CFRANKS
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Open a browser in a given URL
+
+LICENSE= ART10 GPLv1
+LICENSE_COMB= dual
+
+USE_PERL5= configure
+USES= perl5
+
+.include <bsd.port.mk>
diff --git a/www/p5-Browser-Open/distinfo b/www/p5-Browser-Open/distinfo
new file mode 100644
index 000000000000..e37b5c999c21
--- /dev/null
+++ b/www/p5-Browser-Open/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Browser-Open-0.04.tar.gz) = aceb3129782fe06e5b6e3e4b1a97e20c208426e5870ea67fb63b79188b056867
+SIZE (Browser-Open-0.04.tar.gz) = 4006
diff --git a/www/p5-Browser-Open/pkg-descr b/www/p5-Browser-Open/pkg-descr
new file mode 100644
index 000000000000..24afab4d4364
--- /dev/null
+++ b/www/p5-Browser-Open/pkg-descr
@@ -0,0 +1,12 @@
+The functions optionaly exported by this module allows you to open URLs in the
+user browser.
+
+A set of known commands per OS-name is tested for presence, and the first one
+found is executed. With an optional parameter, all known commands are checked.
+
+The "open_browser" uses the system() function to execute the command. If you
+want more control, you can get the command with the "open_browser_cmd" or
+"open_browser_cmd_all" functions and then use whatever method you want to
+execute it.
+
+WWW: http://search.cpan.org/dist/Browser-Open/
diff --git a/www/p5-Browser-Open/pkg-plist b/www/p5-Browser-Open/pkg-plist
new file mode 100644
index 000000000000..80db02f28c70
--- /dev/null
+++ b/www/p5-Browser-Open/pkg-plist
@@ -0,0 +1,6 @@
+%%SITE_PERL%%/Browser/Open.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Browser/Open/.packlist
+%%PERL5_MAN3%%/Browser::Open.3.gz
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Browser/Open
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Browser
+@dirrmtry %%SITE_PERL%%/Browser