summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul de Vrieze <pauldv@gentoo.org>2003-05-27 11:07:46 +0000
committerPaul de Vrieze <pauldv@gentoo.org>2003-05-27 11:07:46 +0000
commit8f8554be85d05ac57522368820d849d672da8ce1 (patch)
tree18e9892af0beaa8300ccecf772ecccb7712a581a
parentFix php.eclass to include the db4 patch in src_uri. Else it can (diff)
downloadhistorical-8f8554be85d05ac57522368820d849d672da8ce1.tar.gz
historical-8f8554be85d05ac57522368820d849d672da8ce1.tar.bz2
historical-8f8554be85d05ac57522368820d849d672da8ce1.zip
Fix if statement to correctly work when db4 is present
-rw-r--r--eclass/php.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/php.eclass b/eclass/php.eclass
index 9b6d756e0cae..d2365d48aa22 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 or later
# Author: Robin H. Johnson <robbat2@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.25 2003/05/27 09:40:21 pauldv Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php.eclass,v 1.26 2003/05/27 11:07:46 pauldv 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
@@ -196,10 +196,11 @@ php_src_compile() {
[ -x "/usr/sbin/sendmail" ] || die "You need a virtual/mta that provides /usr/sbin/sendmail!"
#Hack to use db4
- if [ -n "`has_version =sys-libs/db-4*`" -a "`grep -q -- '--with-db4' configure`" ] ; then
+ if has_version =sys-libs/db-4* && grep -q -- '--with-db4' configure; then
einfo "Enabling db4"
use berkdb && myconf="${myconf} --with-db4=/usr"
else
+ einfo "enabling db3"
use berkdb && myconf="${myconf} --with-db3=/usr"
fi