- Reincarnate this as PECL extension and use new PHP infrastructure

PR:		ports/69655
Submitted by:	Kenneth Vestergaard Schmidt <kvs@pil.dk>
Repocopy by:	marcus
This commit is contained in:
Pav Lucistnik 2004-07-30 19:53:01 +00:00
parent 51939469a0
commit 91f495c730
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115105
12 changed files with 17 additions and 202 deletions

1
MOVED
View file

@ -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

View file

@ -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

View file

@ -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>

View file

@ -1,2 +0,0 @@
MD5 (PEAR/mailparse-2.0b.tgz) = bffe5fd04341f7c869020bbb1845473b
SIZE (PEAR/mailparse-2.0b.tgz) = 33547

View file

@ -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

View file

@ -1,5 +0,0 @@
************************************************************************
Do not forget to configure your /usr/local/etc/php.ini file:
set
extension_dir = "/usr/local/lib/php/20020429"
************************************************************************

View file

@ -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%%

View file

@ -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>

View file

@ -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

View file

@ -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

View file

@ -1,5 +0,0 @@
************************************************************************
Do not forget to configure your /usr/local/etc/php.ini file:
set
extension_dir = "/usr/local/lib/php/20020429"
************************************************************************

View file

@ -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%%