/[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.17 Revision 1.18
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.17 2007/09/01 15:58:17 jokey Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.18 2007/10/22 22:55:04 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
15# Note that this eclass doesn't handle dependencies of PEAR packages 15# Note that this eclass doesn't handle dependencies of PEAR packages
16# on purpose; please use (R)DEPEND to define them correctly! 16# on purpose; please use (R)DEPEND to define them correctly!
17 17
18EXPORT_FUNCTIONS src_install 18EXPORT_FUNCTIONS src_install
19 19
20DEPEND="dev-lang/php >=dev-php/PEAR-PEAR-1.4.6" 20DEPEND="dev-lang/php >=dev-php/PEAR-PEAR-1.4.8"
21RDEPEND="${DEPEND}" 21RDEPEND="${DEPEND}"
22 22
23# @ECLASS-VARIABLE: PHP_PEAR_PKG_NAME 23# @ECLASS-VARIABLE: PHP_PEAR_PKG_NAME
24# @DESCRIPTION: 24# @DESCRIPTION:
25# Set this if the the PEAR package name differs from ${PN/PEAR-/} 25# Set this if the the PEAR package name differs from ${PN/PEAR-/}
68 esac 68 esac
69 69
70 cd "${S}" 70 cd "${S}"
71 mv -f "${WORKDIR}/package.xml" "${S}" 71 mv -f "${WORKDIR}/package.xml" "${S}"
72 72
73 if has_version '>=dev-php/PEAR-PEAR-1.4.8' ; then 73 if [[ -f "${S}"/package2.xml ]] ; then
74 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package2.xml" > /dev/null || die "Unable to install PEAR package"
75 else
74 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package.xml" > /dev/null || die "Unable to install PEAR package" 76 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package.xml" > /dev/null || die "Unable to install PEAR package"
75 else
76 pear -d php_bin="${PHP_BIN}" install --nodeps --packagingroot="${D}" "${S}/package.xml" > /dev/null || die "Unable to install PEAR package"
77 fi 77 fi
78 78
79 rm -Rf "${D}/usr/share/php/.channels" \ 79 rm -Rf "${D}/usr/share/php/.channels" \
80 "${D}/usr/share/php/.depdblock" \ 80 "${D}/usr/share/php/.depdblock" \
81 "${D}/usr/share/php/.depdb" \ 81 "${D}/usr/share/php/.depdb" \

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

  ViewVC Help
Powered by ViewVC 1.1.20