pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php5 This adds ${PREFIX}/lib/php to the default i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/070c81855649
branches:  trunk
changeset: 545957:070c81855649
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sun Aug 17 18:36:50 2008 +0000

description:
This adds ${PREFIX}/lib/php to the default include_path in php.ini
which makes integration with PEAR a little simpler.
PKGREVISION++

diffstat:

 lang/php5/Makefile     |  4 ++--
 lang/php5/Makefile.php |  9 ++++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r f62b8c34c3c8 -r 070c81855649 lang/php5/Makefile
--- a/lang/php5/Makefile        Sun Aug 17 18:29:47 2008 +0000
+++ b/lang/php5/Makefile        Sun Aug 17 18:36:50 2008 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.65 2008/07/08 20:28:55 adrianp Exp $
+# $NetBSD: Makefile,v 1.66 2008/08/17 18:36:50 adrianp Exp $
 
 PKGNAME=               php-${PHP_BASE_VERS}
 CATEGORIES=            lang
-PKGREVISION=           1
+PKGREVISION=           2
 HOMEPAGE=              http://www.php.net/
 COMMENT=               PHP Hypertext Preprocessor version 5
 
diff -r f62b8c34c3c8 -r 070c81855649 lang/php5/Makefile.php
--- a/lang/php5/Makefile.php    Sun Aug 17 18:29:47 2008 +0000
+++ b/lang/php5/Makefile.php    Sun Aug 17 18:36:50 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.28 2008/08/08 20:01:34 adrianp Exp $
+# $NetBSD: Makefile.php,v 1.29 2008/08/17 18:36:50 adrianp Exp $
 #
 
 .include "../../lang/php5/Makefile.common"
@@ -44,6 +44,13 @@
 PKG_SUPPORTED_OPTIONS+=        inet6 ssl maintainer-zts
 PKG_SUGGESTED_OPTIONS+=        ssl
 
+SUBST_CLASSES+=                ini
+SUBST_STAGE.ini=       post-patch
+SUBST_FILES.ini=       php.ini-dist
+SUBST_FILES.ini+=      php.ini-recommended
+SUBST_SED.ini=         -e "s|\;include_path = \".:/php/includes\"|include_path = \".:${PREFIX}/lib/php\"|g"
+SUBST_MESSAGE.ini=     Fixing default ini files.
+
 .include "../../mk/bsd.options.mk"
 
 .if !empty(PKG_OPTIONS:Minet6)



Home | Main Index | Thread Index | Old Index