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

Contents of /eclass/php-ezc.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Aug 31 09:40:33 2007 UTC (6 years, 7 months ago) by jokey
Branch: MAIN
Changes since 1.2: +4 -3 lines
set EZC_PV in ebuilds if the PV mangling of beta/rc versions breaks SRC_URI

1 # Copyright 1999-2007 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.2 2007/03/05 01:50:47 chtekk Exp $
4 #
5 # Maintained by the PHP Team <php-bugs@gentoo.org>
6 #
7 # The php-ezc eclass provides means for an easy installation
8 # of the eZ components, see http://ez.no/products/ez_components
9
10 inherit php-pear-r1
11
12 EZC_PKG_NAME="${PN/ezc-/}"
13
14 fix_EZC_PV() {
15 tmp="${PV}"
16 tmp="${tmp/_/}"
17 tmp="${tmp/rc/RC}"
18 tmp="${tmp/beta/b}"
19 EZC_PV="${tmp}"
20 }
21
22 # set EZC_PV in ebuilds if the PV mangling of beta/rc versions breaks SRC_URI
23 [[ -z "${EZC_PV}" ]] && fix_EZC_PV
24
25 EZC_PN="${EZC_PKG_NAME}-${EZC_PV}"
26
27 S="${WORKDIR}/${EZC_PN}"
28
29 DEPEND=">=dev-lang/php-5.1.2
30 >=dev-php/PEAR-PEAR-1.4.6"
31
32 RDEPEND="${DEPEND}
33 dev-php5/ezc-Base"
34
35 SRC_URI="http://components.ez.no/get/${EZC_PN}.tgz"
36 HOMEPAGE="http://ez.no/products/ez_components"
37 LICENSE="BSD"

  ViewVC Help
Powered by ViewVC 1.1.20