From 021abd289f976705cb35213ddf6542f0733bfde0 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Mon, 11 Oct 2010 12:46:11 +0200 Subject: [PATCH] git: disable python support if python is not installed --- develop/git/git.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/develop/git/git.conf b/develop/git/git.conf index 85aa1db48..f71bffbcd 100644 --- a/develop/git/git.conf +++ b/develop/git/git.conf @@ -12,10 +12,12 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- -# disable git-gui if there is no tcl/tk support -if ! pkginstalled tk; then - var_append extraconfopt ' ' "--without-tcltk" -fi +for x in tk:tcltk python; do + if ! pkginstalled ${x%:*}; then + echo_warning "disabling ${x#*:} support" + var_append extraconfopt ' ' "--without-${x#*:}" + fi +done var_append makeopt ' ' 'gitweb'