Commit graph

25 commits

Author SHA1 Message Date
nibbles 2bits
06cde06a46 weechat: switch back to cmake, support aspell
The weechat devs have informed us that configure is deprecated.
Switch back to cmake.
Add a user option to enable the aspell module.
Add a user option to enable the lua module.
Add an inreplace to fix the bad path in HB framework Python's
LINKFORSHARED variable and an explanation for it.
Add deps for lua and apsell if the user options those.
Add a caveat suggesting the user install aspell manually before
installing weechat, otherwise they won't have any dictionaries.
Remove the code that deleted the extra module symlinks.

The Aspell dep could be made into a requirement, but it would be
nice if Aspell installed at least the en dictionary by default.
All bindings work except the Ruby bindings when built against
rbenv and ruby-1.9.  This has been reported upstream and is the
main reason for switching back to cmake, so we can get support.
Tested on Lion using clang and llvm from XCode-4.3.3 against
system Python, HB framework and non-framework python, the current
Aspell, Lua, and Guile, system Ruby, and system Perl.

Fixes Homebrew/homebrew#12377

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-12 07:07:42 -07:00
nibbles 2bits
2bba5dab31 weechat 0.3.8
Upgrade weechat to version 0.3.8.
Remove the patch block because the patch is included.

Closes Homebrew/homebrew#12679.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-08 20:38:29 -05:00
nibbles 2bits
577f197768 weechat: make bindings optional, patch to fix perl
The weechat saga continues...  This commit makes all the language
modules optional rather than the default.  It adds a dep on guile
if the user options for that module.  It adds a patch from HEAD
to fix the perl segfault on exit and a removal comment for 0.3.8.
This commit does not patch the ruby-1.9.3+rvm issue other than
not building that module by default.  Still waiting on the
upstream patch.

cf. Homebrew/homebrew#12377

Closes Homebrew/homebrew#12392.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-24 20:28:41 -05:00
nibbles 2bits
1f17654151 weechat: switch from cmake to configure
* Switch to using `configure`
* Remove `head` because it requires gtk.
* 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.
* Note that the one `inreplace` is 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 `head` builds require `gtk` even if the `gtk` gui is
not enabled, which it isn't because it's b0rked.  So remove head.

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 the static plugins and delete the plugin symlinks.  That
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 Homebrew/homebrew#11289.
Fixes Homebrew/homebrew#11835.
Fixes Homebrew/homebrew#12066.
Closes Homebrew/homebrew#12193.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-18 23:07:24 -05:00
Kensuke Nagae
8576d75b0e weechat: options to enable script language plugins
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-14 07:06:29 -07:00
Kevin Williams
8d3d838203 weechat 0.3.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-12 21:45:31 -07:00
Adam Vandenberg
7c5720e36f Put source path last in cmake args 2012-02-24 21:35:51 -08:00
Adam Vandenberg
872701635e weechat 0.3.6
Also disable Python plugins.

We would gladly accept options for ruby/perl/python to attempt enabling
support for those langs.
2012-01-22 14:43:32 -08:00
Adam Vandenberg
d17bd3e044 weechat 0.3.5 2011-06-07 08:01:33 -07:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg
5015776c14 Weechat - disable perl 2011-01-20 08:40:22 -08:00
Francesco Lazzarino
4c8b601982 updated weechat to 0.3.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-01-19 17:58:03 -08:00
Adam Vandenberg
19e5e6e64a Mark scons, cmake & pkg-config as build-time deps 2010-10-12 07:13:29 -07:00
Ash Berlin
83fd7e3bac Fix weechat's perl plugin.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-09 16:49:05 -07:00
Kenneth Vestergaard
cd153c52c9 update weechat to 0.3.3
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-08 08:22:21 -07:00
Adam Vandenberg
7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00
David Höppner
75a592998f weechat: version update to 0.3.2 2010-04-24 18:35:52 +02:00
David Höppner
5c08568eca weechat: update to version 0.3.1.1
* remove patch to find libiconv
* disable ruby extension in head and stable (build fails)
2010-02-08 13:18:02 +01:00
Max Howell
61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00
David Höppner
f492148c3b weechat: GnuTLS is fixed 2009-10-12 23:01:13 +01:00
David Höppner
ae44cb4c81 weechat: fix iconv not found (not perfect)
Signed-off-by: Max Howell <max@methylblue.com>

Fixes Homebrew/homebrew#82
2009-10-09 00:13:24 +01:00
Max Howell
ea31de16bb Fix Weechat always installing to /usr/local
The WeeChat devs don't know about CMAKE_INSTALL_PREFIX apparently, someone
should tell them. I won't. I plan on just sitting back and shacking my head
side-to-side instead.
2009-10-02 20:01:23 +01:00
dbr
daf1821c59 weechat depends_on gnutls, and two FIXME notices 2009-09-30 01:24:36 +01:00
Max Howell
a0759ae93a Use new depends_on syntax in all formula
Many formula were imported during the development of the dependency branch.
2009-09-21 19:00:13 +01:00
dbr
d3e93c2e14 Add weechat formula 2009-09-17 19:51:48 +01:00