diff options
author | 2007-05-26 23:24:52 +0000 | |
---|---|---|
committer | 2007-05-26 23:24:52 +0000 | |
commit | 161d6e0c9ee5351ef5b9c7a51ab8a94a7cdb7c53 (patch) | |
tree | d4b75ea75c539cf31c89967e91c09db00a3139f1 /eclass | |
parent | Clean out old version (diff) | |
download | historical-161d6e0c9ee5351ef5b9c7a51ab8a94a7cdb7c53.tar.gz historical-161d6e0c9ee5351ef5b9c7a51ab8a94a7cdb7c53.tar.bz2 historical-161d6e0c9ee5351ef5b9c7a51ab8a94a7cdb7c53.zip |
Adding PDEPEND support to ensure-dep function
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-utils-2.eclass | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index fa30fff82a8a..4b1837a41eb6 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -6,7 +6,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.85 2007/05/25 10:27:57 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.86 2007/05/26 23:24:52 ali_bush Exp $ # ----------------------------------------------------------------------------- @@ -2499,16 +2499,21 @@ java-pkg_ensure-dep() { fi fi - if [[ ${limit_to} != build && ! ( ${RDEPEND} =~ "${stripped_pkg}" ) ]]; then - dev_error="The ebuild is attempting to use ${target_pkg}," - dev_error="${dev_error} without specifying --build-only, that is not declared in RDEPEND." - if is-java-strict; then - die "${dev_error}" - elif [[ ${BASH_SUBSHELL} = 0 ]]; then - eerror "${dev_error}" - elog "The package will build without problems, but may fail to run" - elog "if you don't have ${target_pkg} installed, so please report" - elog "this to http://bugs.gentoo.org" + if [[ ${limit_to} != build ]]; then + if [[ ! ( ${RDEPEND} =~ "${stripped_pkg}" ) ]]; then + if [[ ! ( ${PDEPEND} =~ "${stripped_pkg}" ) ]]; then + dev_error="The ebuild is attempting to use ${target_pkg}," + dev_error="${dev_error} without specifying --build-only, that is not declared in RDEPEND" + dev_error="${dev_error} or PDEPEND." + if is-java-strict; then + die "${dev_error}" + elif [[ ${BASH_SUBSHELL} = 0 ]]; then + eerror "${dev_error}" + elog "The package will build without problems, but may fail to run" + elog "if you don't have ${target_pkg} installed, so please report" + elog "this to http://bugs.gentoo.org" + fi + fi fi fi } |