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

Contents of /eclass/php-ezc.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Tue Dec 27 17:55:12 2011 UTC (2 years, 9 months ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Update copyright years in headers

1 fauli 1.7 # Copyright 1999-2011 Gentoo Foundation
2 sebastian 1.1 # Distributed under the terms of the GNU General Public License v2
3 fauli 1.7 # $Header: /var/cvsroot/gentoo-x86/eclass/php-ezc.eclass,v 1.6 2011/12/14 23:10:51 mabi Exp $
4 jokey 1.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 sebastian 1.1
13     inherit php-pear-r1
14    
15 chtekk 1.2 EZC_PKG_NAME="${PN/ezc-/}"
16 sebastian 1.1
17     fix_EZC_PV() {
18 chtekk 1.2 tmp="${PV}"
19     tmp="${tmp/_/}"
20     tmp="${tmp/rc/RC}"
21     tmp="${tmp/beta/b}"
22     EZC_PV="${tmp}"
23 sebastian 1.1 }
24    
25 jokey 1.4 # @ECLASS-VARIABLE: EZC_PV
26     # @DESCRIPTION:
27 jokey 1.5 # Set in ebuild before inherit if the eclass ${PV} mangling of beta/rc
28     # versions breaks SRC_URI.
29 jokey 1.3 [[ -z "${EZC_PV}" ]] && fix_EZC_PV
30    
31 chtekk 1.2 EZC_PN="${EZC_PKG_NAME}-${EZC_PV}"
32 sebastian 1.1
33     S="${WORKDIR}/${EZC_PN}"
34    
35 chtekk 1.2 DEPEND=">=dev-lang/php-5.1.2
36 sebastian 1.1 >=dev-php/PEAR-PEAR-1.4.6"
37    
38 jokey 1.5 # @ECLASS-VARIABLE: EZC_BASE_MIN
39     # @DESCRIPTION:
40 mabi 1.6 # Minimal dev-php/ezc-Base version required for given eZ component version.
41 jokey 1.5 # Set in ebuild before inherit.
42     [[ -z "${EZC_BASE_MIN}" ]] && EZC_BASE_MIN="1.0"
43    
44     if [[ "${PN}" != "ezc-Base" ]] ; then
45 mabi 1.6 RDEPEND="${DEPEND} >=dev-php/ezc-Base-${EZC_BASE_MIN}"
46 jokey 1.5 else
47     RDEPEND="${DEPEND}"
48     fi
49 sebastian 1.1
50     SRC_URI="http://components.ez.no/get/${EZC_PN}.tgz"
51     HOMEPAGE="http://ez.no/products/ez_components"
52     LICENSE="BSD"

  ViewVC Help
Powered by ViewVC 1.1.20