/[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.31 Revision 1.32
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.31 2013/04/08 08:11:29 olemarkus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.32 2013/04/14 06:54:43 olemarkus 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:
24 >=sys-devel/libtool-1.5.18" 24 >=sys-devel/libtool-1.5.18"
25RDEPEND="" 25RDEPEND=""
26 26
27# Because of USE deps, we require at least EAPI 2 27# Because of USE deps, we require at least EAPI 2
28case ${EAPI} in 28case ${EAPI} in
29 2|3|4|5) ;; 29 4|5) ;;
30 *) 30 *)
31 die "php-ext-source-r2 is not compatible with EAPI=${EAPI}" 31 die "php-ext-source-r2 is not compatible with EAPI=${EAPI}"
32esac 32esac
33 33
34# @ECLASS-VARIABLE: PHP_EXT_NAME 34# @ECLASS-VARIABLE: PHP_EXT_NAME
66# The relative location of the temporary build directory for the PHP extension within 66# The relative location of the temporary build directory for the PHP extension within
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. Abuses USE dependencies. 71#Make sure at least one target is installed.
72REQUIRED_USE="|| ( "
72for target in ${USE_PHP}; do 73for target in ${USE_PHP}; do
73 IUSE="${IUSE} php_targets_${target}" 74 IUSE="${IUSE} php_targets_${target}"
74 target=${target/+} 75 target=${target/+}
75 SELFDEPEND="${SELFDEPEND} =${CATEGORY}/${PF}[php_targets_${target}]" 76 REQUIRED_USE+="php_targets_${target} "
76 slot=${target/php} 77 slot=${target/php}
77 slot=${slot/-/.} 78 slot=${slot/-/.}
78 PHPDEPEND="${PHPDEPEND} 79 PHPDEPEND="${PHPDEPEND}
79 php_targets_${target}? ( dev-lang/php:${slot} )" 80 php_targets_${target}? ( dev-lang/php:${slot} )"
80done 81done
82REQUIRED_USE+=")"
81 83
82RDEPEND="${RDEPEND} 84RDEPEND="${RDEPEND}
83 ${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( } 85 ${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( }
84 || ( ${SELFDEPEND} )
85 ${PHPDEPEND} 86 ${PHPDEPEND}
86 ${PHP_EXT_OPTIONAL_USE:+ )}" 87 ${PHP_EXT_OPTIONAL_USE:+ )}"
87 88
88DEPEND="${DEPEND} 89DEPEND="${DEPEND}
89 ${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( } 90 ${PHP_EXT_OPTIONAL_USE}${PHP_EXT_OPTIONAL_USE:+? ( }

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

  ViewVC Help
Powered by ViewVC 1.1.20