[gnome-builder] Update files for Vala 0.32.



commit bca94af6185db3b698b5bdcfbe05647138926262
Author: Yannick Inizan <inizan yannick gmail com>
Date:   Wed Dec 9 04:40:39 2015 +0100

    Update files for Vala 0.32.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759215

 plugins/vala-pack/Makefile.am  |    2 +-
 plugins/vala-pack/configure.ac |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/plugins/vala-pack/Makefile.am b/plugins/vala-pack/Makefile.am
index 7b9f490..2d26850 100644
--- a/plugins/vala-pack/Makefile.am
+++ b/plugins/vala-pack/Makefile.am
@@ -29,7 +29,7 @@ libvala_pack_plugin_la_VALAFLAGS = \
        --pkg gtksourceview-3.0 \
        --pkg libide-1.0 \
        --pkg libpeas-1.0 \
-       --pkg libvala-0.30 \
+       --pkg libvala-$(VALA_VERSION) \
        --pkg posix \
        $(NULL)
 
diff --git a/plugins/vala-pack/configure.ac b/plugins/vala-pack/configure.ac
index 5878f1a..16ac4b6 100644
--- a/plugins/vala-pack/configure.ac
+++ b/plugins/vala-pack/configure.ac
@@ -1,5 +1,11 @@
 VAPIGEN_CHECK
-PKG_CHECK_MODULES(VALA, [libvala-0.30 >= 0.29.3],[have_libvala=yes],[have_libvala=no])
+PKG_CHECK_MODULES(VALA, [libvala-0.32],[have_libvala=yes],[have_libvala=no])
+VALA_VERSION=0.32
+AS_IF([test x$have_libvala = xno],[
+       PKG_CHECK_MODULES(VALA, [libvala-0.30 >= 0.29.3],[have_libvala=yes],[have_libvala=no])
+       VALA_VERSION=0.30
+])
+AC_SUBST(VALA_VERSION)
 
 # --enable-vala-pack-plugin=auto/yes/no
 AC_ARG_ENABLE([vala-pack-plugin],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]