aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libxml2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/libxml2.rb')
-rw-r--r--Library/Formula/libxml2.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/libxml2.rb b/Library/Formula/libxml2.rb
index aad2c2234..e3f429953 100644
--- a/Library/Formula/libxml2.rb
+++ b/Library/Formula/libxml2.rb
@@ -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