/[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.2 Revision 1.5
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.2 2005/09/25 15:21:22 kloeri Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-base-r1.eclass,v 1.5 2007/02/02 19:09:33 chtekk 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
25[ -z "${PHP_EXT_ZENDEXT}" ] && PHP_EXT_ZENDEXT="no" 26[ -z "${PHP_EXT_ZENDEXT}" ] && PHP_EXT_ZENDEXT="no"
26 27
27# Wether or not to add a line in the php.ini for the extension 28# Wether or not to add a line in the php.ini for the extension
28# (defaults to "yes" and shouldn't be changed in most cases) 29# (defaults to "yes" and shouldn't be changed in most cases)
29[ -z "${PHP_EXT_INI}" ] && PHP_EXT_INI="yes" 30[ -z "${PHP_EXT_INI}" ] && PHP_EXT_INI="yes"
30
31# find out where to install extensions
32EXT_DIR="`${PHPCONFIG} --extension-dir 2>/dev/null`"
33 31
34# ---end ebuild configurable settings 32# ---end ebuild configurable settings
35 33
36DEPEND="${DEPEND} 34DEPEND="${DEPEND}
37 >=sys-devel/m4-1.4.3 35 >=sys-devel/m4-1.4.3
61 addpredict /usr/share/snmp/mibs/.index 59 addpredict /usr/share/snmp/mibs/.index
62 php-ext-base-r1_buildinilist 60 php-ext-base-r1_buildinilist
63 if [ "${PHP_EXT_INI}" = "yes" ] ; then 61 if [ "${PHP_EXT_INI}" = "yes" ] ; then
64 php-ext-base-r1_addextension "${PHP_EXT_NAME}.so" 62 php-ext-base-r1_addextension "${PHP_EXT_NAME}.so"
65 fi 63 fi
64 for inifile in ${PHPINIFILELIST} ; do
65 inidir=${inifile/${PHP_EXT_NAME}.ini/}
66 inidir=${inidir/ext/ext-active}
67 dodir "/${inidir}"
68 dosym "/${inifile}" "/${inifile/ext/ext-active}"
69 done
66 # add support for installing php files into a version dependant directory 70 # add support for installing php files into a version dependant directory
67 PHP_EXT_SHARED_DIR="/usr/share/${PHP_SHARED_CAT}/${PHP_EXT_NAME}" 71 PHP_EXT_SHARED_DIR="/usr/share/${PHP_SHARED_CAT}/${PHP_EXT_NAME}"
68} 72}
69 73
70php-ext-base-r1_addextension() { 74php-ext-base-r1_addextension() {

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

  ViewVC Help
Powered by ViewVC 1.1.20