diff options
Diffstat (limited to 'mail/pear-Mail_Mime')
-rw-r--r-- | mail/pear-Mail_Mime/Makefile | 12 | ||||
-rw-r--r-- | mail/pear-Mail_Mime/pkg-deinstall | 13 |
2 files changed, 23 insertions, 2 deletions
diff --git a/mail/pear-Mail_Mime/Makefile b/mail/pear-Mail_Mime/Makefile index 54f21f20cb20..b304778780a6 100644 --- a/mail/pear-Mail_Mime/Makefile +++ b/mail/pear-Mail_Mime/Makefile @@ -7,6 +7,7 @@ PORTNAME= Mail_Mime PORTVERSION= 1.2.1 +PORTREVISION= 1 CATEGORIES= mail www MASTER_SITES= http://pear.php.net/get/ PKGNAMEPREFIX= pear- @@ -16,7 +17,7 @@ DIST_SUBDIR= PEAR MAINTAINER= ports@FreeBSD.org COMMENT= PEAR classes to create and decode MIME messages -BUILD_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install +BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR RUN_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install NO_BUILD= yes @@ -25,16 +26,23 @@ NO_BUILD= yes .if exists(${LOCALBASE}/bin/php-config) PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix +.else +PHP_BASE!= ${LOCALBASE} .endif +PEAR= ${LOCALBASE}/bin/pear LPHP_LIB= lib/php PEARDIR= ${PHP_BASE}/${LPHP_LIB} PLIST_SUB= PEARDIR=${LPHP_LIB} do-install: @${CP} -Rp ${WRKSRC}/* ${PEARDIR}/Mail - @${CHOWN} -R root:wheel ${PEARDIR}/Mail/* + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Mail/* .for BUGMODE in mimeDecode.php mimePart.php xmail.dtd xmail.xsl @${CHMOD} a-x ${PEARDIR}/Mail/${BUGMODE} .endfor +post-install: +# Register a new package + @${PEAR} install -r -f ${WRKDIR}/package.xml + .include <bsd.port.post.mk> diff --git a/mail/pear-Mail_Mime/pkg-deinstall b/mail/pear-Mail_Mime/pkg-deinstall new file mode 100644 index 000000000000..c17e9d19ced0 --- /dev/null +++ b/mail/pear-Mail_Mime/pkg-deinstall @@ -0,0 +1,13 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Remove package declaration from PEAR's registry. + +if [ x$2 != xDEINSTALL ]; then + exit +fi +PKG_NAME=${1%%-[0-9._]*} +PACKAGE=$(echo $PKG_NAME | sed 's/pear-//') + +${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true |