Fix java-internal INI file support.
authorLuca Longinotti <chtekk@gentoo.org>
Tue, 1 Nov 2005 10:04:13 +0000 (10:04 +0000)
committerLuca Longinotti <chtekk@gentoo.org>
Tue, 1 Nov 2005 10:04:13 +0000 (10:04 +0000)
eclass/php-common-r1.eclass

index f10302cc655ec2503d985305d8be532f3e94a9e8..b7557b130dbf0ec088ec6da92aaad51b602ad300 100644 (file)
@@ -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.3 2005/10/31 14:08:42 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.4 2005/11/01 10:04:13 chtekk Exp $
 
 # ########################################################################
 #
@@ -122,6 +122,10 @@ php_install_java() {
 }
 
 php_install_java_inifile() {
+       if ! useq java-internal ; then
+               return 1
+       fi
+
        JAVA_LIBRARY="`grep -- '-DJAVALIB' Makefile | sed -e 's,.\+-DJAVALIB=\"\([^"]*\)\".*$,\1,g;'| sort | uniq `"
 
        echo "extension = java.so" >> "${D}/${PHP_EXT_INI_DIR}/java.ini"