mxcl/homebrew — pull request #12193 by 2bits (2012-05-10 19:44:58+00:00)
Title: weechat: switch from cmake to configure

* Switch to using `configure`
* Add a build time dep on gettext, otherwise link errors.
* Add `--disable-perl` to stop segfault on program exit.
* Add `--disable-aspell` which is still being reviewed.
* Add `--disable-static` to stop building duplicate plugins.
* Add `--disable-python` unless Python is a framework.
* Make inreplace apply to stable only. It's fixed in HEAD.
* Delete the plugin symlinks to stop runtime warnings.

Weechat-0.3.7 can be built using cmake or configure, but their
cmake build scripts are prone to errors when building the ruby
bindings. By switching to `configure` the formula is greatly
simplified, and all the plugins it creates get neatly installed
into lib+'weechat/plugins' automatically.

Weechat comes with an internal gettext and libintl that cause
errors when linking. So add a dep on Homebrew's gettext.

As reported by another user and confirmed through gdb, the perl
plugin causes a segfault on exit. So disable building that.

Aspell is still under construction in Homebrew, and weechat will
compile that plug by default. So disable aspell for now.

Disable static plugins and delete symlinks for each plugin
leaves only one `.so` for each plugin and stops a dozen warnings
when running weechat about can't load duplicate plugins.

Disable building the Python plugin unless Python is a framework
because it will build but fail to load the plugin with an error
that it can't dlopen a module expected in flat namespace.

Even if we add a dep on Homebrew/dupes/ncurses to get the wide
variety of it, that formula doesn't actually create `-lnursesw`.
So that is not added, because it can't be found.

The gtk interface to weechat is not added as a user option because
it runs but doesn't make a useable gui. It's blank & unresponsive.

Weechat compiles, runs, and connects to freenode without error
using clang and llvm on Lion, tested against system Ruby, system
Python, and Homebrew Python frameworks.

Fixes #11835 and #12066