summaryrefslogtreecommitdiff
path: root/devel/pear-Console_Getopt
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-06-07 23:00:46 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-06-07 23:00:46 +0000
commit077b4b53b0d0814df73a850dfa8625101c7b8404 (patch)
tree1635d75a5b1ebd11d644c2d01607580c9063de35 /devel/pear-Console_Getopt
parentDisplay the new pkg-message after port build. (diff)
Update to pear-Archive_Tar 1.1.
Update to pear-PEAR 1.1. Update to pear-HTML_Common 1.2. Update to pear-Net_SMTP 1.2.3. Update to pear-Log 1.6.5. Update to pear-I18N 0.8.5. Update to pear 4.3.2. Adapt following ports for pear-PEAR's Makefile.common. pear-Console_Getopt, pear-Auth, pear-Auth_SASL, devel/pear-Date, net/pear-Net_Socket, pear-Mail_Mime, pear-Crypt_CBC, pear-mailparse, pear-File, pear-HTML_Select_Common, and pear-Net_Sieve PR: ports/52596, ports/52641, ports/52655, ports/52656, ports/52671, ports/52678, ports/52845 Submitted by: Thierry Thomas <thierry@pompo.net>
Notes
Notes: svn path=/head/; revision=82484
Diffstat (limited to 'devel/pear-Console_Getopt')
-rw-r--r--devel/pear-Console_Getopt/Makefile24
-rw-r--r--devel/pear-Console_Getopt/pkg-plist7
2 files changed, 11 insertions, 20 deletions
diff --git a/devel/pear-Console_Getopt/Makefile b/devel/pear-Console_Getopt/Makefile
index cefd3d77e75a..2e75eb8fdd61 100644
--- a/devel/pear-Console_Getopt/Makefile
+++ b/devel/pear-Console_Getopt/Makefile
@@ -7,33 +7,21 @@
PORTNAME= Console_Getopt
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= devel www
-MASTER_SITES= http://pear.php.net/get/
-PKGNAMEPREFIX= pear-
-EXTRACT_SUFX= .tgz
-DIST_SUBDIR= PEAR
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR command-line option parser
-BUILD_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install
-RUN_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install \
- ${LOCALBASE}/bin/php:${PORTSDIR}/www/mod_php4
-
-NO_BUILD= yes
+BUILD_DEPENDS= pear:${PORTSDIR}/lang/php4
+RUN_DEPENDS= ${BUILD_DEPENDS}
.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}
+.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
do-install:
- @${MV} ${PEARDIR}/Console/Getopt.php ${PEARDIR}/Console/Getopt.php.dist
+ @${MKDIR} ${PEARDIR}/Console
@${CP} -Rp ${WRKSRC}/Console/Getopt.php ${PEARDIR}/Console
- @${CHOWN} -R root:wheel ${PEARDIR}/Console/Getopt.php
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Console
.include <bsd.port.post.mk>
diff --git a/devel/pear-Console_Getopt/pkg-plist b/devel/pear-Console_Getopt/pkg-plist
index 3887db705822..c6259b2b2c8b 100644
--- a/devel/pear-Console_Getopt/pkg-plist
+++ b/devel/pear-Console_Getopt/pkg-plist
@@ -1,3 +1,6 @@
-@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
+%%PKGREGDIR%%/package.xml
+@dirrm %%PEARDIR%%/Console
+@dirrm %%PKGREGDIR%%
+@unexec rmdir %D/share/pear/.registry 2> /dev/null || true
+@unexec rmdir %D/share/pear/packages 2> /dev/null || true