scons: Help scons to find its self

SCons was having a crisis of identity and could not find its own modules.
Things are now re-rooted to libexec so that the formula functions similar to
other python tools such as duplicity and denyhosts.
cfengine 3.3.4

Closes #13242.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Storm 0.7.4

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
storm: use sha1 and simplify install
Ceylon 1.0M3.1

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
subversion: update requirements

* serf needs to be universal when building universal
* make universal requirements fatal
lftp 4.3.8

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
hub: use system rake to avoid RVM's Bundler integration

Fixes defunkt/hub#205

Closes #13238.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
todo-txt: install bash completion

Closes #13250.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
groonga 2.0.4

Closes #13153.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
gnu-prolog 1.4.1

Thanks to @2bits for the patch.

Closes #13145.
pygtk: depends_on :x11

pygtk-2.24.0 on Lion will not compile because it can't find
`<pango/pangocairo.h>.  This occurs because pkgconfig has trouble
querying the pangocairo.pc module because it complains that a
required module, `fontconfig` can't be found and suggests adding
it's path to `PKG_CONFIG_PATH`.  We know `fontconfig` is a part
of X11.  So add `depends_on :x11` to the formula so that all the
pkgconfig modules can be located.

Tested by importing pygtk, importing cairo, and by running
`brew test -v pygtk` on Lion with clang and llvm from XCode-4.3.3.

Fixes #13205 and possibly #13256

Closes #13257.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
py2cairo: fix miscompile on Lion. Use LINKFLAG.

waf miscompiles py2cairo on Lion, linking the wrong Python Library when
HB Python is installed.  So add a LINKFLAG that sets the path to the real
python Library as determined by `python-prefix`, where it gets used at
link time and fixes the problem where you can't import cairo into Python.
Also add a `fails_with :llvm` block to work around a build error where
waf tries to optimize with `-march=native` which llvm doesn't accept.

https://bugs.freedesktop.org/show_bug.cgi?id=51544

Tested on Lion and SL using system Python, HB framework Python,
HB non-framework Python with clang building both native and
universal binaries, by importing the cairo module into Python.

Rebased on Homebrew 0.9.2

Fixes #12893

Closes #12943.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
gobject-introspection: disable tests

The tests require (at least) cairo, so disable them to avoid insane
dependencies.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
mpfr 3.1.1

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
nettle 2.5

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
p11-kit 0.12

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
doctor: update xcode chceck

* 4.3.3 is the latest on 10.7
* Give up if we don't know what the latest is (10.8 and beyond)
Remove `brew install foo --help`

This command was undocumented, only for autotools, and it is enough to do
`brew install foo -i` and then `./configure --help` in two steps.
Prevent error pipe object from being finalized

When the first error pipe object is finalized, the underlying file
descriptor is closed, breaking the pipe between the build script and the
main Homebrew process. Keep a reference to this object so it isn't
closed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>