diff options
| author | Adam Vandenberg | 2014-03-01 13:48:53 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-01 18:19:27 -0800 |
| commit | 073f4d60e767cc77a2d3b4b3fa08acf724af95ec (patch) | |
| tree | 5b55f3bdf696f68838caca6fa372c6eca43d9d46 /Library/Formula | |
| parent | 339756387c4e5e9d6a712c0b1070e348ff3fa775 (diff) | |
| download | homebrew-073f4d60e767cc77a2d3b4b3fa08acf724af95ec.tar.bz2 | |
hexchat: fix Python plugin support
Closes #26803.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/hexchat.rb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Library/Formula/hexchat.rb b/Library/Formula/hexchat.rb index 964348230..d826ee602 100644 --- a/Library/Formula/hexchat.rb +++ b/Library/Formula/hexchat.rb @@ -29,9 +29,20 @@ class Hexchat < Formula # Fails on 32-bit core solo without this args << "--disable-mmx" unless MacOS.prefer_64_bit? - args << "--disable-python" unless build.with? "python" - args << "--disable-perl" if build.include? "without-perl" - args << "--disable-plugin" if build.include? "without-plugins" + if build.with? "python" + python = Formula["python"] + if python.installed? + ENV.append_path "PKG_CONFIG_PATH", python.frameworks/"Python.framework/Versions/2.7/lib/pkgconfig/" + else + ENV["PY_CFLAGS"] = `/usr/bin/python-config --cflags` + ENV["PY_LIBS"] = `/usr/bin/python-config --libs` + end + else + args << "--disable-python" + end + + args << "--disable-perl" if build.without? "perl" + args << "--disable-plugin" if build.without? "plugins" # Build fails because of a conflict with the system 'strptime', # so rename the function @@ -40,7 +51,7 @@ class Hexchat < Formula end # The locations of the gettext dependencies are hardcoded, so copy them - gettext = Formula['gettext'].opt_prefix/'share/gettext' + gettext = Formula["gettext"].opt_prefix/"share/gettext" cp_r ["#{gettext}/intl", "#{gettext}/po"], "." system "autoreconf -vi" |
