dev-libs/libical: Fix USE vala
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 21 Sep 2019 14:19:32 +0000 (16:19 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 21 Sep 2019 14:24:08 +0000 (16:24 +0200)
Reported-by: Marek Bartosiewicz <marek.bartosiewicz@gmail.com>
Thanks-to: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
Closes: https://bugs.gentoo.org/694922
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-libs/libical/libical-3.0.6.ebuild

index 04ea480f906a8fd26619be5af7184fb7d1bc8edb..91bc8ab7825825ad29c63f0ab76ed52de2141c22 100644 (file)
@@ -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
 }