diff options
author | Markus Ullmann <jokey@gentoo.org> | 2008-03-19 09:27:28 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2008-03-19 09:27:28 +0000 |
commit | 3eb6ee60fad33c172ec039aae8dd034b01468584 (patch) | |
tree | dd32f53daf3707855d7c10cf5587911b4801aa68 /eclass/php-pear-r1.eclass | |
parent | version bump, thanks to Sergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com> f... (diff) | |
download | gentoo-2-3eb6ee60fad33c172ec039aae8dd034b01468584.tar.gz gentoo-2-3eb6ee60fad33c172ec039aae8dd034b01468584.tar.bz2 gentoo-2-3eb6ee60fad33c172ec039aae8dd034b01468584.zip |
PEAR-PEAR 1.7.x fixes from project overlay
Diffstat (limited to 'eclass/php-pear-r1.eclass')
-rw-r--r-- | eclass/php-pear-r1.eclass | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/eclass/php-pear-r1.eclass b/eclass/php-pear-r1.eclass index 49f017dacbb8..1dfc4ed190e5 100644 --- a/eclass/php-pear-r1.eclass +++ b/eclass/php-pear-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.20 2008/02/11 20:47:35 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.21 2008/03/19 09:27:28 jokey Exp $ # # Author: Tal Peer <coredumb@gentoo.org> # Author: Luca Longinotti <chtekk@gentoo.org> @@ -74,12 +74,26 @@ php-pear-r1_src_install() { if [[ -f "${WORKDIR}"/package2.xml ]] ; then mv -f "${WORKDIR}/package2.xml" "${S}" - pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ - "${S}/package2.xml" || die "Unable to install PEAR package" + if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then + local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs" + pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \ + install --force --loose --nodeps --offline --packagingroot="${D}" \ + "${S}/package2.xml" || die "Unable to install PEAR package" + else + pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ + "${S}/package2.xml" || die "Unable to install PEAR package" + fi else mv -f "${WORKDIR}/package.xml" "${S}" - pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ - "${S}/package.xml" || die "Unable to install PEAR package" + if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then + local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs" + pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \ + install --force --loose --nodeps --offline --packagingroot="${D}" \ + "${S}/package.xml" || die "Unable to install PEAR package" + else + pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ + "${S}/package.xml" || die "Unable to install PEAR package" + fi fi rm -Rf "${D}/usr/share/php/.channels" \ |