/[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.24 Revision 1.25
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-r1.eclass,v 1.24 2010/03/31 20:37:56 mabi Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.25 2010/07/13 23:48:47 mabi Exp $
4# 4#
5# Author: Tal Peer <coredumb@gentoo.org> 5# Author: Tal Peer <coredumb@gentoo.org>
6# Author: Luca Longinotti <chtekk@gentoo.org> 6# Author: Luca Longinotti <chtekk@gentoo.org>
7 7
8# @ECLASS: php-pear-r1.eclass 8# @ECLASS: php-pear-r1.eclass
58 # SNMP support 58 # SNMP support
59 addpredict /usr/share/snmp/mibs/.index 59 addpredict /usr/share/snmp/mibs/.index
60 addpredict /var/lib/net-snmp/ 60 addpredict /var/lib/net-snmp/
61 addpredict /session_mm_cli0.sem 61 addpredict /session_mm_cli0.sem
62 62
63 case "${CATEGORY}" in
64 dev-php)
65 if has_version '=dev-lang/php-5*' ; then
66 PHP_BIN="/usr/$(get_libdir)/php5/bin/php" 63 PHP_BIN="/usr/$(get_libdir)/php5/bin/php" ;;
67 else
68 PHP_BIN="/usr/$(get_libdir)/php4/bin/php"
69 fi ;;
70 dev-php4) PHP_BIN="/usr/$(get_libdir)/php4/bin/php" ;;
71 dev-php5) PHP_BIN="/usr/$(get_libdir)/php5/bin/php" ;;
72 *) die "Version of PHP required by packages in category ${CATEGORY} unknown"
73 esac
74 64
75 cd "${S}" 65 cd "${S}"
76 66
77 if [[ -f "${WORKDIR}"/package2.xml ]] ; then 67 if [[ -f "${WORKDIR}"/package2.xml ]] ; then
78 mv -f "${WORKDIR}/package2.xml" "${S}" 68 mv -f "${WORKDIR}/package2.xml" "${S}"

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20