/[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.21 Revision 1.22
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.21 2008/03/19 09:27:28 jokey Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.22 2009/01/12 23:09:02 maekke 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
69 dev-php5) PHP_BIN="/usr/$(get_libdir)/php5/bin/php" ;; 69 dev-php5) PHP_BIN="/usr/$(get_libdir)/php5/bin/php" ;;
70 *) die "Version of PHP required by packages in category ${CATEGORY} unknown" 70 *) die "Version of PHP required by packages in category ${CATEGORY} unknown"
71 esac 71 esac
72 72
73 cd "${S}" 73 cd "${S}"
74 74
75 if [[ -f "${WORKDIR}"/package2.xml ]] ; then 75 if [[ -f "${WORKDIR}"/package2.xml ]] ; then
76 mv -f "${WORKDIR}/package2.xml" "${S}" 76 mv -f "${WORKDIR}/package2.xml" "${S}"
77 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then 77 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then
78 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs" 78 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
79 pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \ 79 pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20