/[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.23 Revision 1.24
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.23 2010/02/16 04:14:13 beandog Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-r1.eclass,v 1.24 2010/03/31 20:37:56 mabi 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
76 76
77 if [[ -f "${WORKDIR}"/package2.xml ]] ; then 77 if [[ -f "${WORKDIR}"/package2.xml ]] ; then
78 mv -f "${WORKDIR}/package2.xml" "${S}" 78 mv -f "${WORKDIR}/package2.xml" "${S}"
79 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then 79 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then
80 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs" 80 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
81 pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \ 81 peardev -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \
82 install --force --loose --nodeps --offline --packagingroot="${D}" \ 82 install --force --loose --nodeps --offline --packagingroot="${D}" \
83 "${S}/package2.xml" || die "Unable to install PEAR package" 83 "${S}/package2.xml" || die "Unable to install PEAR package"
84 else 84 else
85 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ 85 peardev -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \
86 "${S}/package2.xml" || die "Unable to install PEAR package" 86 "${S}/package2.xml" || die "Unable to install PEAR package"
87 fi 87 fi
88 else 88 else
89 mv -f "${WORKDIR}/package.xml" "${S}" 89 mv -f "${WORKDIR}/package.xml" "${S}"
90 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then 90 if has_version '>=dev-php/PEAR-PEAR-1.7.0' ; then
91 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs" 91 local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
92 pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \ 92 peardev -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" \
93 install --force --loose --nodeps --offline --packagingroot="${D}" \ 93 install --force --loose --nodeps --offline --packagingroot="${D}" \
94 "${S}/package.xml" || die "Unable to install PEAR package" 94 "${S}/package.xml" || die "Unable to install PEAR package"
95 else 95 else
96 pear -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \ 96 peardev -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${D}" \
97 "${S}/package.xml" || die "Unable to install PEAR package" 97 "${S}/package.xml" || die "Unable to install PEAR package"
98 fi 98 fi
99 fi 99 fi
100 100
101 rm -Rf "${D}/usr/share/php/.channels" \ 101 rm -Rf "${D}/usr/share/php/.channels" \

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20