aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/glib.rb13
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