libxml2: allow installation without Python

master
Adam Vandenberg 2013-07-09 22:17:42 -07:00
parent fd72157297
commit 3adc842f1a
1 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class Libxml2 < Formula
depends_on :libtool
else
# 2.9.1 cannot build with Python 2.6: https://github.com/mxcl/homebrew/issues/20249
depends_on PythonInstalled.new("2.7") => :recommended
depends_on PythonInstalled.new("2.7") if build.with? 'python'
end
fails_with :llvm do
@ -58,8 +58,7 @@ class Libxml2 < Formula
rm path if path.exist?
ln_s f, path
}
end
end if build.with? 'python'
end
def caveats