/[gentoo-x86]/eclass/php-ext-source-r2.eclass
Gentoo

Diff of /eclass/php-ext-source-r2.eclass

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

Revision 1.32 Revision 1.33
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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-ext-source-r2.eclass,v 1.32 2013/04/14 06:54:43 olemarkus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.33 2013/06/01 18:51:57 robbat2 Exp $
4 4
5# @ECLASS: php-ext-source-r2.eclass 5# @ECLASS: php-ext-source-r2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Gentoo PHP team <php-bugs@gentoo.org> 7# Gentoo PHP team <php-bugs@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
67# the source package. This is useful for packages that bundle the PHP extension. 67# the source package. This is useful for packages that bundle the PHP extension.
68# Defaults to ${S} 68# Defaults to ${S}
69[[ -z "${PHP_EXT_S}" ]] && PHP_EXT_S="${S}" 69[[ -z "${PHP_EXT_S}" ]] && PHP_EXT_S="${S}"
70 70
71#Make sure at least one target is installed. 71#Make sure at least one target is installed.
72REQUIRED_USE="|| ( " 72REQUIRED_USE="${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( }|| ( "
73for target in ${USE_PHP}; do 73for target in ${USE_PHP}; do
74 IUSE="${IUSE} php_targets_${target}" 74 IUSE="${IUSE} php_targets_${target}"
75 target=${target/+} 75 target=${target/+}
76 REQUIRED_USE+="php_targets_${target} " 76 REQUIRED_USE+="php_targets_${target} "
77 slot=${target/php} 77 slot=${target/php}
78 slot=${slot/-/.} 78 slot=${slot/-/.}
79 PHPDEPEND="${PHPDEPEND} 79 PHPDEPEND="${PHPDEPEND}
80 php_targets_${target}? ( dev-lang/php:${slot} )" 80 php_targets_${target}? ( dev-lang/php:${slot} )"
81done 81done
82REQUIRED_USE+=")" 82REQUIRED_USE+=") ${PHP_EXT_OPTIONAL_USE:+ )}"
83 83
84RDEPEND="${RDEPEND} 84RDEPEND="${RDEPEND}
85 ${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( } 85 ${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( }
86 ${PHPDEPEND} 86 ${PHPDEPEND}
87 ${PHP_EXT_OPTIONAL_USE:+ )}" 87 ${PHP_EXT_OPTIONAL_USE:+ )}"

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.20