diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-07-12 20:21:59 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-07-12 20:21:59 +0000 |
commit | b5e8303cbacb8b2f35a8c2cc737fc92716ec75c3 (patch) | |
tree | 40276fbe1fa1a44644c190ed8cf2f175c5fafc32 /eclass | |
parent | Fixed distcc-2.8's reliance on the gnome use flag. this was changed in favor ... (diff) | |
download | gentoo-2-b5e8303cbacb8b2f35a8c2cc737fc92716ec75c3.tar.gz gentoo-2-b5e8303cbacb8b2f35a8c2cc737fc92716ec75c3.tar.bz2 gentoo-2-b5e8303cbacb8b2f35a8c2cc737fc92716ec75c3.zip |
add workaround for people with non PHPSAPI versions in /var/db/pkg
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/php.eclass b/eclass/php.eclass index 187d1b89ca1f..ce87bf23a89a 100644 --- a/eclass/php.eclass +++ b/eclass/php.eclass @@ -1,7 +1,7 @@ # Copyright 2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Author: Robin H. Johnson <robbat2@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.62 2003/06/30 10:06:07 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.63 2003/07/12 20:21:59 robbat2 Exp $ # This EBUILD is totally masked presently. Use it at your own risk. I know it # is severely broken, but I needed to get a copy into CVS to pass around and @@ -141,6 +141,14 @@ PHP_INSTALLTARGETS="${PHP_INSTALLTARGETS} install-modules install-pear install-b #install-cli install-sapi install-modules install-pear install-build install-headers install-programs PHPMAJORVER=${PV//\.*} + +# These are quick fixups for older ebuilds that didn't have PHPSAPI defined. +[ -z "${PHPSAPI}" ] && [ "${PN}" -eq "php" ] && PHPSAPI="cli" +if [ -z "${PHPSAPI}" ] && [ "${PN}" -eq "mod_php" ]; then + use apache2 && PHPSAPI="apache2" || PHPSAPI="apache1" +fi + +# Now enforce existance of PHPSAPI if [ -z "${PHPSAPI}" ]; then msg="The PHP eclass needs a PHPSAPI setting!" eerror "${msg}" |