diff options
| author | Ash Berlin | 2010-08-08 21:51:00 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-09 16:49:05 -0700 |
| commit | 8dde4f80acef32496d190934a0cd9a31f5dbae3f (patch) | |
| tree | 17d20595cc12907cff743d422251d21290cd1eff | |
| parent | 65b3f4be916586e0ba9f7a7263b430b5bb2f3f15 (diff) | |
| download | homebrew-8dde4f80acef32496d190934a0cd9a31f5dbae3f.tar.bz2 | |
Fix weechat's perl plugin.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/weechat.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/weechat.rb b/Library/Formula/weechat.rb index ca283ee85..8c8e30f78 100644 --- a/Library/Formula/weechat.rb +++ b/Library/Formula/weechat.rb @@ -10,10 +10,20 @@ class Weechat <Formula depends_on 'gnutls' def install + + # Remove all arch flags from the PERL_*FLAGS as we specify them ourselves. + # This messes up because the system perl is a fat binary with 32,64 and PPC + # compiles, but our deps don't have that. + archs = ['-arch ppc', '-arch i386', '-arch x86_64'] + inreplace "src/plugins/scripts/perl/CMakeLists.txt", + 'IF(PERL_FOUND)', + 'IF(PERL_FOUND)' + + %Q{\n STRING(REGEX REPLACE "#{archs.join '|'}" "" PERL_CFLAGS "${PERL_CFLAGS}")} + + %Q{\n STRING(REGEX REPLACE "#{archs.join '|'}" "" PERL_LFLAGS "${PERL_LFLAGS}")} + #FIXME: Compiling perl module doesn't work #NOTE: -DPREFIX has to be specified because weechat devs enjoy being non-standard system "cmake", "-DPREFIX=#{prefix}", - "-DDISABLE_PERL=ON", "-DDISABLE_RUBY:BOOL=ON", std_cmake_parameters, "." system "make install" |
