64afeec6d4
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
37 lines
864 B
Ruby
37 lines
864 B
Ruby
require 'formula'
|
|
|
|
class Libxml2 < Formula
|
|
url 'ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz'
|
|
homepage 'http://xmlsoft.org'
|
|
md5 '8127a65e8c3b08856093099b52599c86'
|
|
|
|
keg_only :provided_by_osx
|
|
|
|
fails_with :llvm do
|
|
build 2326
|
|
cause "Undefined symbols when linking"
|
|
end
|
|
|
|
def options
|
|
[
|
|
['--with-python', 'Compile the libxml2 Python 2.x modules'],
|
|
['--universal', 'Build a universal binary.']
|
|
]
|
|
end
|
|
|
|
def install
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
|
|
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
|