summaryrefslogtreecommitdiff
path: root/devel/pear-Console_Getopt
diff options
context:
space:
mode:
authorSADA Kenji <sada@FreeBSD.org>2002-11-17 05:03:54 +0000
committerSADA Kenji <sada@FreeBSD.org>2002-11-17 05:03:54 +0000
commit050dd1b1031022b49cd1623dd3892f3c4be3a1ae (patch)
tree0876fb5cc1d38a316c0fbaf87137d69775f5dad0 /devel/pear-Console_Getopt
parentPatch for Ruby 1.7. (diff)
Resurrection of port devel/pear
PR: ports/44473 Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'devel/pear-Console_Getopt')
-rw-r--r--devel/pear-Console_Getopt/Makefile38
-rw-r--r--devel/pear-Console_Getopt/distinfo1
-rw-r--r--devel/pear-Console_Getopt/pkg-comment1
-rw-r--r--devel/pear-Console_Getopt/pkg-descr4
-rw-r--r--devel/pear-Console_Getopt/pkg-plist3
5 files changed, 47 insertions, 0 deletions
diff --git a/devel/pear-Console_Getopt/Makefile b/devel/pear-Console_Getopt/Makefile
new file mode 100644
index 000000000000..59ae58dd8d56
--- /dev/null
+++ b/devel/pear-Console_Getopt/Makefile
@@ -0,0 +1,38 @@
+# Ports collection makefile for: pear-Console_Getopt
+# Date created: 23 October 2002
+# Whom: Thierry Thomas (<thierry@pompo.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= Console_Getopt
+PORTVERSION= 1.0
+CATEGORIES= devel www
+MASTER_SITES= http://pear.php.net/get/
+PKGNAMEPREFIX= pear-
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= PEAR
+
+MAINTAINER= ports@FreeBSD.org
+
+BUILD_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install
+RUN_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install \
+ ${LOCALBASE}/bin/php:${PORTSDIR}/lang/php4
+
+NO_BUILD= yes
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/bin/php-config)
+PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix
+.endif
+LPHP_LIB= lib/php
+PEARDIR= ${PHP_BASE}/${LPHP_LIB}
+PLIST_SUB= PEARDIR=${LPHP_LIB}
+
+do-install:
+ @${MV} ${PEARDIR}/Console/Getopt.php ${PEARDIR}/Console/Getopt.php.dist
+ @${CP} -Rp ${WRKSRC}/Console/Getopt.php ${PEARDIR}/Console
+ @${CHOWN} -R root:wheel ${PEARDIR}/Console/Getopt.php
+
+.include <bsd.port.post.mk>
diff --git a/devel/pear-Console_Getopt/distinfo b/devel/pear-Console_Getopt/distinfo
new file mode 100644
index 000000000000..d07b6da5dd75
--- /dev/null
+++ b/devel/pear-Console_Getopt/distinfo
@@ -0,0 +1 @@
+MD5 (PEAR/Console_Getopt-1.0.tgz) = 0a80d98559c9c0d20f6128b5edcb9aac
diff --git a/devel/pear-Console_Getopt/pkg-comment b/devel/pear-Console_Getopt/pkg-comment
new file mode 100644
index 000000000000..9f6b1b2ff609
--- /dev/null
+++ b/devel/pear-Console_Getopt/pkg-comment
@@ -0,0 +1 @@
+PEAR command-line option parser
diff --git a/devel/pear-Console_Getopt/pkg-descr b/devel/pear-Console_Getopt/pkg-descr
new file mode 100644
index 000000000000..bdfd95f64fe2
--- /dev/null
+++ b/devel/pear-Console_Getopt/pkg-descr
@@ -0,0 +1,4 @@
+This is a PHP implementation of "getopt" supporting both short and long
+options.
+
+WWW: http://pear.php.net/manual/en/core.console.getopt.php
diff --git a/devel/pear-Console_Getopt/pkg-plist b/devel/pear-Console_Getopt/pkg-plist
new file mode 100644
index 000000000000..3887db705822
--- /dev/null
+++ b/devel/pear-Console_Getopt/pkg-plist
@@ -0,0 +1,3 @@
+@exec mv %D/lib/php/Console/Getopt.php %D/lib/php/Console/Getopt.php.dist
+%%PEARDIR%%/Console/Getopt.php
+@unexec mv %D/lib/php/Console/Getopt.php.dist %D/lib/php/Console/Getopt.php || true