commit:     6fed4d7e6a69abd8319e1d5a4090cc3f02a680f7
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 21 14:19:32 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Sep 21 14:24:08 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fed4d7e

dev-libs/libical: Fix USE vala

Reported-by: Marek Bartosiewicz <marek.bartosiewicz <AT> gmail.com>
Thanks-to: Arfrever Frehtes Taifersar Arahesis <arfrever.fta <AT> gmail.com>
Closes: https://bugs.gentoo.org/694922
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-libs/libical/libical-3.0.6.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-libs/libical/libical-3.0.6.ebuild 
b/dev-libs/libical/libical-3.0.6.ebuild
index 04ea480f906..91bc8ab7825 100644
--- a/dev-libs/libical/libical-3.0.6.ebuild
+++ b/dev-libs/libical/libical-3.0.6.ebuild
@@ -4,6 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{5,6,7} )
+VALA_USE_DEPEND="vapigen"
 inherit cmake-utils python-any-r1 vala
 
 DESCRIPTION="An implementation of basic iCAL protocols"
@@ -21,6 +22,7 @@ BDEPEND="
        virtual/pkgconfig
        doc? ( app-doc/doxygen )
        test? ( ${PYTHON_DEPS} )
+       vala? ( $(vala_depend) )
 "
 DEPEND="
        dev-libs/icu:=
@@ -30,7 +32,6 @@ DEPEND="
                dev-libs/gobject-introspection:=
                dev-libs/libxml2:2
        )
-       vala? ( $(vala_depend) )
 "
 RDEPEND="${DEPEND}
        sys-libs/timezone-data
@@ -66,6 +67,12 @@ src_configure() {
                -DLIBICAL_BUILD_TESTING=$(usex test)
                -DICAL_GLIB_VAPI=$(usex vala)
        )
+       if use vala; then
+               mycmakeargs+=(
+                       -DVALAC="${VALAC}"
+                       -DVAPIGEN="${VAPIGEN}"
+               )
+       fi
        cmake-utils_src_configure
 }
 

Reply via email to