diff options
author | Luca Longinotti <chtekk@gentoo.org> | 2006-03-13 17:12:22 +0000 |
---|---|---|
committer | Luca Longinotti <chtekk@gentoo.org> | 2006-03-13 17:12:22 +0000 |
commit | 0734e00ada4126ca7853b9fb8da0ee0fd5415b1b (patch) | |
tree | feeb865cbfa79631cf431cc6989c854d47464ee2 /eclass | |
parent | seems to work well on x86 (diff) | |
download | gentoo-2-0734e00ada4126ca7853b9fb8da0ee0fd5415b1b.tar.gz gentoo-2-0734e00ada4126ca7853b9fb8da0ee0fd5415b1b.tar.bz2 gentoo-2-0734e00ada4126ca7853b9fb8da0ee0fd5415b1b.zip |
Fix problems with OCI8.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php5_1-sapi.eclass | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/eclass/php5_1-sapi.eclass b/eclass/php5_1-sapi.eclass index 87836285e730..ee5885fa704d 100644 --- a/eclass/php5_1-sapi.eclass +++ b/eclass/php5_1-sapi.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php5_1-sapi.eclass,v 1.17 2006/03/12 13:24:36 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php5_1-sapi.eclass,v 1.18 2006/03/13 17:12:22 chtekk Exp $ # # ######################################################################## # @@ -407,12 +407,6 @@ php5_1-sapi_src_compile() { enable_extension_with "msql" "msql" 1 enable_extension_with "mssql" "mssql" 1 enable_extension_with "ncurses" "ncurses" 1 - enable_extension_with "oci8" "oci8" 1 - if useq oci8-instant-client ; then - OCI8IC_PKG="`best_version dev-db/oracle-instantclient-basic`" - OCI8IC_PKG="`printf ${OCI8IC_PKG} | sed -e 's|dev-db/oracle-instantclient-basic-||g' | sed -e 's|-r.*||g'`" - fi - enable_extension_with "oci8" "oci8-instant-client" 1 "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" enable_extension_with "openssl" "ssl" 0 enable_extension_with "openssl-dir" "ssl" 0 "/usr" enable_extension_enable "pcntl" "pcntl" 1 @@ -520,17 +514,29 @@ php5_1-sapi_src_compile() { enable_extension_with "solid" "solid" 1 fi + # Oracle support + if useq oci8 ; then + enable_extension_with "oci8" "oci8" 1 + fi + if useq oci8-instant-client ; then + OCI8IC_PKG="`best_version dev-db/oracle-instantclient-basic`" + OCI8IC_PKG="`printf ${OCI8IC_PKG} | sed -e 's|dev-db/oracle-instantclient-basic-||g' | sed -e 's|-r.*||g'`" + enable_extension_with "oci8" "oci8-instant-client" 1 "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" + fi + # PDO support if useq pdo ; then enable_extension_with "pdo-dblib" "mssql" 1 enable_extension_with "pdo-firebird" "firebird" 1 enable_extension_with "pdo-mysql" "mysql" 1 "/usr" - enable_extension_with "pdo-oci" "oci8" 1 + if useq oci8 ; then + enable_extension_with "pdo-oci" "oci8" 1 + fi if useq oci8-instant-client ; then OCI8IC_PKG="`best_version dev-db/oracle-instantclient-basic`" OCI8IC_PKG="`printf ${OCI8IC_PKG} | sed -e 's|dev-db/oracle-instantclient-basic-||g' | sed -e 's|-r.*||g'`" + enable_extension_with "pdo-oci" "oci8-instant-client" 1 "instantclient,/usr,${OCI8IC_PKG}" fi - enable_extension_with "pdo-oci" "oci8-instant-client" 1 "instantclient,/usr,${OCI8IC_PKG}" enable_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr" enable_extension_with "pdo-pgsql" "postgres" 1 enable_extension_without "pdo-sqlite" "sqlite" 1 |