diff options
| author | Jack Nagel | 2012-01-13 00:15:36 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-01-13 00:22:16 -0600 |
| commit | 86d21edea5236363fc0a34d3d99d58ce3a1559e8 (patch) | |
| tree | 6513f18adc7fe2fad0101b6603e32586684fbd37 | |
| parent | d5fffaefc7e6093ac8e6a370825b13dcfbaeea7c (diff) | |
| download | homebrew-86d21edea5236363fc0a34d3d99d58ce3a1559e8.tar.bz2 | |
glib: replace paths in patched files
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/glib.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb index 409e96193..66ef96d47 100644 --- a/Library/Formula/glib.rb +++ b/Library/Formula/glib.rb @@ -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| |
