summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2014-11-02 15:08:55 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2014-11-02 15:08:55 +0100
commitf793496cbf2ce2827019e775c75c99397945e718 (patch)
tree509d7725bff4b3da78dfd3255f5184244633f26a /eclass
parentgnome-extra/nautilus-tracker-tags: fix build (diff)
downloadgnome-f793496cbf2ce2827019e775c75c99397945e718.tar.gz
gnome-f793496cbf2ce2827019e775c75c99397945e718.tar.bz2
gnome-f793496cbf2ce2827019e775c75c99397945e718.zip
eclass/vala.eclass: use on-if-missing USE flag notation
As discussed on the mail alias.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vala.eclass16
1 files changed, 4 insertions, 12 deletions
diff --git a/eclass/vala.eclass b/eclass/vala.eclass
index 38feda2b..c2c6282f 100644
--- a/eclass/vala.eclass
+++ b/eclass/vala.eclass
@@ -53,15 +53,11 @@ vala_api_versions() {
# VALA_MIN_API_VERSION
vala_depend() {
local u v versions=$(vala_api_versions)
- [[ ${VALA_USE_DEPEND} ]] && u="[${VALA_USE_DEPEND}]"
+ [[ ${VALA_USE_DEPEND} ]] && u="[${VALA_USE_DEPEND}(+)]"
echo -n "|| ("
for v in ${versions}; do
- if [[ "$v" = "0.26" ]]; then
- echo -n " dev-lang/vala:${v}"
- else
- echo -n " dev-lang/vala:${v}${u}"
- fi
+ echo -n " dev-lang/vala:${v}${u}"
done
echo " )"
}
@@ -72,13 +68,9 @@ vala_depend() {
# VALA_MAX_API_VERSION, VALA_MIN_API_VERSION, and VALA_USE_DEPEND.
vala_best_api_version() {
local u v
- [[ ${VALA_USE_DEPEND} ]] && u="[${VALA_USE_DEPEND}]"
+ [[ ${VALA_USE_DEPEND} ]] && u="[${VALA_USE_DEPEND}(+)]"
for v in $(vala_api_versions); do
- if [[ "$v" = "0.26" ]]; then
- has_version "dev-lang/vala:${v}" && echo "${v}" && return
- else
- has_version "dev-lang/vala:${v}${u}" && echo "${v}" && return
- fi
+ has_version "dev-lang/vala:${v}${u}" && echo "${v}" && return
done
}