/[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.9 Revision 1.10
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.9 2006/01/09 15:48:03 sebastian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.10 2006/01/23 14:36:18 sebastian Exp $
4# 4#
5# Author: Tal Peer <coredumb@gentoo.org> 5# Author: Tal Peer <coredumb@gentoo.org>
6# Maintained by the PHP Herd <php-bugs@gentoo.org> 6# Maintained by the PHP Herd <php-bugs@gentoo.org>
7# 7#
8# The php-pear-r1 eclass provides means for an easy installation of PEAR 8# The php-pear-r1 eclass provides means for an easy installation of PEAR
56 *) die "I don't know which version of PHP packages in ${CATEGORY} require" 56 *) die "I don't know which version of PHP packages in ${CATEGORY} require"
57 esac 57 esac
58 58
59 cd "${S}" 59 cd "${S}"
60 mv "${WORKDIR}/package.xml" "${S}" 60 mv "${WORKDIR}/package.xml" "${S}"
61 if has_version '=dev-php/PEAR-PEAR-1.3*' ; then
61 pear -d php_bin="${PHP_BIN}" install --nodeps --installroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package" 62 pear -d php_bin="${PHP_BIN}" install --nodeps --installroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package"
63 else
64 pear -d php_bin="${PHP_BIN}" install --nodeps --packagingroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package"
65 fi
66 rm -rf "${D}/usr/share/php/.channels" \
67 "${D}/usr/share/php/.depdblock" \
68 "${D}/usr/share/php/.depdb" \
62 rm -rf "${D}/usr/share/php/.filemap" \ 69 "${D}/usr/share/php/.filemap" \
63 "${D}/usr/share/php/.lock" \ 70 "${D}/usr/share/php/.lock" \
64 "${D}/usr/share/php/.registry" 71 "${D}/usr/share/php/.registry"
65} 72}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20