diff options
author | 2010-06-09 16:11:28 +0000 | |
---|---|---|
committer | 2010-06-09 16:11:28 +0000 | |
commit | 8980fa5f95a396d6374bfc2a0e6eb68ab70e5152 (patch) | |
tree | de2a39a2cbc68d8c616df21d461726cef0788453 /dev-lang/php/files | |
parent | Dropped restriction on <2.30 for evolution-data-server DEPEND, bug 323215, th... (diff) | |
download | gentoo-2-8980fa5f95a396d6374bfc2a0e6eb68ab70e5152.tar.gz gentoo-2-8980fa5f95a396d6374bfc2a0e6eb68ab70e5152.tar.bz2 gentoo-2-8980fa5f95a396d6374bfc2a0e6eb68ab70e5152.zip |
fixed not-committed src_install
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/php/files')
-rw-r--r-- | dev-lang/php/files/eblits/src_install-v1.eblit | 100 |
1 files changed, 47 insertions, 53 deletions
diff --git a/dev-lang/php/files/eblits/src_install-v1.eblit b/dev-lang/php/files/eblits/src_install-v1.eblit index 6ee2bf86f418..ce0ca97e4902 100644 --- a/dev-lang/php/files/eblits/src_install-v1.eblit +++ b/dev-lang/php/files/eblits/src_install-v1.eblit @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v1.eblit,v 1.1 2010/05/27 23:05:04 mabi Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v1.eblit,v 1.2 2010/06/09 16:11:28 mabi Exp $ eblit-php-src_install() { # Makefile forgets to create this before trying to write to it... @@ -25,53 +25,29 @@ eblit-php-src_install() { # Create the directory where we'll put version-specific php scripts keepdir /usr/share/php${PHP_MV} - if use cli ; then - einfo "Installing SAPI: cli" - into "${PHP_DESTDIR}" - dobin "${SAPIS}"/cli/php \ - || die "Unable to install cli sapi" - php_install_ini cli - fi - - if use cgi ; then - einfo "Installing SAPI: cgi" - into "${PHP_DESTDIR}" # needed each time, php_install_ini would reset it - dobin "${SAPIS}"/cgi/php-cgi \ - || die "Unable to install cgi sapi" - php_install_ini cgi - fi - - if use embed ; then - einfo "Installing SAPI: embed" - into "${PHP_DESTDIR}" - dolib.so "${SAPIS}"/embed/libphp5.so \ - || die "Unable to install embed sapi" - php_install_ini embed - fi - - if use apache2 ; then - einfo "Installing SAPI: apache2" - emake INSTALL_ROOT="${D}" install-sapi || \ - die "Unable to install apache2 SAPI" - - if use concurrentmodphp ; then - einfo "Installing Apache2 config file 70_mod_php${PHP_MV}_concurr.conf" - insinto "${APACHE_MODULES_CONFDIR}" - newins "${FILESDIR}/70_mod_php${PHP_MV}_concurr.conf-apache2" \ - "70_mod_php${PHP_MV}_concurr.conf" - - # Put the ld version script in the right place so it's alwayas - # accessible - insinto "/var/lib/php-pkg/${CATEGORY}/${PN}-${PVR}/" - doins "${FILESDIR}/php${PHP_MV}-ldvs" - else - einfo "Installing Apache2 config 70_mod_php${PHP_MV}.conf)" - insinto ${APACHE_MODULES_CONFDIR} - newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \ - "70_mod_php${PHP_MV}.conf" + local sapi="", file="" + + for sapi in ${SAPIS}; do + if use "${sapi}" ; then + einfo "Installing SAPI: ${sapi}" + # needed each time, php_install_ini would reset it + into "${PHP_DESTDIR}" + file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) + + if [[ "${file: -3}" == ".so" ]]; then + if [[ "${sapi}" == "apache2" ]]; then + insinto "${PHP_DESTDIR}/../apache2/modules/" + newins "${file}" "${file/*\/}" + else + dolib.so "${file}" || die "Unable to install ${sapi} sapi" + fi + else + dobin "${file}" || die "Unable to install ${sapi} sapi" + fi + + php_install_ini "${sapi}" fi - php_install_ini apache2 - fi + done # Install env.d files newenvd "${FILESDIR}/20php${PHP_MV}-envd" \ @@ -98,12 +74,12 @@ php_install_ini() { # Set the include path to point to where we want to find PEAR packages sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php'${PHP_MV}':/usr/share/php"|' -i "${phpinisrc}" - dodir ${PHP_INI_DIR} - insinto ${PHP_INI_DIR} - newins "${phpinisrc}" ${PHP_INI_FILE} + dodir "${PHP_INI_DIR}" + insinto "${PHP_INI_DIR}" + newins "${phpinisrc}" "${PHP_INI_FILE}" - dodir ${PHP_EXT_INI_DIR} - dodir ${PHP_EXT_INI_DIR_ACTIVE} + dodir "${PHP_EXT_INI_DIR}" + dodir "${PHP_EXT_INI_DIR_ACTIVE}" # Install any extensions built as shared objects if use sharedext ; then @@ -116,6 +92,24 @@ php_install_ini() { dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}" done fi -} + # SAPI-specific handling + if [[ "${sapi}" == "apache2" ]] ; then + if use concurrentmodphp ; then + einfo "Installing Apache2 config file 70_mod_php${PHP_MV}_concurr.conf" + insinto "${APACHE_MODULES_CONFDIR}" + newins "${FILESDIR}/70_mod_php${PHP_MV}_concurr.conf-apache2" \ + "70_mod_php${PHP_MV}_concurr.conf" + # Put the ld version script in the right place so + # it's always accessible + insinto "/var/lib/php-pkg/${CATEGORY}/${PN}-${PVR}/" + doins "${FILESDIR}/php${PHP_MV}-ldvs" + else + einfo "Installing Apache2 config 70_mod_php${PHP_MV}.conf)" + insinto ${APACHE_MODULES_CONFDIR} + newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \ + "70_mod_php${PHP_MV}.conf" + fi + fi +} |