summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2008-01-13 15:28:38 +0000
committerMarkus Ullmann <jokey@gentoo.org>2008-01-13 15:28:38 +0000
commit1ea8802903672893426da68115aa010bf2492917 (patch)
tree9649472f31f705db590296094a729e66d6bda11e /eclass
parentVersion bump from project overlay (diff)
downloadhistorical-1ea8802903672893426da68115aa010bf2492917.tar.gz
historical-1ea8802903672893426da68115aa010bf2492917.tar.bz2
historical-1ea8802903672893426da68115aa010bf2492917.zip
Add EZC_BASE_MIN variable for for correct dependency tree and fix RDEPEND so that we can use the eclass for ezc-Base as well without hitting circular dependencies.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/php-ezc.eclass18
1 files changed, 14 insertions, 4 deletions
diff --git a/eclass/php-ezc.eclass b/eclass/php-ezc.eclass
index 932375a7a09c..6d50a90465a4 100644
--- a/eclass/php-ezc.eclass
+++ b/eclass/php-ezc.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-ezc.eclass,v 1.4 2007/09/01 15:58:17 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ezc.eclass,v 1.5 2008/01/13 15:28:38 jokey Exp $
# @ECLASS: php-ezc.eclass
# @MAINTAINER:
@@ -24,7 +24,8 @@ fix_EZC_PV() {
# @ECLASS-VARIABLE: EZC_PV
# @DESCRIPTION:
-# Set in ebuild if the eclass ${PV} mangling of beta/rc versions breaks SRC_URI.
+# Set in ebuild before inherit if the eclass ${PV} mangling of beta/rc
+# versions breaks SRC_URI.
[[ -z "${EZC_PV}" ]] && fix_EZC_PV
EZC_PN="${EZC_PKG_NAME}-${EZC_PV}"
@@ -34,8 +35,17 @@ S="${WORKDIR}/${EZC_PN}"
DEPEND=">=dev-lang/php-5.1.2
>=dev-php/PEAR-PEAR-1.4.6"
-RDEPEND="${DEPEND}
- dev-php5/ezc-Base"
+# @ECLASS-VARIABLE: EZC_BASE_MIN
+# @DESCRIPTION:
+# Minimal dev-php5/ezc-Base version required for given eZ component version.
+# Set in ebuild before inherit.
+[[ -z "${EZC_BASE_MIN}" ]] && EZC_BASE_MIN="1.0"
+
+if [[ "${PN}" != "ezc-Base" ]] ; then
+ RDEPEND="${DEPEND} >=dev-php5/ezc-Base-${EZC_BASE_MIN}"
+else
+ RDEPEND="${DEPEND}"
+fi
SRC_URI="http://components.ez.no/get/${EZC_PN}.tgz"
HOMEPAGE="http://ez.no/products/ez_components"