| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/php-ezc.eclass,v 1.6 2011/12/14 23:10:51 mabi Exp $
|
| 4 |
|
| 5 |
# @ECLASS: php-ezc.eclass
|
| 6 |
# @MAINTAINER:
|
| 7 |
# Gentoo PHP team <php-bugs@gentoo.org>
|
| 8 |
# @BLURB: Provides an easy installation of the eZcomponents.
|
| 9 |
# @DESCRIPTION:
|
| 10 |
# This eclass provides means for an easy installation of the eZ components.
|
| 11 |
# For more information on eZcomponents see http://ez.no/products/ez_components
|
| 12 |
|
| 13 |
inherit php-pear-r1
|
| 14 |
|
| 15 |
EZC_PKG_NAME="${PN/ezc-/}"
|
| 16 |
|
| 17 |
fix_EZC_PV() {
|
| 18 |
tmp="${PV}"
|
| 19 |
tmp="${tmp/_/}"
|
| 20 |
tmp="${tmp/rc/RC}"
|
| 21 |
tmp="${tmp/beta/b}"
|
| 22 |
EZC_PV="${tmp}"
|
| 23 |
}
|
| 24 |
|
| 25 |
# @ECLASS-VARIABLE: EZC_PV
|
| 26 |
# @DESCRIPTION:
|
| 27 |
# Set in ebuild before inherit if the eclass ${PV} mangling of beta/rc
|
| 28 |
# versions breaks SRC_URI.
|
| 29 |
[[ -z "${EZC_PV}" ]] && fix_EZC_PV
|
| 30 |
|
| 31 |
EZC_PN="${EZC_PKG_NAME}-${EZC_PV}"
|
| 32 |
|
| 33 |
S="${WORKDIR}/${EZC_PN}"
|
| 34 |
|
| 35 |
DEPEND=">=dev-lang/php-5.1.2
|
| 36 |
>=dev-php/PEAR-PEAR-1.4.6"
|
| 37 |
|
| 38 |
# @ECLASS-VARIABLE: EZC_BASE_MIN
|
| 39 |
# @DESCRIPTION:
|
| 40 |
# Minimal dev-php/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-php/ezc-Base-${EZC_BASE_MIN}"
|
| 46 |
else
|
| 47 |
RDEPEND="${DEPEND}"
|
| 48 |
fi
|
| 49 |
|
| 50 |
SRC_URI="http://components.ez.no/get/${EZC_PN}.tgz"
|
| 51 |
HOMEPAGE="http://ez.no/products/ez_components"
|
| 52 |
LICENSE="BSD"
|