ports/69655: [patch] port cannot be built in batch-mode
Kenneth Vestergaard Schmidt
kvs at pil.dk
Tue Jul 27 11:40:17 UTC 2004
>Number: 69655
>Category: ports
>Synopsis: [patch] port cannot be built in batch-mode
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 27 11:40:15 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Kenneth Vestergaard Schmidt
>Release: FreeBSD 5.2.1-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD hoegaarden.pil.dk 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #9: Wed May 26 16:27:59 CEST 2004 root at hoegaarden.pil.dk:/usr/obj/usr/src/sys/HOEGAARDEN i386
>Description:
Port defines IS_INTERACTIVE due to a dependency on the mbstring php-
extension. This can be alleviated by upgrading it to use the new
features of bsd.php.mk
Also, port changed name from pear-mailparse to pecl-mailparse.
>How-To-Repeat:
>Fix:
[patch]
--- pecl-mailparse.diff begins here ---
diff --new-file -dur pear-mailparse/Makefile pecl-mailparse/Makefile
--- pear-mailparse/Makefile Sun Jul 25 22:10:21 2004
+++ pecl-mailparse/Makefile Tue Jul 27 13:09:24 2004
@@ -7,64 +7,22 @@
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 at 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_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 --new-file -dur pear-mailparse/distinfo pecl-mailparse/distinfo
--- pear-mailparse/distinfo Sun Jul 25 22:10:21 2004
+++ pecl-mailparse/distinfo Tue Jul 27 13:07:10 2004
@@ -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 --new-file -dur pear-mailparse/pkg-descr pecl-mailparse/pkg-descr
--- pear-mailparse/pkg-descr Thu Jan 15 13:52:05 2004
+++ pecl-mailparse/pkg-descr Tue Jul 27 13:07:03 2004
@@ -4,4 +4,4 @@
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 --new-file -dur pear-mailparse/pkg-message pecl-mailparse/pkg-message
--- pear-mailparse/pkg-message Sat Jun 21 01:09:36 2003
+++ pecl-mailparse/pkg-message Thu Jan 1 01:00:00 1970
@@ -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 --new-file -dur pear-mailparse/pkg-plist pecl-mailparse/pkg-plist
--- pear-mailparse/pkg-plist Mon Aug 25 03:23:43 2003
+++ pecl-mailparse/pkg-plist Thu Jan 1 01:00:00 1970
@@ -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/
- at dirrm %%PKGREGDIR%%
--- pecl-mailparse.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list