homebrew-core/Formula/libxml2.rb

32 lines
773 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libxml2 < Formula
2010-04-26 16:52:46 +00:00
url 'ftp://xmlsoft.org/libxml2/libxml2-2.7.7.tar.gz'
homepage 'http://xmlsoft.org'
2010-04-26 16:52:46 +00:00
md5 '9abc9959823ca9ff904f1fbcf21df066'
keg_only :provided_by_osx
def options
# Works with the Python 2 formula
[['--with-python', 'Compile the libxml2 Python 2.x modules']]
end
def install
2010-10-06 18:42:27 +00:00
fails_with_llvm "Undefined symbols when linking", :build => "2326"
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
if ARGV.include? '--with-python'
python_prefix=`python-config --prefix`
ohai "Installing Python module to #{python_prefix}"
args << "--with-python=#{python_prefix}"
end
system "./configure", *args
system "make"
ENV.j1
system "make install"
end
end