diff options
author | nork <nork@FreeBSD.org> | 2003-06-07 23:00:46 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-06-07 23:00:46 +0000 |
commit | 745d211ff042f4470c9df0ffe9f99c37920b85c7 (patch) | |
tree | 6d423271cde50294359b8b859c4d8d7b1a45c6ae /mail | |
parent | c81d0eb89c8cdf6ad9ff097db9f1413450c7dd94 (diff) | |
download | FreeBSD-ports-745d211ff042f4470c9df0ffe9f99c37920b85c7.zip FreeBSD-ports-745d211ff042f4470c9df0ffe9f99c37920b85c7.tar.gz |
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>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/pear-Mail_Mime/Makefile | 27 | ||||
-rw-r--r-- | mail/pear-Mail_Mime/pkg-install | 14 | ||||
-rw-r--r-- | mail/pear-Mail_Mime/pkg-plist | 2 | ||||
-rw-r--r-- | mail/pear-mailparse/Makefile | 40 | ||||
-rw-r--r-- | mail/pear-mailparse/pkg-deinstall | 13 | ||||
-rw-r--r-- | mail/pear-mailparse/pkg-plist | 2 | ||||
-rw-r--r-- | mail/pecl-mailparse/Makefile | 40 | ||||
-rw-r--r-- | mail/pecl-mailparse/pkg-deinstall | 13 | ||||
-rw-r--r-- | mail/pecl-mailparse/pkg-plist | 2 |
9 files changed, 44 insertions, 109 deletions
diff --git a/mail/pear-Mail_Mime/Makefile b/mail/pear-Mail_Mime/Makefile index 676e1b4..713fa19 100644 --- a/mail/pear-Mail_Mime/Makefile +++ b/mail/pear-Mail_Mime/Makefile @@ -7,32 +7,17 @@ PORTNAME= Mail_Mime PORTVERSION= 1.2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail www -MASTER_SITES= http://pear.php.net/get/ -PKGNAMEPREFIX= pear- -EXTRACT_SUFX= .tgz -DIST_SUBDIR= PEAR MAINTAINER= ports@FreeBSD.org COMMENT= PEAR classes to create and decode MIME messages -BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR -RUN_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install - -NO_BUILD= yes +BUILD_DEPENDS= ${PEARDIR}/Mail/mail.php:${PORTSDIR}/mail/pear-Mail +RUN_DEPENDS= ${BUILD_DEPENDS} .include <bsd.port.pre.mk> - -.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} +.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common" do-install: @${CP} -Rp ${WRKSRC}/* ${PEARDIR}/Mail @@ -41,8 +26,4 @@ do-install: @${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-install b/mail/pear-Mail_Mime/pkg-install new file mode 100644 index 0000000..ed2f91c --- /dev/null +++ b/mail/pear-Mail_Mime/pkg-install @@ -0,0 +1,14 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Register the package $1 in the port registry + +PREFIX=${PKG_PREFIX:-/usr/local} +PEAR=${PREFIX}/bin/pear +PKGREGDIR=${PREFIX}/.PEAR.pkg/$1 + +[ "x$1" = "x" ] && exit 1 +if [ "x$2" = "xPOST-INSTALL" ]; then + ${PEAR} install -r -f ${PKGREGDIR}/package.xml +fi diff --git a/mail/pear-Mail_Mime/pkg-plist b/mail/pear-Mail_Mime/pkg-plist index 9ece498..0b083cb 100644 --- a/mail/pear-Mail_Mime/pkg-plist +++ b/mail/pear-Mail_Mime/pkg-plist @@ -3,3 +3,5 @@ %%PEARDIR%%/Mail/mimePart.php %%PEARDIR%%/Mail/xmail.dtd %%PEARDIR%%/Mail/xmail.xsl +%%PKGREGDIR%%/package.xml +@dirrm %%PKGREGDIR%% diff --git a/mail/pear-mailparse/Makefile b/mail/pear-mailparse/Makefile index d401f21..21a4593 100644 --- a/mail/pear-mailparse/Makefile +++ b/mail/pear-mailparse/Makefile @@ -7,53 +7,35 @@ PORTNAME= mailparse PORTVERSION= 0.9.1 +PORTREVISION= 1 CATEGORIES= mail www -MASTER_SITES= http://pear.php.net/get/ -PKGNAMEPREFIX= pear- -EXTRACT_SUFX= .tgz -DIST_SUBDIR= PEAR MAINTAINER= ports@FreeBSD.org COMMENT= PEAR classes to create and decode MIME messages -BUILD_DEPENDS= ${LOCALBASE}/bin/phpize:${PORTSDIR}/www/mod_php4 \ - ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR -RUN_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR +BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR +RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR -USE_AUTOMAKE= yes -USE_AUTOCONF= yes - -.include <bsd.port.pre.mk> - -# Don't call autoconf directly, ./buildconf does this -GNU_CONFIGURE= yes -USE_AUTOCONF= no -USE_LIBTOOL= no +USE_PHPIZE= yes USE_REINPLACE= yes - REINPLACE_ARGS= -i.before_mailparse +.include <bsd.port.pre.mk> +.include "${.CURDIR}/../../lang/php4/bsd.php.mk" +.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common" + .if exists(${LOCALBASE}/bin/php-config) -PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \ "s:${PHP_BASE}/::" -.else -PHP_BASE= ${LOCALBASE} .endif -PEAR= ${LOCALBASE}/bin/pear -LPHP_LIB= lib/php PHP_DIR?= ${LOCALBASE}/etc PHP_INI= ${PHP_DIR}/php.ini -PEARDIR= ${PHP_BASE}/${LPHP_LIB} -PLIST_SUB= EXTDIR=${EXT_DIR} PEARDIR=${LPHP_LIB} +PLIST_SUB+= EXTDIR=${EXT_DIR} DOCSDIR= ${PEARDIR}/docs/${PORTNAME} DOCS= CREDITS README try.php TESTDIR= ${PEARDIR}/tests/${PORTNAME} -post-patch: - (cd ${WRKSRC} && ${LOCALBASE}/bin/phpize) - pre-configure: @if ! ${LOCALBASE}/bin/php -i | ${GREP} -q -e "--enable-mbstring"; then \ ${ECHO_MSG} "" ; \ @@ -62,7 +44,7 @@ pre-configure: ${FALSE} ; \ fi -post-install: +post-install-script: @${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so # Configure extension_dir @if [ ! -f ${PHP_INI} ]; then \ @@ -85,7 +67,5 @@ post-install: @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR} @${ECHO_MSG} "===> Examples installed in ${TESTDIR}." .endif -# Register a new package - @${PEAR} install -r -f ${WRKDIR}/package.xml .include <bsd.port.post.mk> diff --git a/mail/pear-mailparse/pkg-deinstall b/mail/pear-mailparse/pkg-deinstall deleted file mode 100644 index c17e9d1..0000000 --- a/mail/pear-mailparse/pkg-deinstall +++ /dev/null @@ -1,13 +0,0 @@ -#!/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 diff --git a/mail/pear-mailparse/pkg-plist b/mail/pear-mailparse/pkg-plist index a22d5cb..0ec98dc 100644 --- a/mail/pear-mailparse/pkg-plist +++ b/mail/pear-mailparse/pkg-plist @@ -1,4 +1,5 @@ %%EXTDIR%%/mailparse.so +%%PKGREGDIR%%/package.xml %%PORTDOCS%%%%PEARDIR%%/docs/mailparse/CREDITS %%PORTDOCS%%%%PEARDIR%%/docs/mailparse/README %%PORTDOCS%%%%PEARDIR%%/docs/mailparse/try.php @@ -22,3 +23,4 @@ %%PORTDOCS%%@dirrm %%PEARDIR%%/docs/mailparse %%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/testdata %%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/ +@dirrm %%PKGREGDIR%% diff --git a/mail/pecl-mailparse/Makefile b/mail/pecl-mailparse/Makefile index d401f21..21a4593 100644 --- a/mail/pecl-mailparse/Makefile +++ b/mail/pecl-mailparse/Makefile @@ -7,53 +7,35 @@ PORTNAME= mailparse PORTVERSION= 0.9.1 +PORTREVISION= 1 CATEGORIES= mail www -MASTER_SITES= http://pear.php.net/get/ -PKGNAMEPREFIX= pear- -EXTRACT_SUFX= .tgz -DIST_SUBDIR= PEAR MAINTAINER= ports@FreeBSD.org COMMENT= PEAR classes to create and decode MIME messages -BUILD_DEPENDS= ${LOCALBASE}/bin/phpize:${PORTSDIR}/www/mod_php4 \ - ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR -RUN_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR +BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR +RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR -USE_AUTOMAKE= yes -USE_AUTOCONF= yes - -.include <bsd.port.pre.mk> - -# Don't call autoconf directly, ./buildconf does this -GNU_CONFIGURE= yes -USE_AUTOCONF= no -USE_LIBTOOL= no +USE_PHPIZE= yes USE_REINPLACE= yes - REINPLACE_ARGS= -i.before_mailparse +.include <bsd.port.pre.mk> +.include "${.CURDIR}/../../lang/php4/bsd.php.mk" +.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common" + .if exists(${LOCALBASE}/bin/php-config) -PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \ "s:${PHP_BASE}/::" -.else -PHP_BASE= ${LOCALBASE} .endif -PEAR= ${LOCALBASE}/bin/pear -LPHP_LIB= lib/php PHP_DIR?= ${LOCALBASE}/etc PHP_INI= ${PHP_DIR}/php.ini -PEARDIR= ${PHP_BASE}/${LPHP_LIB} -PLIST_SUB= EXTDIR=${EXT_DIR} PEARDIR=${LPHP_LIB} +PLIST_SUB+= EXTDIR=${EXT_DIR} DOCSDIR= ${PEARDIR}/docs/${PORTNAME} DOCS= CREDITS README try.php TESTDIR= ${PEARDIR}/tests/${PORTNAME} -post-patch: - (cd ${WRKSRC} && ${LOCALBASE}/bin/phpize) - pre-configure: @if ! ${LOCALBASE}/bin/php -i | ${GREP} -q -e "--enable-mbstring"; then \ ${ECHO_MSG} "" ; \ @@ -62,7 +44,7 @@ pre-configure: ${FALSE} ; \ fi -post-install: +post-install-script: @${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so # Configure extension_dir @if [ ! -f ${PHP_INI} ]; then \ @@ -85,7 +67,5 @@ post-install: @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR} @${ECHO_MSG} "===> Examples installed in ${TESTDIR}." .endif -# Register a new package - @${PEAR} install -r -f ${WRKDIR}/package.xml .include <bsd.port.post.mk> diff --git a/mail/pecl-mailparse/pkg-deinstall b/mail/pecl-mailparse/pkg-deinstall deleted file mode 100644 index c17e9d1..0000000 --- a/mail/pecl-mailparse/pkg-deinstall +++ /dev/null @@ -1,13 +0,0 @@ -#!/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 diff --git a/mail/pecl-mailparse/pkg-plist b/mail/pecl-mailparse/pkg-plist index a22d5cb..0ec98dc 100644 --- a/mail/pecl-mailparse/pkg-plist +++ b/mail/pecl-mailparse/pkg-plist @@ -1,4 +1,5 @@ %%EXTDIR%%/mailparse.so +%%PKGREGDIR%%/package.xml %%PORTDOCS%%%%PEARDIR%%/docs/mailparse/CREDITS %%PORTDOCS%%%%PEARDIR%%/docs/mailparse/README %%PORTDOCS%%%%PEARDIR%%/docs/mailparse/try.php @@ -22,3 +23,4 @@ %%PORTDOCS%%@dirrm %%PEARDIR%%/docs/mailparse %%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/testdata %%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/ +@dirrm %%PKGREGDIR%% |