diff options
| author | Adam Vandenberg | 2012-09-02 11:46:24 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-02 11:46:24 -0700 |
| commit | e3041218670b9da377cf3b766aa5ce3d7c541a3a (patch) | |
| tree | f844e0278d52f6b6151bba3dbe39a893264171a3 /Library/Formula/libxml2.rb | |
| parent | 038cce744e3f88aefacdcca9b9ff13264b0b0f7e (diff) | |
| download | homebrew-e3041218670b9da377cf3b766aa5ce3d7c541a3a.tar.bz2 | |
libxml2: use new dsl
Diffstat (limited to 'Library/Formula/libxml2.rb')
| -rw-r--r-- | Library/Formula/libxml2.rb | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Library/Formula/libxml2.rb b/Library/Formula/libxml2.rb index 31053a0dd..29a846121 100644 --- a/Library/Formula/libxml2.rb +++ b/Library/Formula/libxml2.rb @@ -12,22 +12,18 @@ class Libxml2 < Formula cause "Undefined symbols when linking" end - def options - [ - ['--with-python', 'Compile the libxml2 Python 2.x modules'], - ['--universal', 'Build a universal binary.'] - ] - end + option :universal + option 'with-python', 'Compile the libxml2 Python 2.x modules' def install - ENV.universal_binary if ARGV.build_universal? + ENV.universal_binary if build.universal? system "./configure", "--prefix=#{prefix}", "--without-python" system "make" ENV.deparallelize system "make install" - if ARGV.include? '--with-python' + if build.include? 'with-python' # Build Python bindings manually cd 'python' do python_lib = lib/which_python/'site-packages' @@ -41,8 +37,9 @@ class Libxml2 < Formula ENV.append 'CFLAGS', arch_flags ENV.append 'LDFLAGS', arch_flags - system "python", "setup.py", "install_lib", - "--install-dir=#{python_lib}" + system "python", "setup.py", + "install_lib", + "--install-dir=#{python_lib}" end end end |
