pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/php further tweak the generated ini files - they ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07faa14fe833
branches:  trunk
changeset: 350342:07faa14fe833
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Tue Jul 26 08:19:45 2016 +0000

description:
further tweak the generated ini files - they are now named according to MODNAME, but use PKGMODNAME as the base for extension file to load; this deals with modules like apcu_bc, which has extension 
name 'apc', but needs to be loaded after 'apcu' since it uses it's symbols

diffstat:

 lang/php/PLIST.module |   4 ++--
 lang/php/ext.mk       |  13 +++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)

diffs (63 lines):

diff -r b30d70c2b73d -r 07faa14fe833 lang/php/PLIST.module
--- a/lang/php/PLIST.module     Tue Jul 26 06:51:25 2016 +0000
+++ b/lang/php/PLIST.module     Tue Jul 26 08:19:45 2016 +0000
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST.module,v 1.2 2016/07/17 15:49:44 jdolecek Exp $
+@comment $NetBSD: PLIST.module,v 1.3 2016/07/26 08:19:45 jdolecek Exp $
 share/examples/php/${MODNAME}.ini
-${PHP_EXTENSION_DIR}/${MODNAME}.${SHLIB_SUFFIX}
+${PHP_EXTENSION_DIR}/${PKGMODNAME}.${SHLIB_SUFFIX}
diff -r b30d70c2b73d -r 07faa14fe833 lang/php/ext.mk
--- a/lang/php/ext.mk   Tue Jul 26 06:51:25 2016 +0000
+++ b/lang/php/ext.mk   Tue Jul 26 08:19:45 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ext.mk,v 1.41 2016/07/24 14:01:55 jdolecek Exp $
+# $NetBSD: ext.mk,v 1.42 2016/07/26 08:19:45 jdolecek Exp $
 #
 # PHP extension package framework, for both PECL and bundled PHP extensions.
 #
@@ -28,7 +28,8 @@
 PKGMODNAME?=           ${MODNAME:S/-/_/}
 PHPSETUPSUBDIR?=       #empty
 MODULESDIR?=           ${WRKSRC}/modules
-PLIST_SUBST+=          MODNAME=${PKGMODNAME}
+PLIST_SUBST+=          MODNAME=${MODNAME}
+PLIST_SUBST+=          PKGMODNAME=${PKGMODNAME}
 PLIST_SUBST+=       SHLIB_SUFFIX=${SHLIB_SUFFIX}
 PLIST_SUBST+=       PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
 
@@ -49,14 +50,14 @@
 .endif
 
 EGDIR=      ${PREFIX}/share/examples/php
-CONF_FILES= ${EGDIR}/${PKGMODNAME}.ini ${EXT_CONF_DIR}/${PKGMODNAME}.ini
+CONF_FILES= ${EGDIR}/${MODNAME}.ini ${EXT_CONF_DIR}/${MODNAME}.ini
 
 EXT_CONF_DIR=   ${PKG_SYSCONFDIR}/php.d
 MAKE_DIRS+=     ${EXT_CONF_DIR}
 MAKE_DIRS+=     ${EGDIR}
 
 SUBST_CLASSES+=     ext-ini
-SUBST_FILES.ext-ini=  ${PKGMODNAME}.ini
+SUBST_FILES.ext-ini=  ${MODNAME}.ini
 SUBST_MESSAGE.ext-ini=Creating module ini file 
 SUBST_SED.ext-ini+=    -e 's,@MODNAME@,${PKGMODNAME},g'
 SUBST_SED.ext-ini+=    -e 's,@EXTENSION_FILE@,${EXTENSION_FILE},g'
@@ -119,7 +120,7 @@
        fi
 
 pre-build:
-       ${CP} ${.CURDIR}/../../lang/php/ext.ini ${WRKSRC}/${PKGMODNAME}.ini
+       ${CP} ${.CURDIR}/../../lang/php/ext.ini ${WRKSRC}/${MODNAME}.ini
 
 do-install: do-module-install
 
@@ -129,7 +130,7 @@
                ${DESTDIR}${PREFIX}/${PHP_EXTENSION_DIR}
 
        ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
-       ${INSTALL_DATA} ${WRKSRC}/${PKGMODNAME}.ini ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/${MODNAME}.ini ${DESTDIR}${EGDIR}
 
 .if defined(USE_PHP_EXT_PATCHES)
 PATCHDIR=              ${.CURDIR}/${PHPPKGSRCDIR}/patches



Home | Main Index | Thread Index | Old Index