/[gentoo-x86]/eclass/php-ext-base-r1.eclass
Gentoo

Diff of /eclass/php-ext-base-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.1.1.1
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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-ext-base-r1.eclass,v 1.1 2005/09/04 10:54:53 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-base-r1.eclass,v 1.1.1.1 2005/11/30 09:59:18 chriswhite Exp $
4# 4#
5# Author: Tal Peer <coredumb@gentoo.org> 5# Author: Tal Peer <coredumb@gentoo.org>
6# Author: Stuart Herbert <stuart@gentoo.org> 6# Author: Stuart Herbert <stuart@gentoo.org>
7# Maintained by the PHP Herd <php-bugs@gentoo.org>
7# 8#
8# The php-ext-base eclass provides a unified interface for adding standalone 9# The php-ext-base-r1 eclass provides a unified interface for adding standalone
9# PHP extensions ('modules') to the php.ini files on your system. 10# PHP extensions ('modules') to the php.ini files on your system.
10# 11#
11# Combined with php-ext-source, we have a standardised solution for supporting 12# Combined with php-ext-source-r1, we have a standardised solution for supporting
12# PHP extensions 13# PHP extensions.
13 14
14inherit depend.php 15inherit depend.php
15 16
16EXPORT_FUNCTIONS src_install 17EXPORT_FUNCTIONS src_install
17 18
32EXT_DIR="`${PHPCONFIG} --extension-dir 2>/dev/null`" 33EXT_DIR="`${PHPCONFIG} --extension-dir 2>/dev/null`"
33 34
34# ---end ebuild configurable settings 35# ---end ebuild configurable settings
35 36
36DEPEND="${DEPEND} 37DEPEND="${DEPEND}
37 >=sys-devel/m4-1.4 38 >=sys-devel/m4-1.4.3
38 >=sys-devel/libtool-1.4.3" 39 >=sys-devel/libtool-1.5.18
40 >=sys-devel/automake-1.9.6
41 sys-devel/automake-wrapper
42 >=sys-devel/autoconf-2.59
43 sys-devel/autoconf-wrapper"
39 44
40php-ext-base-r1_buildinilist() { 45php-ext-base-r1_buildinilist() {
41 # work out the list of .ini files to edit/add to 46 # work out the list of .ini files to edit/add to
42 if [ -z "${PHPSAPILIST}" ]; then 47 if [ -z "${PHPSAPILIST}" ]; then
43 PHPSAPILIST="apache1 apache2 cli cgi" 48 PHPSAPILIST="apache1 apache2 cli cgi"
57 addpredict /usr/share/snmp/mibs/.index 62 addpredict /usr/share/snmp/mibs/.index
58 php-ext-base-r1_buildinilist 63 php-ext-base-r1_buildinilist
59 if [ "${PHP_EXT_INI}" = "yes" ] ; then 64 if [ "${PHP_EXT_INI}" = "yes" ] ; then
60 php-ext-base-r1_addextension "${PHP_EXT_NAME}.so" 65 php-ext-base-r1_addextension "${PHP_EXT_NAME}.so"
61 fi 66 fi
67 for inifile in ${PHPINIFILELIST} ; do
68 inidir=${inifile/${PHP_EXT_NAME}.ini/}
69 inidir=${inidir/ext/ext-active}
70 dodir "/${inidir}"
71 dosym "/${inifile}" "/${inifile/ext/ext-active}"
72 done
62 # add support for installing php files into a version dependant directory 73 # add support for installing php files into a version dependant directory
63 PHP_EXT_SHARED_DIR="/usr/share/${PHP_SHARED_CAT}/${PHP_EXT_NAME}" 74 PHP_EXT_SHARED_DIR="/usr/share/${PHP_SHARED_CAT}/${PHP_EXT_NAME}"
64} 75}
65 76
66php-ext-base-r1_addextension() { 77php-ext-base-r1_addextension() {
67 if [ "${PHP_EXT_ZENDEXT}" = "yes" ] ; then 78 if [ "${PHP_EXT_ZENDEXT}" = "yes" ] ; then
68 if built_with_use =${PHP_PKG} apache2 threads ; then 79 if has_zts ; then
69 ext_type="zend_extension_ts" 80 ext_type="zend_extension_ts"
70 ext_file="${EXT_DIR}/$1" 81 ext_file="${EXT_DIR}/$1"
71 else 82 else
72 ext_type="zend_extension" 83 ext_type="zend_extension"
73 ext_file="${EXT_DIR}/$1" 84 ext_file="${EXT_DIR}/$1"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.1.1

  ViewVC Help
Powered by ViewVC 1.1.20