summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-04-18 12:21:14 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-04-18 12:21:14 +0000
commit1ba7220f49356bbb73b71643b73e7cb8ef9b7b3e (patch)
treee195aecef30a51b822c57fd5f18951f0c7f13310 /eclass/php-common-r1.eclass
parentStable on SPARC. (diff)
downloadhistorical-1ba7220f49356bbb73b71643b73e7cb8ef9b7b3e.tar.gz
historical-1ba7220f49356bbb73b71643b73e7cb8ef9b7b3e.tar.bz2
historical-1ba7220f49356bbb73b71643b73e7cb8ef9b7b3e.zip
Sync with overlay and fix several issues.
Diffstat (limited to 'eclass/php-common-r1.eclass')
-rw-r--r--eclass/php-common-r1.eclass19
1 files changed, 18 insertions, 1 deletions
diff --git a/eclass/php-common-r1.eclass b/eclass/php-common-r1.eclass
index e6101211100c..fa31c7749fb4 100644
--- a/eclass/php-common-r1.eclass
+++ b/eclass/php-common-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.6 2006/03/24 23:05:49 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.7 2006/04/18 12:21:14 chtekk Exp $
# ########################################################################
#
@@ -205,5 +205,22 @@ php_check_oracle_8() {
}
# ########################################################################
+# POSTGRESQL SUPPORT
+# ########################################################################
+
+php_check_pgsql() {
+ if useq "postgres" \
+ && useq "apache2" && useq "threads" \
+ && has_version ">=dev-db/libpq-8.1.3-r1" \
+ && ! built_with_use ">=dev-db/libpq-8.1.3-r1" "threads" ; then
+ eerror
+ eerror "You must build dev-db/libpq with the 'threads' USE flag"
+ eerror "turned on if you want to build PHP with threads support!"
+ eerror
+ die "Rebuild dev-db/libpq with 'threads' USE flag enabled"
+ fi
+}
+
+# ########################################################################
# END OF ECLASS
# ########################################################################