pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/php



Module Name:    pkgsrc
Committed By:   jdolecek
Date:           Tue Jul 26 08:19:45 UTC 2016

Modified Files:
        pkgsrc/lang/php: PLIST.module ext.mk

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/php/PLIST.module
cvs rdiff -u -r1.41 -r1.42 pkgsrc/lang/php/ext.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/php/PLIST.module
diff -u pkgsrc/lang/php/PLIST.module:1.2 pkgsrc/lang/php/PLIST.module:1.3
--- pkgsrc/lang/php/PLIST.module:1.2    Sun Jul 17 15:49:44 2016
+++ pkgsrc/lang/php/PLIST.module        Tue Jul 26 08:19:45 2016
@@ -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}

Index: pkgsrc/lang/php/ext.mk
diff -u pkgsrc/lang/php/ext.mk:1.41 pkgsrc/lang/php/ext.mk:1.42
--- pkgsrc/lang/php/ext.mk:1.41 Sun Jul 24 14:01:55 2016
+++ pkgsrc/lang/php/ext.mk      Tue Jul 26 08:19:45 2016
@@ -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 @@ HOMEPAGE?=            http://pecl.php.net/package/
 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 @@ EXTRACT_SUFX?=              .tgz
 .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 @@ phpize-module:
        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 @@ do-module-install:
                ${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