Commit Graph
39 Commits
Author SHA1 Message Date
Johnneylee Jack Rollins 2d0b960b13 weechat: add git HEAD
Closes #20250.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-04 11:42:35 -05:00
Samuel John 0b50110107 Python 2.x and 3.x support
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.

To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.

The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:

python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.

Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.

python do
  system python, 'setup.py', "--prefix=#{prefix}"
end

Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
Jack Nagel e8c9fc7241 weechat: fix audit warning 2013-05-27 19:03:22 -05:00
Chad Catlett 774a77992f weechat 0.4.1
* fixes CMake Python detection

Fixes #19168.
Closes #20025.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-24 07:00:01 -07:00
Jack Nagel e9ae198f10 weechat: it's OK to make this assumption 2013-04-30 00:29:09 -05:00
Misty De Meo b4e940a48d weechat: disable gettext/NLS for now
This is a workaround for #18722.
2013-04-02 16:25:38 -05:00
Akshay Hegde 3e58f1c9f2 weechat 0.4.0
Closes #18306.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-07 15:42:23 -06:00
Øyvind Ingebrigtsen Øvergaard c4bcf321c6 weechat: fix iconv detection
Change the way cmake determines whether libiconv is available, since
the existing check is broken and makes cmake think that libiconv
isn't available.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-02-15 10:10:41 -06:00
Jack Nagel 9b62266790 weechat: fix deps 2013-02-01 21:56:34 -06:00
nibbles 2bits 46855e1b9c weechat 0.3.9.2
- Upgrade to 0.3.9.2.  Still works with superenv.

Closes #16152.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-11-19 20:33:57 -06:00
Stefan 7196ec9591 weechat: add libgcrypt dependency
Fixes #15966.
Closes #15967.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-11 09:25:44 -08:00
Adam Vandenberg 59a3bd1e3c weechat 0.3.9.1 2012-11-11 09:25:36 -08:00
kax4 08b7f13ef6 weechat 0.3.9
Closes #15237.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-02 06:53:38 -07:00
Adam Vandenberg a831e65e37 weechat: use new dsl 2012-08-23 15:28:02 -07:00
nibbles 2bits c997507315 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 #12377

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

Closes #12679.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-08 20:38:29 -05:00
nibbles 2bits 6a0630ba93 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. #12377

Closes #12392.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-24 20:28:41 -05:00
nibbles 2bits 0f2f2aeffa 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 #11289.
Fixes #11835.
Fixes #12066.
Closes #12193.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-18 23:07:24 -05:00
Kensuke Nagae 266e230adb 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 ffe257a516 weechat 0.3.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-12 21:45:31 -07:00
Adam Vandenberg 531a576509 Put source path last in cmake args 2012-02-24 21:35:51 -08:00
Adam Vandenberg 44213dfb48 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 6807981cfb weechat 0.3.5 2011-06-07 08:01:33 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg 91caff082e Weechat - disable perl 2011-01-20 08:40:22 -08:00
Francesco Lazzarino f66ec4047f updated weechat to 0.3.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-01-19 17:58:03 -08:00
Adam Vandenberg d56367c1ac Mark scons, cmake & pkg-config as build-time deps 2010-10-12 07:13:29 -07:00
Ash Berlin 8dde4f80ac Fix weechat's perl plugin.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-09 16:49:05 -07:00
Kenneth Vestergaard e7b3fc4500 update weechat to 0.3.3
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-08 08:22:21 -07:00
Adam Vandenberg d0efd9ee94 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 95bd82f439 weechat: version update to 0.3.2 2010-04-24 18:35:52 +02:00
David Höppner ae555e97f9 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 a82e823935 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 5d916bd32c weechat: GnuTLS is fixed 2009-10-12 23:01:13 +01:00
David Höppner 0c021f7e4b weechat: fix iconv not found (not perfect)
Signed-off-by: Max Howell <max@methylblue.com>

Fixes #82
2009-10-09 00:13:24 +01:00
Max Howell 8328d0e7db 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 a608ead3d2 weechat depends_on gnutls, and two FIXME notices 2009-09-30 01:24:36 +01:00
Max Howell 6a6e571929 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 1b6c9d8a98 Add weechat formula 2009-09-17 19:51:48 +01:00