glib: replace paths in patched files

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Jack Nagel 2012-01-13 00:15:36 -06:00
parent 14c5b96daf
commit 065978ba16
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ class Glib < Formula
args << "--disable-debug" unless build_tests?
# MacPorts puts "@@PREFIX@@" in patches and does inreplace on the files,
# so we must follow suit if we use their patches
inreplace ['gio/xdgmime/xdgmime.c', 'gio/gdbusprivate.c'] do |s|
s.gsub! '@@PREFIX@@', HOMEBREW_PREFIX
end
if ARGV.build_universal?
# autoconf 2.61 is fine don't worry about it
inreplace ["aclocal.m4", "configure.ac"] do |s|