summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2019-01-04 12:39:36 +0100
committerMart Raudsepp <leio@gentoo.org>2019-02-11 19:14:41 +0200
commite7c0dcc20e39f3561caf2dbe601433bf3773cc2f (patch)
tree28878a7294397e544af79f2c1d3c900b01bd44d4 /eclass/vala.eclass
parentvala.eclass: add function to generate supported atoms with USE (diff)
downloadgentoo-e7c0dcc20e39f3561caf2dbe601433bf3773cc2f.tar.gz
gentoo-e7c0dcc20e39f3561caf2dbe601433bf3773cc2f.tar.bz2
gentoo-e7c0dcc20e39f3561caf2dbe601433bf3773cc2f.zip
vala.eclass: export VALADOC when requested
Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org> Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'eclass/vala.eclass')
-rw-r--r--eclass/vala.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/vala.eclass b/eclass/vala.eclass
index 715ce9581244..f47ab2224d43 100644
--- a/eclass/vala.eclass
+++ b/eclass/vala.eclass
@@ -148,6 +148,9 @@ vala_src_prepare() {
valafoo=$(type -P vapigen-${version})
[[ ${valafoo} ]] && export VAPIGEN="${valafoo}"
+ valafoo=$(type -P valadoc-${version})
+ [[ ${valafoo} ]] && has valadoc ${VALA_USE_DEPEND} && export VALADOC="${valafoo}"
+
valafoo="${EPREFIX}/usr/share/vala/Makefile.vapigen"
[[ -e ${valafoo} ]] && export VAPIGEN_MAKEFILE="${valafoo}"