/[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.30 Revision 1.31
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.30 2012/08/22 15:06:20 olemarkus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.31 2013/11/25 23:11:16 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:
42# @DESCRIPTION: 42# @DESCRIPTION:
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 48
48[[ -z "${SRC_URI}" ]] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz" 49[[ -z "${SRC_URI}" ]] && SRC_URI="http://${PHP_PEAR_URI}/get/${PEAR_PN}.tgz"
49[[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://pear.php.net/${PHP_PEAR_PKG_NAME}" 50[[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://${PHP_PEAR_URI}/${PHP_PEAR_PKG_NAME}"
50 51
51S="${WORKDIR}/${PEAR_PN}" 52S="${WORKDIR}/${PEAR_PN}"
53
54# @FUNCTION: php-pear-lib-r1_pkg_setup
55# @DESCRIPTION:
56# Adds required PEAR channel if necessary
57php-pear-r1_pkg_setup() {
58 if [[ -n $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"
61 else
62 die "PHP_PEAR_CHANNEL must point to a (local) channel file"
63 fi
64 fi
65}
52 66
53# @FUNCTION: php-pear-r1_src_install 67# @FUNCTION: php-pear-r1_src_install
54# @DESCRIPTION: 68# @DESCRIPTION:
55# Takes care of standard install for PEAR packages. 69# Takes care of standard install for PEAR packages.
56php-pear-r1_src_install() { 70php-pear-r1_src_install() {

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

  ViewVC Help
Powered by ViewVC 1.1.20