/[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.2
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.2 2005/09/25 15:21:22 kloeri 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# 7#
8# The php-ext-base eclass provides a unified interface for adding standalone 8# The php-ext-base eclass provides a unified interface for adding standalone
32EXT_DIR="`${PHPCONFIG} --extension-dir 2>/dev/null`" 32EXT_DIR="`${PHPCONFIG} --extension-dir 2>/dev/null`"
33 33
34# ---end ebuild configurable settings 34# ---end ebuild configurable settings
35 35
36DEPEND="${DEPEND} 36DEPEND="${DEPEND}
37 >=sys-devel/m4-1.4 37 >=sys-devel/m4-1.4.3
38 >=sys-devel/libtool-1.4.3" 38 >=sys-devel/libtool-1.5.18
39 >=sys-devel/automake-1.9.6
40 sys-devel/automake-wrapper
41 >=sys-devel/autoconf-2.59
42 sys-devel/autoconf-wrapper"
39 43
40php-ext-base-r1_buildinilist() { 44php-ext-base-r1_buildinilist() {
41 # work out the list of .ini files to edit/add to 45 # work out the list of .ini files to edit/add to
42 if [ -z "${PHPSAPILIST}" ]; then 46 if [ -z "${PHPSAPILIST}" ]; then
43 PHPSAPILIST="apache1 apache2 cli cgi" 47 PHPSAPILIST="apache1 apache2 cli cgi"
63 PHP_EXT_SHARED_DIR="/usr/share/${PHP_SHARED_CAT}/${PHP_EXT_NAME}" 67 PHP_EXT_SHARED_DIR="/usr/share/${PHP_SHARED_CAT}/${PHP_EXT_NAME}"
64} 68}
65 69
66php-ext-base-r1_addextension() { 70php-ext-base-r1_addextension() {
67 if [ "${PHP_EXT_ZENDEXT}" = "yes" ] ; then 71 if [ "${PHP_EXT_ZENDEXT}" = "yes" ] ; then
68 if built_with_use =${PHP_PKG} apache2 threads ; then 72 if has_zts ; then
69 ext_type="zend_extension_ts" 73 ext_type="zend_extension_ts"
70 ext_file="${EXT_DIR}/$1" 74 ext_file="${EXT_DIR}/$1"
71 else 75 else
72 ext_type="zend_extension" 76 ext_type="zend_extension"
73 ext_file="${EXT_DIR}/$1" 77 ext_file="${EXT_DIR}/$1"

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

  ViewVC Help
Powered by ViewVC 1.1.20