/[gentoo-x86]/eclass/php-pear-r1.eclass
Gentoo

Diff of /eclass/php-pear-r1.eclass

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

Revision 1.7 Revision 1.8
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-pear-r1.eclass,v 1.7 2005/11/20 01:35:05 chtekk Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.8 2006/01/05 09:11:39 sebastian Exp $
4# 4#
5# Author: Tal Peer <coredumb@gentoo.org> 5# Author: Tal Peer <coredumb@gentoo.org>
6# Maintained by the PHP Herd <php-bugs@gentoo.org> 6# Maintained by the PHP Herd <php-bugs@gentoo.org>
7# 7#
8# The php-pear-r1 eclass provides means for an easy installation of PEAR 8# The php-pear-r1 eclass provides means for an easy installation of PEAR
42php-pear-r1_src_install() { 42php-pear-r1_src_install() {
43 # SNMP support 43 # SNMP support
44 addpredict /usr/share/snmp/mibs/.index 44 addpredict /usr/share/snmp/mibs/.index
45 addpredict /var/lib/net-snmp/ 45 addpredict /var/lib/net-snmp/
46 46
47 case "${CATEGORY}" in
48 dev-php)
49 if has_version '=dev-lang/php-5*' ; then
50 PHP_BIN="/usr/lib/php5/bin/php"
51 else
52 PHP_BIN="/usr/lib/php4/bin/php"
53 fi ;;
54 dev-php4) PHP_BIN="/usr/lib/php4/bin/php" ;;
55 dev-php5) PHP_BIN="/usr/lib/php5/bin/php" ;;
56 *) die "I don't know which version of PHP packages in ${CATEGORY} require"
57 esac
58
47 cd "${S}" 59 cd "${S}"
48 mv "${WORKDIR}/package.xml" "${S}" 60 mv "${WORKDIR}/package.xml" "${S}"
49 pear install --nodeps --installroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package" 61 pear -d php_bin="${PHP_BIN}" install --nodeps --installroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package"
50 rm -rf "${D}/usr/share/php/.filemap" \ 62 rm -rf "${D}/usr/share/php/.filemap" \
51 "${D}/usr/share/php/.lock" 63 "${D}/usr/share/php/.lock"
52} 64}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20