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
FixesHomebrew/homebrew#12893ClosesHomebrew/homebrew#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.
FixesHomebrew/homebrew#13205 and possibly Homebrew/homebrew#13256ClosesHomebrew/homebrew#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.
FixesHomebrew/homebrew#13228.
ClosesHomebrew/homebrew#13137.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Samba calls autogen.sh, but never had any deps on autotools.
This causes a build error for Lion users who never installed them.
Add the standard deps on automake & libtool if XCode >= 4.3
Tested on with Clang and llvm from XCode-4.3.3.
FixesHomebrew/homebrew#13188ClosesHomebrew/homebrew#13208.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Eventually we should try to just get this from XQuartz, but for now
let's depend on cairo for consistency.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
jpeg-turbo-1.2.0 can fail `make install` due to a race condition
on Lion using clang, where you get the error that a path exists.
Separate the make steps, and deparallelize the install.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>