SDK/usr/include and lib now appended instead of prepended.
Prepending overwrote our precedence of HOMEBREW_PREFIX/include and lib.
Closes#13292.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
As reported in 10422, gv would not compile on Lion and possibly SL
due to problems building Homebrew's `xaw3d`. That library is a
part of XQuartz now.
* Upgrade `gv` to version 3.7.3.90 from `alpha.gnu.org` because
this release is specifically fixed to support the new `libxawd`.
* Note in the comments to switch back to `ftp.gnu.org` at v3.7.4.
* Change the dep to a Requirement for XQuartz >= 2.7.2.
Fixes#10422 and #12596Closes#12637.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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>
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#12893Closes#12943.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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 #13256Closes#13257.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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.
This adds the hard commit hash to the URL instead of using the master
branch which ensures that the hash stays valid and the code works with
1.2.0.
Fixes#13228.
Closes#13137.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
In 1.8, Pathname.find would work (and do nothing) if the
source path didn't exist. In 1.9 this throws an exception
instead, so check whether the file exists before trying.