/[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.4
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.4 2005/11/20 01:35:05 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
61 addpredict /usr/share/snmp/mibs/.index 62 addpredict /usr/share/snmp/mibs/.index
62 php-ext-base-r1_buildinilist 63 php-ext-base-r1_buildinilist
63 if [ "${PHP_EXT_INI}" = "yes" ] ; then 64 if [ "${PHP_EXT_INI}" = "yes" ] ; then
64 php-ext-base-r1_addextension "${PHP_EXT_NAME}.so" 65 php-ext-base-r1_addextension "${PHP_EXT_NAME}.so"
65 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
66 # add support for installing php files into a version dependant directory 73 # add support for installing php files into a version dependant directory
67 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}"
68} 75}
69 76
70php-ext-base-r1_addextension() { 77php-ext-base-r1_addextension() {

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

  ViewVC Help
Powered by ViewVC 1.1.20