aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-31 03:53:01 +0800
committerpav <pav@FreeBSD.org>2004-07-31 03:53:01 +0800
commit76d7f60964f5de1581fd72b18c6c52c4aa879777 (patch)
tree27874d972d94fbbc10fac0d5c3d1a29632db38cd
parent803b6efd23db7df05d0a4a360e2097aeefe6b71e (diff)
downloadfreebsd-ports-gnome-76d7f60964f5de1581fd72b18c6c52c4aa879777.tar.gz
freebsd-ports-gnome-76d7f60964f5de1581fd72b18c6c52c4aa879777.tar.zst
freebsd-ports-gnome-76d7f60964f5de1581fd72b18c6c52c4aa879777.zip
- Reincarnate this as PECL extension and use new PHP infrastructure
PR: ports/69655 Submitted by: Kenneth Vestergaard Schmidt <kvs@pil.dk> Repocopy by: marcus
-rw-r--r--MOVED1
-rw-r--r--mail/Makefile2
-rw-r--r--mail/pear-mailparse/Makefile70
-rw-r--r--mail/pear-mailparse/distinfo2
-rw-r--r--mail/pear-mailparse/pkg-descr7
-rw-r--r--mail/pear-mailparse/pkg-message5
-rw-r--r--mail/pear-mailparse/pkg-plist27
-rw-r--r--mail/pecl-mailparse/Makefile67
-rw-r--r--mail/pecl-mailparse/distinfo4
-rw-r--r--mail/pecl-mailparse/pkg-descr2
-rw-r--r--mail/pecl-mailparse/pkg-message5
-rw-r--r--mail/pecl-mailparse/pkg-plist27
12 files changed, 17 insertions, 202 deletions
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 (<thierry@pompo.net>)
-#
-# $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 <bsd.port.pre.mk>
-.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 <bsd.port.post.mk>
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 <bsd.port.pre.mk>
-.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 <bsd.port.post.mk>
+.include <bsd.port.mk>
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%%