/[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.16 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.16 2010/06/09 11:11:58 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}"
52 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then 42 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then
53 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs" 43 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
54 pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \ 44 peardev -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \
55 install --force --loose --nodeps --offline --packagingroot="${D}" \ 45 install --force --loose --nodeps --offline --packagingroot="${D}" \
56 "${S}/package2.xml" || die "Unable to install PEAR package" 46 "${S}/package2.xml" || die "Unable to install PEAR package"
57 else 47 else
58 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ 48 peardev -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \
59 "${S}/package2.xml" || die "Unable to install PEAR package" 49 "${S}/package2.xml" || die "Unable to install PEAR package"
60 fi 50 fi
61 else 51 else
62 mv -f "${WORKDIR}/package.xml" "${S}" 52 mv -f "${WORKDIR}/package.xml" "${S}"
63 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then 53 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then
64 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs" 54 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
65 pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \ 55 peardev -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \
66 install --force --loose --nodeps --offline --packagingroot="${D}" \ 56 install --force --loose --nodeps --offline --packagingroot="${D}" \
67 "${S}/package.xml" || die "Unable to install PEAR package" 57 "${S}/package.xml" || die "Unable to install PEAR package"
68 else 58 else
69 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ 59 peardev -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \
70 "${S}/package.xml" || die "Unable to install PEAR package" 60 "${S}/package.xml" || die "Unable to install PEAR package"
71 fi 61 fi
72 fi 62 fi
73 63
74 rm -Rf "${D}/usr/share/php/.channels" \ 64 rm -Rf "${D}/usr/share/php/.channels" \

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

  ViewVC Help
Powered by ViewVC 1.1.20