From: "Ole Markus With (olemarkus)" <olemarkus@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: php-ext-source-r2.eclass
Date: Fri, 22 Jul 2011 12:13:27 +0000 (UTC) [thread overview]
Message-ID: <20110722121327.6C23F2004B@flycatcher.gentoo.org> (raw)
olemarkus 11/07/22 12:13:27
Modified: php-ext-source-r2.eclass
Log:
Fixed a few bugs and added support for supplying custom ini files
Revision Changes Path
1.12 eclass/php-ext-source-r2.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r2.eclass?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r2.eclass?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r2.eclass?r1=1.11&r2=1.12
Index: php-ext-source-r2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- php-ext-source-r2.eclass 22 Jul 2011 09:19:15 -0000 1.11
+++ php-ext-source-r2.eclass 22 Jul 2011 12:13:27 -0000 1.12
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.11 2011/07/22 09:19:15 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.12 2011/07/22 12:13:27 olemarkus Exp $
#
# Author: Tal Peer <coredumb@gentoo.org>
# Author: Stuart Herbert <stuart@gentoo.org>
@@ -225,12 +225,14 @@
PHPSAPILIST="apache2 cli cgi fpm"
fi
+ PHPINIFILELIST=""
local x
for x in ${PHPSAPILIST} ; do
if [[ -f "/etc/php/${x}-${1}/php.ini" ]] ; then
PHPINIFILELIST="${PHPINIFILELIST} etc/php/${x}-${1}/ext/${PHP_EXT_NAME}.ini"
fi
done
+ PHPFULLINIFILELIST="${PHPFULLINIFILELIST} ${PHPINIFILELIST}"
}
# @FUNCTION: php-ext-source-r2_createinifiles
@@ -245,22 +247,36 @@
# Build the list of <ext>.ini files to edit/add to
php-ext-source-r2_buildinilist ${slot}
+ PHPFULLINIFILELISTbak="${PHPFULLINIFILELIST}"
+ PHPFULLINIFILELIST="${PHPINIFILELIST}"
# Add the needed lines to the <ext>.ini files
if [[ "${PHP_EXT_INI}" = "yes" ]] ; then
php-ext-source-r2_addextension "${PHP_EXT_NAME}.so"
fi
+
+ PHPFULLINIFILELIST=${PHPFULLINIFILELISTbak}
# Symlink the <ext>.ini files from ext/ to ext-active/
for inifile in ${PHPINIFILELIST} ; do
+ if [[ -n "${PHP_EXT_INIFILE}" ]]; then
+ cat "${FILESDIR}/${PHP_EXT_INIFILE}" >> "${D}/${inifile}"
+ einfo "Added content of ${FILESDIR}/${PHP_EXT_INIFILE} to ${inifile}"
+ fi
+
+
+
+
inidir="${inifile/${PHP_EXT_NAME}.ini/}"
inidir="${inidir/ext/ext-active}"
dodir "/${inidir}"
dosym "/${inifile}" "/${inifile/ext/ext-active}"
done
+
# Add support for installing PHP files into a version dependant directory
PHP_EXT_SHARED_DIR="/usr/share/php/${PHP_EXT_NAME}"
done
+
}
php-ext-source-r2_addextension() {
@@ -348,7 +364,7 @@
# @CODE
php-ext-source-r2_addtoinifiles() {
local x
- for x in ${PHPINIFILELIST} ; do
+ for x in ${PHPFULLINIFILELIST} ; do
php-ext-source-r2_addtoinifile "${1}" "${2}" "${x}" "${3}"
done
}
next reply other threads:[~2011-07-22 12:13 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-22 12:13 Ole Markus With (olemarkus) [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-01 10:55 [gentoo-commits] gentoo-x86 commit in eclass: php-ext-source-r2.eclass Ole Markus With (olemarkus)
2012-06-22 20:05 Ole Markus With (olemarkus)
2012-02-16 11:25 Ole Markus With (olemarkus)
2012-01-15 17:18 Ole Markus With (olemarkus)
2012-01-13 5:38 Ole Markus With (olemarkus)
2012-01-12 11:10 Ole Markus With (olemarkus)
2012-01-11 18:30 Ole Markus With (olemarkus)
2011-11-24 0:04 Mike Frysinger (vapier)
2011-09-09 14:39 Ole Markus With (olemarkus)
2011-08-19 9:15 Ole Markus With (olemarkus)
2011-08-15 12:48 Ole Markus With (olemarkus)
2011-07-22 9:19 Ole Markus With (olemarkus)
2011-06-29 7:04 Ole Markus With (olemarkus)
2011-05-22 7:18 Ole Markus With (olemarkus)
2011-01-10 11:25 Ole Markus With (olemarkus)
2011-01-09 0:05 Robin H. Johnson (robbat2)
2010-12-27 22:19 Jeremy Olexa (darkside)
2010-11-03 22:47 Ole Markus With (olemarkus)
2010-11-02 21:46 Ole Markus With (olemarkus)
2010-11-02 17:09 Ole Markus With (olemarkus)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110722121327.6C23F2004B@flycatcher.gentoo.org \
--to=olemarkus@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox