blob: 04c06c1f5ef00529e1bea4e6bf783aa3f4fff30b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/php-ezc.eclass,v 1.8 2015/06/17 19:23:34 grknight Exp $
# @ECLASS: php-ezc.eclass
# @MAINTAINER:
# Gentoo PHP team <php-bugs@gentoo.org>
# @BLURB: Provides an easy installation of the eZcomponents.
# @DESCRIPTION:
# This eclass provides means for an easy installation of the eZ components.
# For more information on eZcomponents see http://ez.no/products/ez_components
# This eclass is no longer in use and scheduled to be removed on 2015-07-17
# @DEAD
inherit php-pear-r1
EZC_PKG_NAME="${PN/ezc-/}"
fix_EZC_PV() {
tmp="${PV}"
tmp="${tmp/_/}"
tmp="${tmp/rc/RC}"
tmp="${tmp/beta/b}"
EZC_PV="${tmp}"
}
# @ECLASS-VARIABLE: EZC_PV
# @DESCRIPTION:
# 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}"
S="${WORKDIR}/${EZC_PN}"
DEPEND=">=dev-lang/php-5.1.2
>=dev-php/PEAR-PEAR-1.4.6"
# @ECLASS-VARIABLE: EZC_BASE_MIN
# @DESCRIPTION:
# Minimal dev-php/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-php/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"
LICENSE="BSD"
|