/[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.31 Revision 1.32
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2013 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.31 2013/11/25 23:11:16 mabi Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.32 2013/11/25 23:22:57 mabi Exp $
4 4
5# @ECLASS: php-pear-r1.eclass 5# @ECLASS: php-pear-r1.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Gentoo PHP Team <php-bugs@gentoo.org> 7# Gentoo PHP Team <php-bugs@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
15# Note that this eclass doesn't handle dependencies of PEAR packages 15# Note that this eclass doesn't handle dependencies of PEAR packages
16# on purpose; please use (R)DEPEND to define them correctly! 16# on purpose; please use (R)DEPEND to define them correctly!
17 17
18inherit multilib 18inherit multilib
19 19
20EXPORT_FUNCTIONS src_install 20EXPORT_FUNCTIONS pkg_setup src_install
21 21
22DEPEND="dev-lang/php 22DEPEND="dev-lang/php
23 >=dev-php/pear-1.8.1" 23 >=dev-php/pear-1.8.1"
24RDEPEND="${DEPEND}" 24RDEPEND="${DEPEND}"
25 25
43# Set in ebuild if the eclass ${PV} mangling breaks SRC_URI for alpha/beta/rc versions 43# Set in ebuild if the eclass ${PV} mangling breaks SRC_URI for alpha/beta/rc versions
44[[ -z "${PEAR_PV}" ]] && fix_PEAR_PV 44[[ -z "${PEAR_PV}" ]] && fix_PEAR_PV
45 45
46PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}" 46PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}"
47: ${PHP_PEAR_URI:=pear.php.net} 47: ${PHP_PEAR_URI:=pear.php.net}
48: ${PHP_PEAR_CHANNEL:=${FILESDIR}/channel.xml}
48 49
49[[ -z "${SRC_URI}" ]] && SRC_URI="http://${PHP_PEAR_URI}/get/${PEAR_PN}.tgz" 50[[ -z "${SRC_URI}" ]] && SRC_URI="http://${PHP_PEAR_URI}/get/${PEAR_PN}.tgz"
50[[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://${PHP_PEAR_URI}/${PHP_PEAR_PKG_NAME}" 51[[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://${PHP_PEAR_URI}/${PHP_PEAR_PKG_NAME}"
51 52
52S="${WORKDIR}/${PEAR_PN}" 53S="${WORKDIR}/${PEAR_PN}"
53 54
54# @FUNCTION: php-pear-lib-r1_pkg_setup 55# @FUNCTION: php-pear-lib-r1_pkg_setup
55# @DESCRIPTION: 56# @DESCRIPTION:
56# Adds required PEAR channel if necessary 57# Adds required PEAR channel if necessary
57php-pear-r1_pkg_setup() { 58php-pear-r1_pkg_setup() {
58 if [[ -n $PHP_PEAR_CHANNEL ]] ; then
59 if [[ -f $PHP_PEAR_CHANNEL ]]; then 59 if [[ -f $PHP_PEAR_CHANNEL ]]; then
60 pear channel-add $PHP_PEAR_CHANNEL || einfo "Ignore any errors about existing channels" 60 pear channel-add $PHP_PEAR_CHANNEL || einfo "Ignore any errors about existing channels"
61 else
62 die "PHP_PEAR_CHANNEL must point to a (local) channel file"
63 fi
64 fi 61 fi
65} 62}
66 63
67# @FUNCTION: php-pear-r1_src_install 64# @FUNCTION: php-pear-r1_src_install
68# @DESCRIPTION: 65# @DESCRIPTION:

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20