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 | 57da05b7424b884abfb36e794b3da52908075386 (patch) | |
tree | 0fb23f8a386a80f13f72cc751741a146171c0ed7 /eclass | |
parent | Fixed distcc-2.8's reliance on the gnome use flag. this was changed in favor ... (diff) | |
download | historical-57da05b7424b884abfb36e794b3da52908075386.tar.gz historical-57da05b7424b884abfb36e794b3da52908075386.tar.bz2 historical-57da05b7424b884abfb36e794b3da52908075386.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}" |