| 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 | |
| 30 | EZC_PN="${EZC_PKG_NAME}-${EZC_PV}" |
31 | EZC_PN="${EZC_PKG_NAME}-${EZC_PV}" |
| 31 | |
32 | |
| 32 | S="${WORKDIR}/${EZC_PN}" |
33 | S="${WORKDIR}/${EZC_PN}" |
| 33 | |
34 | |
| 34 | DEPEND=">=dev-lang/php-5.1.2 |
35 | DEPEND=">=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 | |
|
|
44 | if [[ "${PN}" != "ezc-Base" ]] ; then |
|
|
45 | RDEPEND="${DEPEND} >=dev-php5/ezc-Base-${EZC_BASE_MIN}" |
|
|
46 | else |
| 37 | RDEPEND="${DEPEND} |
47 | RDEPEND="${DEPEND}" |
| 38 | dev-php5/ezc-Base" |
48 | fi |
| 39 | |
49 | |
| 40 | SRC_URI="http://components.ez.no/get/${EZC_PN}.tgz" |
50 | SRC_URI="http://components.ez.no/get/${EZC_PN}.tgz" |
| 41 | HOMEPAGE="http://ez.no/products/ez_components" |
51 | HOMEPAGE="http://ez.no/products/ez_components" |
| 42 | LICENSE="BSD" |
52 | LICENSE="BSD" |