| 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.15 2007/03/22 20:12:56 chtekk Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.16 2007/08/27 11:15:19 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> |
7 | # Maintained by the PHP Team <php-bugs@gentoo.org> |
| 8 | # |
8 | # |
| … | |
… | |
| 27 | tmp="${tmp/rc/RC}" |
27 | tmp="${tmp/rc/RC}" |
| 28 | tmp="${tmp/beta/b}" |
28 | tmp="${tmp/beta/b}" |
| 29 | PEAR_PV="${tmp}" |
29 | PEAR_PV="${tmp}" |
| 30 | } |
30 | } |
| 31 | |
31 | |
| 32 | PEAR_PV="" |
32 | # Set PEAR_PV in ebuilds if the PV mangling for beta/rc versions breaks SRC_URI |
| 33 | fix_PEAR_PV |
33 | [[ -z "${PEAR_PV}" ]] && fix_PEAR_PV |
|
|
34 | |
| 34 | PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}" |
35 | PEAR_PN="${PHP_PEAR_PKG_NAME}-${PEAR_PV}" |
| 35 | |
36 | |
| 36 | [[ -z "${SRC_URI}" ]] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz" |
37 | [[ -z "${SRC_URI}" ]] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz" |
| 37 | [[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://pear.php.net/${PHP_PEAR_PKG_NAME}" |
38 | [[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://pear.php.net/${PHP_PEAR_PKG_NAME}" |
| 38 | |
39 | |