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

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

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

Revision 1.17 Revision 1.18
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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-lib-r1.eclass,v 1.17 2010/07/12 17:48:32 mabi Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-lib-r1.eclass,v 1.18 2010/07/13 23:48:46 mabi Exp $
4# 4#
5# Author: Luca Longinotti <chtekk@gentoo.org> 5# Author: Luca Longinotti <chtekk@gentoo.org>
6 6
7# @ECLASS: php-pear-lib-r1.eclass 7# @ECLASS: php-pear-lib-r1.eclass
8# @MAINTAINER: 8# @MAINTAINER:
31 # SNMP support 31 # SNMP support
32 addpredict /usr/share/snmp/mibs/.index 32 addpredict /usr/share/snmp/mibs/.index
33 addpredict /var/lib/net-snmp/ 33 addpredict /var/lib/net-snmp/
34 addpredict /session_mm_cli0.sem 34 addpredict /session_mm_cli0.sem
35 35
36 case "${CATEGORY}" in
37 dev-php)
38 if has_version '=dev-lang/php-5*' ; then
39 PHP_BIN="/usr/$(get_libdir)/php5/bin/php" 36 PHP_BIN="/usr/$(get_libdir)/php5/bin/php"
40 else
41 PHP_BIN="/usr/$(get_libdir)/php4/bin/php"
42 fi ;;
43 dev-php4) PHP_BIN="/usr/$(get_libdir)/php4/bin/php" ;;
44 dev-php5) PHP_BIN="/usr/$(get_libdir)/php5/bin/php" ;;
45 *) die "Version of PHP required by packages in category ${CATEGORY} unknown"
46 esac
47 37
48 cd "${S}" 38 cd "${S}"
49 39
50 if [[ -f "${WORKDIR}"/package2.xml ]] ; then 40 if [[ -f "${WORKDIR}"/package2.xml ]] ; then
51 mv -f "${WORKDIR}/package2.xml" "${S}" 41 mv -f "${WORKDIR}/package2.xml" "${S}"

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20