/[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.18 Revision 1.19
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.18 2007/10/22 22:55:04 jokey Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.19 2007/11/08 16:07:22 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 7
8# @ECLASS: php-pear-r1.eclass 8# @ECLASS: php-pear-r1.eclass
29fix_PEAR_PV() { 29fix_PEAR_PV() {
30 tmp="${PV}" 30 tmp="${PV}"
31 tmp="${tmp/_/}" 31 tmp="${tmp/_/}"
32 tmp="${tmp/rc/RC}" 32 tmp="${tmp/rc/RC}"
33 tmp="${tmp/beta/b}" 33 tmp="${tmp/beta/b}"
34 tmp="${tmp/alpha/a}"
34 PEAR_PV="${tmp}" 35 PEAR_PV="${tmp}"
35} 36}
36 37
37# @ECLASS-VARIABLE: PEAR_PV 38# @ECLASS-VARIABLE: PEAR_PV
38# @DESCRIPTION: 39# @DESCRIPTION:
39# Set in ebuild if the eclass ${PV} mangling breaks SRC_URI for beta/rc versions 40# Set in ebuild if the eclass ${PV} mangling breaks SRC_URI for alpha/beta/rc versions
40[[ -z "${PEAR_PV}" ]] && fix_PEAR_PV 41[[ -z "${PEAR_PV}" ]] && fix_PEAR_PV
41 42
42PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}" 43PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}"
43 44
44[[ -z "${SRC_URI}" ]] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz" 45[[ -z "${SRC_URI}" ]] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz"

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20