[kupfer] wscript: Check for build-dep 'rst2man' even with --no-runtime-deps



commit 6fa5ddbacc5941b75f505f2a9e741d319814de31
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Jul 9 18:47:49 2010 +0200

    wscript: Check for build-dep 'rst2man' even with --no-runtime-deps

 wscript |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/wscript b/wscript
index 85160f4..8f10839 100644
--- a/wscript
+++ b/wscript
@@ -132,6 +132,15 @@ def configure(conf):
 	Utils.pprint("NORMAL",
 			"Installing python modules into: %(PYTHONDIR)s" % conf.env)
 
+	opt_build_programs = {
+			"rst2man": "Generate and install man page",
+		}
+	for prog in opt_build_programs:
+		prog_path = conf.find_program(prog, var=prog.replace("-", "_").upper())
+		if not prog_path:
+			Utils.pprint("YELLOW",
+			             "Optional, allows: %s" % opt_build_programs[prog])
+
 	if not Options.options.check_deps:
 		return
 
@@ -148,7 +157,6 @@ def configure(conf):
 
 	opt_programs = {
 			"dbus-send": "Focus kupfer from the command line",
-			"rst2man": "Generate and install man page",
 		}
 	opt_pymodules = {
 			"wnck": "Identify and focus running applications",



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