[Xfce4-commits] <postler:master> Suggest more clearly how to deal with Vala versions

Christian Dywan noreply at xfce.org
Sat Jul 9 18:46:03 CEST 2011


Updating branch refs/heads/master
         to 2bf1a702f979993d56aa223273ea24ff8f7082a2 (commit)
       from 988a091501bc67b72b31a4b15a744e380e9c3e13 (commit)

commit 2bf1a702f979993d56aa223273ea24ff8f7082a2
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Jul 9 18:44:10 2011 +0200

    Suggest more clearly how to deal with Vala versions

 wscript |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/wscript b/wscript
index 254c3aa..789a57f 100644
--- a/wscript
+++ b/wscript
@@ -75,11 +75,11 @@ def configure (conf):
 
     conf.check_tool ('compiler_cc')
     conf.check_tool ('vala')
-    if conf.env['VALAC_VERSION'][1] < 10:
-        Utils.pprint ('RED', 'valac >= 0.10.0 required')
-        sys.exit (1)
-    elif conf.env['VALAC_VERSION'][1] > 10 and not conf.find_program ('vala-0.14'):
-        Utils.pprint ('RED', 'valac 0.10 or git is required')
+    if conf.env['VALAC_VERSION'][1] < 10 or conf.env['VALAC_VERSION'][1] in (11, 12):
+        Utils.pprint ('RED', 'valac 0.10 or 0.14/ git is required\n' \
+                             'You can choose the version to use like this:\n' \
+                             'VALAC=valac-0.14 ./waf configure\n' \
+                             'VALAC=valac-0.10 ./waf configure --disable-gtk3')
         sys.exit (1)
 
     if option_enabled ('nls'):



More information about the Xfce4-commits mailing list