/[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.20 Revision 1.21
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.20 2008/02/11 20:47:35 armin76 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.21 2008/03/19 09:27:28 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
72 72
73 cd "${S}" 73 cd "${S}"
74 74
75 if [[ -f "${WORKDIR}"/package2.xml ]] ; then 75 if [[ -f "${WORKDIR}"/package2.xml ]] ; then
76 mv -f "${WORKDIR}/package2.xml" "${S}" 76 mv -f "${WORKDIR}/package2.xml" "${S}"
77 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then
78 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
79 pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \
80 install --force --loose --nodeps --offline --packagingroot="${D}" \
81 "${S}/package2.xml" || die "Unable to install PEAR package"
82 else
77 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ 83 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \
78 "${S}/package2.xml" || die "Unable to install PEAR package" 84 "${S}/package2.xml" || die "Unable to install PEAR package"
85 fi
79 else 86 else
80 mv -f "${WORKDIR}/package.xml" "${S}" 87 mv -f "${WORKDIR}/package.xml" "${S}"
88 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then
89 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
90 pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \
91 install --force --loose --nodeps --offline --packagingroot="${D}" \
92 "${S}/package.xml" || die "Unable to install PEAR package"
93 else
81 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ 94 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \
82 "${S}/package.xml" || die "Unable to install PEAR package" 95 "${S}/package.xml" || die "Unable to install PEAR package"
96 fi
83 fi 97 fi
84 98
85 rm -Rf "${D}/usr/share/php/.channels" \ 99 rm -Rf "${D}/usr/share/php/.channels" \
86 "${D}/usr/share/php/.depdblock" \ 100 "${D}/usr/share/php/.depdblock" \
87 "${D}/usr/share/php/.depdb" \ 101 "${D}/usr/share/php/.depdb" \

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20