From 08fb288d0a1ada7c3ebbdf6ab37f668394d297d9 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Sun, 4 Dec 2005 21:28:07 +0000 Subject: patch pear to use -n post-install - it cannot be done using normal patch framework, the file is part of binary .phar archive and is created during installation this has been submitted as PHP bug #35544, so this may be adressed upstream hopefully --- lang/php5/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lang/php5') diff --git a/lang/php5/Makefile b/lang/php5/Makefile index 30253e2adcd..9b6c53f8786 100644 --- a/lang/php5/Makefile +++ b/lang/php5/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.20 2005/12/03 18:53:57 jdolecek Exp $ +# $NetBSD: Makefile,v 1.21 2005/12/04 21:28:07 jdolecek Exp $ # PKGNAME= php-${PHP_BASE_VERS} -PKGREVISION= # empty +PKGREVISION= 1 CATEGORIES= lang HOMEPAGE= http://www.php.net/ @@ -33,7 +33,11 @@ EGDIR= ${PREFIX}/share/examples/php CONF_FILES= ${EGDIR}/php.ini-recommended ${PKG_SYSCONFDIR}/php.ini OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR} +# pear must be patched using post-install, it's extracted from binary .phar +# file during installation; this replaces former patches/patch-al post-install: + ${SED} -e 's,\(-d output_buffering=1\) \(\$$INCDIR/pearcmd.php\),\1 -n \2,' ${PREFIX}/bin/pear > ${PREFIX}/bin/pear.new && \ + ${MV} ${PREFIX}/bin/pear.new ${PREFIX}/bin/pear ${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${PREFIX}/bin/php ${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 ${PREFIX}/man/man1/php.1 ${INSTALL_DATA_DIR} ${CGIDIR} -- cgit v1.2.3