diff options
author | jdolecek <jdolecek> | 2005-12-04 21:28:07 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2005-12-04 21:28:07 +0000 |
commit | 69725be18671e96216238805a82e0c21546d867d (patch) | |
tree | e9d23db104107eaefa529545b112af0e3cc6239c /lang/php5 | |
parent | b124595c4a53e47bbb64063002056641d0399c9b (diff) | |
download | pkgsrc-69725be18671e96216238805a82e0c21546d867d.tar.gz |
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
Diffstat (limited to 'lang/php5')
-rw-r--r-- | lang/php5/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
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} |