aboutsummaryrefslogtreecommitdiff
path: root/mail/pecl-mailparse
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-07-30 19:53:01 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-07-30 19:53:01 +0000
commit91f495c730c2dabb88d9c41e6bf8790212e4dfe4 (patch)
treea6c807d939d9839af11eb2ec1d9c7da2fc89741a /mail/pecl-mailparse
parent51939469a04b1ecdb20e01edd01d009de5fa8248 (diff)
downloadports-91f495c730c2dabb88d9c41e6bf8790212e4dfe4.tar.gz
ports-91f495c730c2dabb88d9c41e6bf8790212e4dfe4.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
Notes
Notes: svn path=/head/; revision=115105
Diffstat (limited to 'mail/pecl-mailparse')
-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
5 files changed, 15 insertions, 90 deletions
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%%