Commit 0098e5d
doit 0.20 is a build dependency
Changed files (1)
Diff
@@ -31,7 +31,19 @@ def write_config (): f.write(var_line % (name, value)) f.write("}")-+ +def test_doit_version (a, b, c):+ print ("Checking for doit version >= %s.%s.%s" % (a, b, c))+ process = subprocess.Popen ("doit --version", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)+ v = process.stdout.readline()+ process.communicate()[0]+ if not process.returncode == 0:+ print (FAIL + "Can't find doit" + ENDC)+ exit (1) + print ("Found version " + v)+ version = [int(n.replace ("dev", "")) for n in v.split (".")]+ return [a,b,c] <= version+ def test_vala_version (a, b, c): print ("Checking for vala version >= %s.%s.%s" % (a, b, c)) process = subprocess.Popen ("valac --version", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)@@ -43,7 +55,7 @@ def test_vala_version (a, b, c): exit (1) print ("Found version " + v) valac_version = [int(n) for n in v.split (".")]- return [a,b,c] < valac_version+ return [a,b,c] <= valac_version def configure ():@@ -51,6 +63,10 @@ def configure (): print (FAIL + "Can't find a suitable vala compiler." + ENDC) exit (1) + if not test_doit_version (0, 20, 0): + print (FAIL + "Doit is too old" + ENDC)+ exit (1)+ libs = [ 'cairo', 'gdk-pixbuf-2.0', 'gio-2.0', 'glib-2.0', 'gtk+-2.0', 'libxml-2.0', 'webkit-1.0', 'libsoup-2.4' ] for lib in libs: