/[gentoo-x86]/eclass/php-pear-lib-r1.eclass
Gentoo

Diff of /eclass/php-pear-lib-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.21 Revision 1.22
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-lib-r1.eclass,v 1.21 2011/03/14 08:00:10 olemarkus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-pear-lib-r1.eclass,v 1.22 2011/04/16 12:19:00 olemarkus Exp $
4# 4#
5# Author: Luca Longinotti <chtekk@gentoo.org> 5# Author: Luca Longinotti <chtekk@gentoo.org>
6 6
7# @ECLASS: php-pear-lib-r1.eclass 7# @ECLASS: php-pear-lib-r1.eclass
8# @MAINTAINER: 8# @MAINTAINER:
36# @FUNCTION: php-pear-lib-r1_pkg_setup 36# @FUNCTION: php-pear-lib-r1_pkg_setup
37# @DESCRIPTION 37# @DESCRIPTION
38# Adds required PEAR channel if necessary 38# Adds required PEAR channel if necessary
39php-pear-lib-r1_pkg_setup() { 39php-pear-lib-r1_pkg_setup() {
40 if [[ -n $PHP_PEAR_CHANNEL ]] ; then 40 if [[ -n $PHP_PEAR_CHANNEL ]] ; then
41 if [[ -f $PHP_PEAR_CHANNEL ]]; then
42 pear channel-add $PHP_PEAR_CHANNEL
43 else
41 pear channel-discover $PHP_PEAR_CHANNEL 44 pear channel-discover $PHP_PEAR_CHANNEL
42 pear channel-update $PHP_PEAR_CHANNEL 45 pear channel-update $PHP_PEAR_CHANNEL
46 fi
43 fi 47 fi
44} 48}
45 49
46 50
47# @FUNCTION: php-pear-lib-r1_src_install 51# @FUNCTION: php-pear-lib-r1_src_install

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

  ViewVC Help
Powered by ViewVC 1.1.20