summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2005-12-04 21:28:07 +0000
committerjdolecek <jdolecek@pkgsrc.org>2005-12-04 21:28:07 +0000
commit08fb288d0a1ada7c3ebbdf6ab37f668394d297d9 (patch)
treee9d23db104107eaefa529545b112af0e3cc6239c /lang/php5
parent5e79700dad07fd097296d31f72f96c3c7c895513 (diff)
downloadpkgsrc-08fb288d0a1ada7c3ebbdf6ab37f668394d297d9.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/Makefile8
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}