Closed kdulzo closed 14 years ago
Is this meant to be a pull request?
I've encountered a problem, the download link to atk is incorrect:
ftp://ftp.gnome.org/pub/gnome/atk/1.28/atk-1.28.0.tar.bz2
should change to
ftp://ftp.gnome.org/pub/gnome/sources/atk/1.28/atk-1.28.0.tar.bz2
Corrected formulas:
atk - kdulzo/homebrew@c588ee9410fd04ab8f0de40b244d185b7d198240 gtk+ - kdulzo/homebrew@4b154815060de6bc643f99f9156377a8ad9cf428
As far as a pull request, maybe I was confused in reading the guidelines but I got the sense that single commit cherry-picks were the way to go for Formula.
Atk added in d5119b75eca50c0250b14b87571f85d41639ad65.
GTK+ configure fails on me due to missing Cairo. Should Cairo be added as an explicit dependency of GTK+, or is it implicitly used by some other dep?
Pango depends on cairo as well, but it should be installed by with Apple's X11 package.
Pango installed fine (on 10.5), GTK+ bombs: checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.21.3 atk >= 1.13.0 pango >= 1.20 cairo >= 1.6) were not met:
No package 'cairo' found
Looks like an explicit configure may be needed for Leopard.
Can't find a way to get this working on Leopard; will verify on Snow Leopard tonight, but we also need a 10.5 solution.
I'm running it on Leopard primarily... Are you using the X11 from the Apple DVD or the updated Xquartz package from macforge? Maybe cairo is only in the macforge edition...
Kevins-MacBook:~ kdulzo$ locate cairo /usr/X11/include/cairo /usr/X11/include/cairo/cairo-deprecated.h /usr/X11/include/cairo/cairo-features.h /usr/X11/include/cairo/cairo-ft.h /usr/X11/include/cairo/cairo-pdf.h /usr/X11/include/cairo/cairo-ps.h /usr/X11/include/cairo/cairo-svg.h /usr/X11/include/cairo/cairo-version.h /usr/X11/include/cairo/cairo-xlib-xrender.h /usr/X11/include/cairo/cairo-xlib.h /usr/X11/include/cairo/cairo.h /usr/X11/lib/libcairo.2.dylib /usr/X11/lib/libcairo.dylib /usr/X11/lib/libcairo.la /usr/X11/lib/pkgconfig/cairo-ft.pc /usr/X11/lib/pkgconfig/cairo-pdf.pc /usr/X11/lib/pkgconfig/cairo-png.pc /usr/X11/lib/pkgconfig/cairo-ps.pc /usr/X11/lib/pkgconfig/cairo-svg.pc [...]
10.5 + XCode 3.1.4.
$ locate cairo /usr/X11/include/cairo /usr/X11/include/cairo/cairo-deprecated.h /usr/X11/include/cairo/cairo-features.h /usr/X11/include/cairo/cairo-ft.h /usr/X11/include/cairo/cairo-pdf.h /usr/X11/include/cairo/cairo-ps.h /usr/X11/include/cairo/cairo-svg.h /usr/X11/include/cairo/cairo-xlib-xrender.h /usr/X11/include/cairo/cairo-xlib.h /usr/X11/include/cairo/cairo.h
Looks like your install (Apple Leopard original?) doesn't have the pkg-config (cairo.pc) files so perhaps the formula should check for /usr/X11/lib/pkgconfig/cairo-.pc otherwise add the cflags/ldflags manually. I would think this would "just work" since /usr/X11/include should already be added...
I don't know if it makes sense to require users to install http://xquartz.macosforge.org/. Let me dig into this after work and I'll whip up something. I'll have to uninstall the Xquartz update.
I have cairo in branch working on 10.6 http://github.com/To1ne/homebrew/blob/klavaro/Library/Formula/cairo.rb
I got it from rioderelfte: http://github.com/rioderelfte/homebrew/blob/gtk/Library/Formula/cairo.rb
But I think some configure
setting should change.
How does that interact with the Pango formula built --with-x? I recall from macports that the quartz/x11 features don't mix well across packages.
10.6 has cairo in Apple's X11, including the .pc files for pkg-config. I just tested on my home machine, the formula and dependencies build without issue on Snow Leopard.
I think the issue is Apple's X11 for Leopard has an older version of cairo compared to both Xquartz-2.4.0 (xquartz.macosforge.com) and Snow Leopard X11.
I have these three ideas:
Any thoughts?
Yes, I've noticed the conflicting parameters. I'll look in to it. But why not just use --with-x on all formulas?
Rebased gtk+ with fix for Snow Leopard performance (yes, my git fu is weak)
kdulzo/homebrew@df4b59aee0eb54d2dbd37acc1a4754401c440c6e
Any further thoughts on what to do for Leopard and cairo?
Fork went away?
Added GTK+ in 1e75da9ca89ef34eabcf1d2419c3dd60fb9b77de
kdulzo/homebrew@dbcd5f6dbfd3e94c41b4314d9d6f25fe6ba3db77