From 87d31f09f7f5d13b4e572e6e98ecaa095fb879fa Mon Sep 17 00:00:00 2001 From: Nibbles 2bits Date: Thu, 23 Feb 2012 17:09:37 -0800 Subject: 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 --- Library/Formula/libplist.rb | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'Library/Formula') 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 ) -- cgit v1.2.3