diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-28 08:17:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-28 08:17:07 +0100 |
commit | 5a165c60b9b8c4847067cb83b4be7da785d01f93 (patch) | |
tree | 166b01591366d3479084ea774c888bc84aaa8d4f /eclass | |
parent | a5b65c81168c90928784a1e92cda84ed5d6b9eb3 (diff) |
gentoo resync : 28.09.2019
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/Manifest.gz | bin | 37489 -> 37480 bytes | |||
-rw-r--r-- | eclass/ant-tasks.eclass | 12 | ||||
-rw-r--r-- | eclass/flag-o-matic.eclass | 6 |
3 files changed, 13 insertions, 5 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz Binary files differindex e926bc25f3b3..16780d2deda3 100644 --- a/eclass/Manifest.gz +++ b/eclass/Manifest.gz diff --git a/eclass/ant-tasks.eclass b/eclass/ant-tasks.eclass index 309df084d156..04c6fb5b7d67 100644 --- a/eclass/ant-tasks.eclass +++ b/eclass/ant-tasks.eclass @@ -54,7 +54,9 @@ ANT_TASK_NAME="${PN#ant-}" # @DESCRIPTION: # Specifies JAVA_PKG_NAME (PN{-SLOT} used with java-pkg_jar-from) of the package # that this one depends on. Defaults to the name of ant task, ebuild can -# override it before inheriting this eclass. +# override it before inheriting this eclass. In case there is more than one +# dependency, the variable can be specified as bash array with multiple strings, +# one for each dependency. ANT_TASK_DEPNAME=${ANT_TASK_DEPNAME-${ANT_TASK_NAME}} # @ECLASS-VARIABLE: ANT_TASK_DISABLE_VM_DEPS @@ -105,7 +107,7 @@ S="${WORKDIR}/${MY_P}" # base: performs the unpack, build.xml replacement and symlinks ant.jar from # ant-core # -# jar-dep: symlinks the jar file(s) from dependency package +# jar-dep: symlinks the jar file(s) from dependency package(s) ant-tasks_src_unpack() { [[ -z "${1}" ]] && ant-tasks_src_unpack all @@ -129,9 +131,11 @@ ant-tasks_src_unpack() { # ant.jar to build against java-pkg_jar-from --build-only ant-core ant.jar;; jar-dep) - # get jar from the dependency package + # get jar from the dependency package(s) if [[ -n "${ANT_TASK_DEPNAME}" ]]; then - java-pkg_jar-from ${ANT_TASK_DEPNAME} + for depname in "${ANT_TASK_DEPNAME[@]}"; do + java-pkg_jar-from ${depname} + done fi;; all) ant-tasks_src_unpack base jar-dep;; diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 3b32bd9d6319..89b259cc222f 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -435,8 +435,12 @@ test-flag-PROG() { [[ -z ${comp} || -z $1 ]] && return 1 + # verify selected compiler exists before using it + comp=$(tc-get${comp}) + type -p ${comp} >/dev/null || return 1 + local cmdline=( - $(tc-get${comp}) + ${comp} # Clang will warn about unknown gcc flags but exit 0. # Need -Werror to force it to exit non-zero. -Werror |