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.master
parent
654ed20b88
commit
48fd4f9d43
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue