diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-10-22 22:55:04 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-10-22 22:55:04 +0000 |
commit | 815d7ed4442a271dc6afc11aa26beeaeb06ddf29 (patch) | |
tree | 167571bb2a5d13d98aa10cf9288de92ed3538909 /eclass | |
parent | Fix doc call (from php overlay) (diff) | |
download | historical-815d7ed4442a271dc6afc11aa26beeaeb06ddf29.tar.gz historical-815d7ed4442a271dc6afc11aa26beeaeb06ddf29.tar.bz2 historical-815d7ed4442a271dc6afc11aa26beeaeb06ddf29.zip |
proper pear call
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/php-pear-r1.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/php-pear-r1.eclass b/eclass/php-pear-r1.eclass index 56a225d4ed4a..3ad6743cdcb7 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.17 2007/09/01 15:58:17 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.18 2007/10/22 22:55:04 jokey Exp $ # # Author: Tal Peer <coredumb@gentoo.org> # Author: Luca Longinotti <chtekk@gentoo.org> @@ -17,7 +17,7 @@ EXPORT_FUNCTIONS src_install -DEPEND="dev-lang/php >=dev-php/PEAR-PEAR-1.4.6" +DEPEND="dev-lang/php >=dev-php/PEAR-PEAR-1.4.8" RDEPEND="${DEPEND}" # @ECLASS-VARIABLE: PHP_PEAR_PKG_NAME @@ -70,10 +70,10 @@ php-pear-r1_src_install() { cd "${S}" mv -f "${WORKDIR}/package.xml" "${S}" - if has_version '>=dev-php/PEAR-PEAR-1.4.8' ; then - pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package.xml" > /dev/null || die "Unable to install PEAR package" + if [[ -f "${S}"/package2.xml ]] ; then + pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package2.xml" > /dev/null || die "Unable to install PEAR package" else - pear -d php_bin="${PHP_BIN}" install --nodeps --packagingroot="${D}" "${S}/package.xml" > /dev/null || die "Unable to install PEAR package" + pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package.xml" > /dev/null || die "Unable to install PEAR package" fi rm -Rf "${D}/usr/share/php/.channels" \ |