/[gentoo-x86]/eclass/php-ezc.eclass
Gentoo

Diff of /eclass/php-ezc.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
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-ezc.eclass,v 1.4 2007/09/01 15:58:17 jokey Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-ezc.eclass,v 1.5 2008/01/13 15:28:38 jokey Exp $
4 4
5# @ECLASS: php-ezc.eclass 5# @ECLASS: php-ezc.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Gentoo PHP team <php-bugs@gentoo.org> 7# Gentoo PHP team <php-bugs@gentoo.org>
8# @BLURB: Provides an easy installation of the eZcomponents. 8# @BLURB: Provides an easy installation of the eZcomponents.
22 EZC_PV="${tmp}" 22 EZC_PV="${tmp}"
23} 23}
24 24
25# @ECLASS-VARIABLE: EZC_PV 25# @ECLASS-VARIABLE: EZC_PV
26# @DESCRIPTION: 26# @DESCRIPTION:
27# Set in ebuild if the eclass ${PV} mangling of beta/rc versions breaks SRC_URI. 27# Set in ebuild before inherit if the eclass ${PV} mangling of beta/rc
28# versions breaks SRC_URI.
28[[ -z "${EZC_PV}" ]] && fix_EZC_PV 29[[ -z "${EZC_PV}" ]] && fix_EZC_PV
29 30
30EZC_PN="${EZC_PKG_NAME}-${EZC_PV}" 31EZC_PN="${EZC_PKG_NAME}-${EZC_PV}"
31 32
32S="${WORKDIR}/${EZC_PN}" 33S="${WORKDIR}/${EZC_PN}"
33 34
34DEPEND=">=dev-lang/php-5.1.2 35DEPEND=">=dev-lang/php-5.1.2
35 >=dev-php/PEAR-PEAR-1.4.6" 36 >=dev-php/PEAR-PEAR-1.4.6"
36 37
38# @ECLASS-VARIABLE: EZC_BASE_MIN
39# @DESCRIPTION:
40# Minimal dev-php5/ezc-Base version required for given eZ component version.
41# Set in ebuild before inherit.
42[[ -z "${EZC_BASE_MIN}" ]] && EZC_BASE_MIN="1.0"
43
44if [[ "${PN}" != "ezc-Base" ]] ; then
45 RDEPEND="${DEPEND} >=dev-php5/ezc-Base-${EZC_BASE_MIN}"
46else
37RDEPEND="${DEPEND} 47 RDEPEND="${DEPEND}"
38 dev-php5/ezc-Base" 48fi
39 49
40SRC_URI="http://components.ez.no/get/${EZC_PN}.tgz" 50SRC_URI="http://components.ez.no/get/${EZC_PN}.tgz"
41HOMEPAGE="http://ez.no/products/ez_components" 51HOMEPAGE="http://ez.no/products/ez_components"
42LICENSE="BSD" 52LICENSE="BSD"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20