/[gentoo-x86]/eclass/php-pear-r1.eclass
Gentoo

Diff of /eclass/php-pear-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
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-pear-r1.eclass,v 1.16 2007/08/27 11:15:19 jokey Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.17 2007/09/01 15:58:17 jokey Exp $
4# 4#
5# Author: Tal Peer <coredumb@gentoo.org> 5# Author: Tal Peer <coredumb@gentoo.org>
6# Author: Luca Longinotti <chtekk@gentoo.org> 6# Author: Luca Longinotti <chtekk@gentoo.org>
7# Maintained by the PHP Team <php-bugs@gentoo.org>
8#
9# The php-pear-r1 eclass provides means for an easy installation of PEAR
10# packages, see http://pear.php.net/
11 7
8# @ECLASS: php-pear-r1.eclass
9# @MAINTAINER:
10# Gentoo PHP Team <php-bugs@gentoo.org>
11# @BLURB: Provides means for an easy installation of PEAR packages.
12# @DESCRIPTION:
13# This eclass provides means for an easy installation of PEAR packages.
14# For more information on PEAR, see http://pear.php.net/
12# Note that this eclass doesn't handle PEAR packages' dependencies on 15# Note that this eclass doesn't handle dependencies of PEAR packages
13# purpose, please use (R)DEPEND to define them correctly! 16# on purpose; please use (R)DEPEND to define them correctly!
14 17
15EXPORT_FUNCTIONS src_install 18EXPORT_FUNCTIONS src_install
16 19
17DEPEND="dev-lang/php >=dev-php/PEAR-PEAR-1.4.6" 20DEPEND="dev-lang/php >=dev-php/PEAR-PEAR-1.4.6"
18RDEPEND="${DEPEND}" 21RDEPEND="${DEPEND}"
19 22
20# Set this if the the PEAR package name is different than the one in 23# @ECLASS-VARIABLE: PHP_PEAR_PKG_NAME
24# @DESCRIPTION:
25# Set this if the the PEAR package name differs from ${PN/PEAR-/}
21# Portage (generally shouldn't be the case). 26# (generally shouldn't be the case).
22[[ -z "${PHP_PEAR_PKG_NAME}" ]] && PHP_PEAR_PKG_NAME="${PN/PEAR-/}" 27[[ -z "${PHP_PEAR_PKG_NAME}" ]] && PHP_PEAR_PKG_NAME="${PN/PEAR-/}"
23 28
24fix_PEAR_PV() { 29fix_PEAR_PV() {
25 tmp="${PV}" 30 tmp="${PV}"
26 tmp="${tmp/_/}" 31 tmp="${tmp/_/}"
27 tmp="${tmp/rc/RC}" 32 tmp="${tmp/rc/RC}"
28 tmp="${tmp/beta/b}" 33 tmp="${tmp/beta/b}"
29 PEAR_PV="${tmp}" 34 PEAR_PV="${tmp}"
30} 35}
31 36
32# Set PEAR_PV in ebuilds if the PV mangling for beta/rc versions breaks SRC_URI 37# @ECLASS-VARIABLE: PEAR_PV
38# @DESCRIPTION:
39# Set in ebuild if the eclass ${PV} mangling breaks SRC_URI for beta/rc versions
33[[ -z "${PEAR_PV}" ]] && fix_PEAR_PV 40[[ -z "${PEAR_PV}" ]] && fix_PEAR_PV
34 41
35PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}" 42PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}"
36 43
37[[ -z "${SRC_URI}" ]] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz" 44[[ -z "${SRC_URI}" ]] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz"
38[[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://pear.php.net/${PHP_PEAR_PKG_NAME}" 45[[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://pear.php.net/${PHP_PEAR_PKG_NAME}"
39 46
40S="${WORKDIR}/${PEAR_PN}" 47S="${WORKDIR}/${PEAR_PN}"
41 48
49# @FUNCTION: php-pear-r1_src_install
50# @DESCRIPTION:
51# Takes care of standard install for PEAR packages.
42php-pear-r1_src_install() { 52php-pear-r1_src_install() {
43 # SNMP support 53 # SNMP support
44 addpredict /usr/share/snmp/mibs/.index 54 addpredict /usr/share/snmp/mibs/.index
45 addpredict /var/lib/net-snmp/ 55 addpredict /var/lib/net-snmp/
46 addpredict /session_mm_cli0.sem 56 addpredict /session_mm_cli0.sem

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20