summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-08-27 11:15:19 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-08-27 11:15:19 +0000
commit0d9e16118255b91b50ae5e521aeac1a621396d18 (patch)
tree4f240d56edeb503ba6bffe017b3ed8799a0417d4 /eclass/php-pear-r1.eclass
parentBackport fix for Bug 180391 to php-4.4.x (diff)
downloadgentoo-2-0d9e16118255b91b50ae5e521aeac1a621396d18.tar.gz
gentoo-2-0d9e16118255b91b50ae5e521aeac1a621396d18.tar.bz2
gentoo-2-0d9e16118255b91b50ae5e521aeac1a621396d18.zip
Fix for beta/rc versions in SRC_URI
Diffstat (limited to 'eclass/php-pear-r1.eclass')
-rw-r--r--eclass/php-pear-r1.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/php-pear-r1.eclass b/eclass/php-pear-r1.eclass
index 0a340de773e4..7a7b0249b654 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.15 2007/03/22 20:12:56 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.16 2007/08/27 11:15:19 jokey Exp $
#
# Author: Tal Peer <coredumb@gentoo.org>
# Author: Luca Longinotti <chtekk@gentoo.org>
@@ -29,8 +29,9 @@ fix_PEAR_PV() {
PEAR_PV="${tmp}"
}
-PEAR_PV=""
-fix_PEAR_PV
+# Set PEAR_PV in ebuilds if the PV mangling for beta/rc versions breaks SRC_URI
+[[ -z "${PEAR_PV}" ]] && fix_PEAR_PV
+
PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}"
[[ -z "${SRC_URI}" ]] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz"