diff options
| author | Nibbles 2bits | 2012-02-23 17:09:37 -0800 |
|---|---|---|
| committer | Jack Nagel | 2012-02-23 20:32:25 -0600 |
| commit | 87d31f09f7f5d13b4e572e6e98ecaa095fb879fa (patch) | |
| tree | 1de2b670c28db7db8e2f0c372b7f1d15db93dcfb /Library/Formula | |
| parent | e88c43bbe23d915065db0a2b83b3ed055ef39382 (diff) | |
| download | homebrew-87d31f09f7f5d13b4e572e6e98ecaa095fb879fa.tar.bz2 | |
libplist: fix inreplace python
libplist-1.8 has a broken inreplace that is supposed to disable swig
python bindings. Fix that and inline the patch to prevent future
inreplace failures. Also disables Cython python bindings until there is
a homebrew formula for Cython. Tested on Lion with Homebrew
python-2.7.2.
Closes #10436.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libplist.rb | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Library/Formula/libplist.rb b/Library/Formula/libplist.rb index 76d8890fc..2e0eee655 100644 --- a/Library/Formula/libplist.rb +++ b/Library/Formula/libplist.rb @@ -8,18 +8,14 @@ class Libplist < Formula depends_on 'cmake' => :build depends_on 'libxml2' - # Fix 3 Clang compile errors. - # Similar fixes were made upstream, so verify that these are still needed in 1.9. + # Fix 3 Clang compile errors. Similar fixes are upstream. Reverify in 1.9 + # 2nd patch disables SWIG and Cython python bindings def patches DATA end def install ENV.deparallelize # make fails on an 8-core Mac Pro - - # Disable Python bindings. - inreplace "CMakeLists.txt", 'OPTION(ENABLE_PYTHON "Enable Python bindings (needs Swig)" ON)', - '# Disabled Python Bindings' system "cmake #{std_cmake_parameters} -DCMAKE_INSTALL_NAME_DIR=#{lib} ." system "make install" @@ -54,3 +50,17 @@ __END__ unsigned char *outbuf = (unsigned char*)malloc((len/4)*3+3); unsigned char *line; + +--- a/CMakeLists.txt 2012-02-23 17:03:29.000000000 -0800 ++++ b/CMakeLists.txt 2012-02-23 17:03:51.000000000 -0800 +@@ -17,8 +17,8 @@ + + FIND_PACKAGE( LibXml2 REQUIRED ) + +-OPTION(ENABLE_SWIG "Enable SWIG Python bindings (needs Swig)" ON) +-OPTION(ENABLE_CYTHON "Enable Cython Python bindings (needs Cython)" ON) ++OPTION(ENABLE_SWIG "Enable SWIG Python bindings (needs Swig)" OFF) ++OPTION(ENABLE_CYTHON "Enable Cython Python bindings (needs Cython)" OFF) + + IF(ENABLE_SWIG) + FIND_PACKAGE( SWIG ) |
