| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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.5 2005/09/13 16:07:50 sebastian Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.6 2005/10/31 14:08:42 chtekk Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Tal Peer <coredumb@gentoo.org> |
5 | # Author: Tal Peer <coredumb@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # The php-pear eclass provides means for easy installation of PEAR |
7 | # The php-pear eclass provides means for easy installation of PEAR |
| 8 | # packages, see http://pear.php.net |
8 | # packages, see http://pear.php.net |
| … | |
… | |
| 36 | [ -z "${SRC_URI}" ] && SRC_URI="http://pear.php.net/get/${PEAR_PN}.tgz" |
36 | [ -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}" |
37 | [ -z "${HOMEPAGE}" ] && HOMEPAGE="http://pear.php.net/${PHP_PEAR_PKG_NAME}" |
| 38 | S="${WORKDIR}/${PEAR_PN}" |
38 | S="${WORKDIR}/${PEAR_PN}" |
| 39 | |
39 | |
| 40 | php-pear-r1_src_install() { |
40 | php-pear-r1_src_install() { |
| 41 | # SNMP is nuts sometimes |
41 | # SNMP support |
| 42 | addpredict /usr/share/snmp/mibs/.index |
42 | addpredict /usr/share/snmp/mibs/.index |
| 43 | addpredict /var/lib/net-snmp/ |
43 | addpredict /var/lib/net-snmp/ |
| 44 | |
44 | |
| 45 | cd ${S} |
45 | cd "${S}" |
| 46 | mv ${WORKDIR}/package.xml ${S} |
46 | mv "${WORKDIR}/package.xml" "${S}" |
| 47 | pear install --nodeps --installroot=${D} ${S}/package.xml || die "Unable to install PEAR package" |
47 | pear install --nodeps --installroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package" |
| 48 | rm ${D}/usr/share/php/.filemap |
48 | rm -rf "${D}/usr/share/php/.filemap" \ |
| 49 | rm ${D}/usr/share/php/.lock |
49 | "${D}/usr/share/php/.lock" |
| 50 | } |
50 | } |