Clone in a terminal:
Commit 0098e5d
Johan Mattsson - 2012-12-24T20:52:06+00:00
0098e5d22295b835b8ee40be111ab6934efc541bjohan.mattsson.m@gmail.com

doit 0.20 is a build dependency

Changed files (1)

Diff

diff --git a/configure b/configureindex da07349..b1aa1ed 100755--- a/configure+++ b/configure@@ -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:

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112