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
commitbfbb68477e609b35b80299045f3d4774994465e4 (patch)
treeb698a4b47bac56249eb68fd4dc338f0167787e69
parentFix php.eclass to include the db4 patch in src_uri. Else it can (diff)
downloadgentoo-2-bfbb68477e609b35b80299045f3d4774994465e4.tar.gz
gentoo-2-bfbb68477e609b35b80299045f3d4774994465e4.tar.bz2
gentoo-2-bfbb68477e609b35b80299045f3d4774994465e4.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