| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.6 2006/03/24 23:05:49 chtekk Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.8 2006/07/14 16:02:36 chtekk Exp $ |
| 4 | |
4 | |
| 5 | # ######################################################################## |
5 | # ######################################################################## |
| 6 | # |
6 | # |
| 7 | # eclass/php-common-r1.eclass |
7 | # eclass/php-common-r1.eclass |
| 8 | # Contains common functions which are shared between the |
8 | # Contains common functions which are shared between the |
| … | |
… | |
| 113 | fi |
113 | fi |
| 114 | |
114 | |
| 115 | # We put these into /usr/lib so that they cannot conflict with |
115 | # We put these into /usr/lib so that they cannot conflict with |
| 116 | # other versions of PHP (e.g. PHP 4 & PHP 5) |
116 | # other versions of PHP (e.g. PHP 4 & PHP 5) |
| 117 | insinto "${PHPEXTDIR}" |
117 | insinto "${PHPEXTDIR}" |
|
|
118 | |
|
|
119 | einfo "Installing PHP java extension" |
|
|
120 | doins "modules/java.so" |
|
|
121 | |
|
|
122 | einfo "Creating PHP java extension symlink" |
|
|
123 | dosym "${PHPEXTDIR}/java.so" "${PHPEXTDIR}/libphp_java.so" |
|
|
124 | |
| 118 | einfo "Installing JAR for PHP" |
125 | einfo "Installing JAR for PHP" |
| 119 | doins "ext/java/php_java.jar" |
126 | doins "ext/java/php_java.jar" |
| 120 | |
127 | |
| 121 | einfo "Installing Java test page" |
128 | einfo "Installing Java test page" |
| 122 | newins "ext/java/except.php" "java-test.php" |
129 | newins "ext/java/except.php" "java-test.php" |
| 123 | |
|
|
| 124 | einfo "Installing Java extension for PHP" |
|
|
| 125 | doins "modules/java.so" |
|
|
| 126 | |
|
|
| 127 | dosym "${PHPEXTDIR}/java.so" "${PHPEXTDIR}/libphp_java.so" |
|
|
| 128 | } |
130 | } |
| 129 | |
131 | |
| 130 | php_install_java_inifile() { |
132 | php_install_java_inifile() { |
| 131 | if ! useq "java-internal" && ! phpconfutils_usecheck "java-internal" ; then |
133 | if ! useq "java-internal" && ! phpconfutils_usecheck "java-internal" ; then |
| 132 | return |
134 | return |
| … | |
… | |
| 203 | fi |
205 | fi |
| 204 | fi |
206 | fi |
| 205 | } |
207 | } |
| 206 | |
208 | |
| 207 | # ######################################################################## |
209 | # ######################################################################## |
|
|
210 | # POSTGRESQL SUPPORT |
|
|
211 | # ######################################################################## |
|
|
212 | |
|
|
213 | php_check_pgsql() { |
|
|
214 | if useq "postgres" \ |
|
|
215 | && useq "apache2" && useq "threads" \ |
|
|
216 | && has_version ">=dev-db/libpq-8.1.3-r1" \ |
|
|
217 | && ! built_with_use ">=dev-db/libpq-8.1.3-r1" "threads" ; then |
|
|
218 | eerror |
|
|
219 | eerror "You must build dev-db/libpq with the 'threads' USE flag" |
|
|
220 | eerror "turned on if you want to build PHP with threads support!" |
|
|
221 | eerror |
|
|
222 | die "Rebuild dev-db/libpq with 'threads' USE flag enabled" |
|
|
223 | fi |
|
|
224 | } |
|
|
225 | |
|
|
226 | # ######################################################################## |
| 208 | # END OF ECLASS |
227 | # END OF ECLASS |
| 209 | # ######################################################################## |
228 | # ######################################################################## |