git-1.7: Python is optional

svn path=/nixpkgs/trunk/; revision=20603
This commit is contained in:
Marc Weber 2010-03-13 06:07:44 +00:00
parent 19f4182167
commit b2c15d8c37

View File

@ -3,6 +3,7 @@
, libxslt, tcl, tk, makeWrapper
, svnSupport, subversion, perlLibs
, guiSupport
, pythonSupport ? true
}:
# `git-svn' support requires Subversion and various Perl libraries.
@ -24,7 +25,8 @@ stdenv.mkDerivation rec {
docbook_xsl docbook_xml_dtd_45 libxslt ]
++ stdenv.lib.optionals guiSupport [tcl tk];
makeFlags = "prefix=\${out} PERL_PATH=${perl}/bin/perl SHELL_PATH=${stdenv.shell} PYTHON_PATH=${python}/bin/python";
makeFlags = "prefix=\${out} PERL_PATH=${perl}/bin/perl SHELL_PATH=${stdenv.shell} "
+ (if pythonSupport then "PYTHON_PATH=${python}/bin/python" else "NO_PYTHON=1");
# FIXME: "make check" requires Sparse; the Makefile must be tweaked
# so that `SPARSE_FLAGS' corresponds to the current architecture...