diff options
| author | Max Howell | 2009-09-24 23:35:10 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-25 00:04:55 +0100 |
| commit | 9f52fea52060591a9b4e86a009ea00071f6cf13b (patch) | |
| tree | a960817ccee2c729711f93d3327d8f393426192e /Library | |
| parent | b06bd60957cac3faad9d7abc714b04990988bd4e (diff) | |
| download | homebrew-9f52fea52060591a9b4e86a009ea00071f6cf13b.tar.bz2 | |
Fixes #60
Well, I guessed keg_only would have issues.
Here, glib assumes GNU gettext will be in the same path as itself. Which would
be true if we symlinked gettext into the tree, but we don't to avoid conflicts
with the BSD version: /usr/lib/libgettext.dylib
We'll have to do this a lot, so I need to figure out how to automate it, or
how to avoid doing this kind of thing altogether.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/glib.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb index 3d61fa225..758f78b11 100644 --- a/Library/Formula/glib.rb +++ b/Library/Formula/glib.rb @@ -43,7 +43,18 @@ class Glib <Formula "--with-libiconv=gnu" system "make" system "make install" - + + # this sucks, basically gettext is Keg only to prevent conflicts with + # the wider system, but pkg-config or glib is not smart enough to + # have determined that libintl.dylib isn't in the DYLIB_PATH so we have + # to add it manually, we might have to do this a lot, so clearly we need + # to make it automatic or solve the BSD/GNU gettext conflict in another + # way + gettext = Formula.factory 'gettext' + inreplace lib+'pkgconfig'+'glib-2.0.pc', + 'Libs: -L${libdir} -lglib-2.0 -lintl', + "Libs: -L${libdir} -lglib-2.0 -L#{gettext.lib} -lintl" + (prefix+'share'+'gtk-doc').rmtree end end |
