From 91f495c730c2dabb88d9c41e6bf8790212e4dfe4 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 30 Jul 2004 19:53:01 +0000 Subject: [PATCH] - Reincarnate this as PECL extension and use new PHP infrastructure PR: ports/69655 Submitted by: Kenneth Vestergaard Schmidt Repocopy by: marcus --- MOVED | 1 + mail/Makefile | 2 +- mail/pear-mailparse/Makefile | 70 --------------------------------- mail/pear-mailparse/distinfo | 2 - mail/pear-mailparse/pkg-descr | 7 ---- mail/pear-mailparse/pkg-message | 5 --- mail/pear-mailparse/pkg-plist | 27 ------------- mail/pecl-mailparse/Makefile | 67 ++++++------------------------- mail/pecl-mailparse/distinfo | 4 +- mail/pecl-mailparse/pkg-descr | 2 +- mail/pecl-mailparse/pkg-message | 5 --- mail/pecl-mailparse/pkg-plist | 27 ------------- 12 files changed, 17 insertions(+), 202 deletions(-) delete mode 100644 mail/pear-mailparse/Makefile delete mode 100644 mail/pear-mailparse/distinfo delete mode 100644 mail/pear-mailparse/pkg-descr delete mode 100644 mail/pear-mailparse/pkg-message delete mode 100644 mail/pear-mailparse/pkg-plist delete mode 100644 mail/pecl-mailparse/pkg-message delete mode 100644 mail/pecl-mailparse/pkg-plist diff --git a/MOVED b/MOVED index a70d3cc61a4f..4394db9417e1 100644 --- a/MOVED +++ b/MOVED @@ -1213,3 +1213,4 @@ x11-toolkits/qt23||2004-07-23|QT2 is obsolete java/eclipse-xsd|java/eclipse-emf|2004-07-25|merged emulators/freesci|games/freesci|2004-07-26|Moved to better category games net/zebra-devel||2004-07-27|The same as net/zebra for some time +mail/pear-mailparse|mail/pecl-mailparse|2004-07-30|Renamed diff --git a/mail/Makefile b/mail/Makefile index ae475c4e1cd8..3267fb3fd367 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -286,7 +286,7 @@ SUBDIR += pear-Mail_Mime SUBDIR += pear-Net_Cyrus SUBDIR += pear-Net_IMAP - SUBDIR += pear-mailparse + SUBDIR += pecl-mailparse SUBDIR += perdition SUBDIR += pflogstats SUBDIR += pflogsumm diff --git a/mail/pear-mailparse/Makefile b/mail/pear-mailparse/Makefile deleted file mode 100644 index 83ace5c06572..000000000000 --- a/mail/pear-mailparse/Makefile +++ /dev/null @@ -1,70 +0,0 @@ -# Ports collection makefile for: pear-mailparse -# Date created: 09 January 2003 -# Whom: Thierry Thomas () -# -# $FreeBSD$ -# - -PORTNAME= mailparse -PORTVERSION= 2.0b -CATEGORIES= mail www pear - -MAINTAINER= ports@FreeBSD.org -COMMENT= PEAR classes to create and decode MIME messages - -BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR -RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR - -IS_INTERACTIVE= 'need to build php4 with mbstring support.' - -USE_PHP= yes -USE_PHPIZE= yes - -.include -.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" - -.if exists(${LOCALBASE}/bin/php-config) -EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \ - "s:${PHP_BASE}/::" -.endif -PHP_DIR?= ${LOCALBASE}/etc -PHP_INI= ${PHP_DIR}/php.ini -PLIST_SUB+= EXTDIR=${EXT_DIR} - -DOCSDIR= ${PEARDIR}/docs/${PORTNAME} -DOCS= CREDITS README try.php -TESTDIR= ${PEARDIR}/tests/${PORTNAME} - -pre-configure: - @if ! ${LOCALBASE}/bin/php -i | ${GREP} -q -e "--enable-mbstring"; then \ - ${ECHO_MSG} "" ; \ - ${ECHO_MSG} "Please configure PHP with mbstring support." ; \ - ${ECHO_MSG} "" ; \ - ${FALSE} ; \ - fi - -post-install-script: - @${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so -# Configure extension_dir - @if [ ! -f ${PHP_INI} ]; then \ - ${ECHO_MSG} "===> Creating ${PHP_INI} for PHP" ; \ - ${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \ - fi -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for FILE in ${DOCS} - @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} -.endfor - @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." - @${MKDIR} ${TESTDIR} - @${CP} -Rp ${WRKSRC}/tests/* ${TESTDIR} - @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR} - @${ECHO_MSG} "===> Examples installed in ${TESTDIR}." -.endif - @${ECHO_MSG} - @${CAT} ${PKGMESSAGE} | \ - ${SED} -e "s:/usr/local/etc/php.ini:${PHP_INI}:" \ - -e "s:/usr/local/lib/php/20020429:${PHP_BASE}/${EXT_DIR}:" - @${ECHO_MSG} - -.include diff --git a/mail/pear-mailparse/distinfo b/mail/pear-mailparse/distinfo deleted file mode 100644 index 4e3f37c42cb5..000000000000 --- a/mail/pear-mailparse/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -MD5 (PEAR/mailparse-2.0b.tgz) = bffe5fd04341f7c869020bbb1845473b -SIZE (PEAR/mailparse-2.0b.tgz) = 33547 diff --git a/mail/pear-mailparse/pkg-descr b/mail/pear-mailparse/pkg-descr deleted file mode 100644 index 07bc0c90e919..000000000000 --- a/mail/pear-mailparse/pkg-descr +++ /dev/null @@ -1,7 +0,0 @@ -Mailparse is an extension for parsing and working with email messages. -It can deal with rfc822 and rfc2045 (MIME) compliant messages. -Mailparse is stream based, which means that it does not keep in-memory -copies of the files it processes - so it is very resource efficient -when dealing with large messages. - -WWW: http://pear.php.net/package/mailparse diff --git a/mail/pear-mailparse/pkg-message b/mail/pear-mailparse/pkg-message deleted file mode 100644 index 3db97461e6a2..000000000000 --- a/mail/pear-mailparse/pkg-message +++ /dev/null @@ -1,5 +0,0 @@ -************************************************************************ -Do not forget to configure your /usr/local/etc/php.ini file: -set -extension_dir = "/usr/local/lib/php/20020429" -************************************************************************ diff --git a/mail/pear-mailparse/pkg-plist b/mail/pear-mailparse/pkg-plist deleted file mode 100644 index 9bed68b097b0..000000000000 --- a/mail/pear-mailparse/pkg-plist +++ /dev/null @@ -1,27 +0,0 @@ -%%EXTDIR%%/mailparse.so -%%PKGREGDIR%%/package.xml -%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/CREDITS -%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/README -%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/try.php -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/mime.exp -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/mime.txt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/phpcvs1.exp -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/phpcvs1.txt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/qp.exp -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/qp.txt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/uue.exp -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/uue.txt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/001.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/002.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/003.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/004.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/005.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/006.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/007.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/008.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/009.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/parse_test_messages.phpt -%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/mailparse -%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/testdata -%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/ -@dirrm %%PKGREGDIR%% diff --git a/mail/pecl-mailparse/Makefile b/mail/pecl-mailparse/Makefile index 83ace5c06572..dfa1d700f78d 100644 --- a/mail/pecl-mailparse/Makefile +++ b/mail/pecl-mailparse/Makefile @@ -7,64 +7,21 @@ PORTNAME= mailparse PORTVERSION= 2.0b +PORTREVISION= 1 CATEGORIES= mail www pear +MASTER_SITES= http://pecl.php.net/get/ +PKGNAMEPREFIX= pecl- +EXTRACT_SUFX= .tgz +DIST_SUBDIR= PECL MAINTAINER= ports@FreeBSD.org -COMMENT= PEAR classes to create and decode MIME messages +COMMENT= PECL extension to create and decode MIME messages -BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR -RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR - -IS_INTERACTIVE= 'need to build php4 with mbstring support.' - -USE_PHP= yes +USE_PHP= mbstring USE_PHPIZE= yes +USE_PHP_BUILD= yes +WANT_PHP_PEAR= yes +USE_PHPEXT= yes +PHP_MODNAME= mailparse -.include -.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" - -.if exists(${LOCALBASE}/bin/php-config) -EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \ - "s:${PHP_BASE}/::" -.endif -PHP_DIR?= ${LOCALBASE}/etc -PHP_INI= ${PHP_DIR}/php.ini -PLIST_SUB+= EXTDIR=${EXT_DIR} - -DOCSDIR= ${PEARDIR}/docs/${PORTNAME} -DOCS= CREDITS README try.php -TESTDIR= ${PEARDIR}/tests/${PORTNAME} - -pre-configure: - @if ! ${LOCALBASE}/bin/php -i | ${GREP} -q -e "--enable-mbstring"; then \ - ${ECHO_MSG} "" ; \ - ${ECHO_MSG} "Please configure PHP with mbstring support." ; \ - ${ECHO_MSG} "" ; \ - ${FALSE} ; \ - fi - -post-install-script: - @${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so -# Configure extension_dir - @if [ ! -f ${PHP_INI} ]; then \ - ${ECHO_MSG} "===> Creating ${PHP_INI} for PHP" ; \ - ${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \ - fi -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for FILE in ${DOCS} - @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} -.endfor - @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." - @${MKDIR} ${TESTDIR} - @${CP} -Rp ${WRKSRC}/tests/* ${TESTDIR} - @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR} - @${ECHO_MSG} "===> Examples installed in ${TESTDIR}." -.endif - @${ECHO_MSG} - @${CAT} ${PKGMESSAGE} | \ - ${SED} -e "s:/usr/local/etc/php.ini:${PHP_INI}:" \ - -e "s:/usr/local/lib/php/20020429:${PHP_BASE}/${EXT_DIR}:" - @${ECHO_MSG} - -.include +.include diff --git a/mail/pecl-mailparse/distinfo b/mail/pecl-mailparse/distinfo index 4e3f37c42cb5..79e9b5eaa623 100644 --- a/mail/pecl-mailparse/distinfo +++ b/mail/pecl-mailparse/distinfo @@ -1,2 +1,2 @@ -MD5 (PEAR/mailparse-2.0b.tgz) = bffe5fd04341f7c869020bbb1845473b -SIZE (PEAR/mailparse-2.0b.tgz) = 33547 +MD5 (PECL/mailparse-2.0b.tgz) = bffe5fd04341f7c869020bbb1845473b +SIZE (PECL/mailparse-2.0b.tgz) = 33547 diff --git a/mail/pecl-mailparse/pkg-descr b/mail/pecl-mailparse/pkg-descr index 07bc0c90e919..abf0218493a6 100644 --- a/mail/pecl-mailparse/pkg-descr +++ b/mail/pecl-mailparse/pkg-descr @@ -4,4 +4,4 @@ Mailparse is stream based, which means that it does not keep in-memory copies of the files it processes - so it is very resource efficient when dealing with large messages. -WWW: http://pear.php.net/package/mailparse +WWW: http://pecl.php.net/package/mailparse diff --git a/mail/pecl-mailparse/pkg-message b/mail/pecl-mailparse/pkg-message deleted file mode 100644 index 3db97461e6a2..000000000000 --- a/mail/pecl-mailparse/pkg-message +++ /dev/null @@ -1,5 +0,0 @@ -************************************************************************ -Do not forget to configure your /usr/local/etc/php.ini file: -set -extension_dir = "/usr/local/lib/php/20020429" -************************************************************************ diff --git a/mail/pecl-mailparse/pkg-plist b/mail/pecl-mailparse/pkg-plist deleted file mode 100644 index 9bed68b097b0..000000000000 --- a/mail/pecl-mailparse/pkg-plist +++ /dev/null @@ -1,27 +0,0 @@ -%%EXTDIR%%/mailparse.so -%%PKGREGDIR%%/package.xml -%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/CREDITS -%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/README -%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/try.php -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/mime.exp -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/mime.txt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/phpcvs1.exp -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/phpcvs1.txt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/qp.exp -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/qp.txt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/uue.exp -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/testdata/uue.txt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/001.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/002.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/003.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/004.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/005.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/006.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/007.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/008.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/009.phpt -%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/parse_test_messages.phpt -%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/mailparse -%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/testdata -%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/ -@dirrm %%PKGREGDIR%%