diff options
| author | Cody Boisclair | 2013-12-13 22:55:56 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2013-12-15 10:34:17 -0800 |
| commit | 50d9e0b00d03464c5a3091d5a745237059c857e1 (patch) | |
| tree | 22abcaf30f04be13f2b9d4eff10872edcd5dd709 /Library/Formula | |
| parent | 9b00371d4361a9943fb48c435f93c44c88d1788b (diff) | |
| download | homebrew-50d9e0b00d03464c5a3091d5a745237059c857e1.tar.bz2 | |
fontforge: Only perform FlatCarbon replacement for non-HEAD builds
This isn't needed in the fontforge HEAD - all header paths are
correct there.
Closes #25195.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fontforge.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/fontforge.rb b/Library/Formula/fontforge.rb index e1f5dd1e9..7dfbf3cf7 100644 --- a/Library/Formula/fontforge.rb +++ b/Library/Formula/fontforge.rb @@ -107,11 +107,14 @@ class Fontforge < Formula # Replace FlatCarbon headers with the real paths # Fixes building on 10.8 - inreplace %w(fontforge/macbinary.c fontforge/startui.c gutils/giomime.c) do |s| - s.gsub! "/Developer/Headers/FlatCarbon/Files.h", "CarbonCore/Files.h" - end - inreplace %w(fontforge/startui.c) do |s| - s.gsub! "/Developer/Headers/FlatCarbon/CarbonEvents.h", "HIToolbox/CarbonEvents.h" + # Only needed for non-head build + unless build.head? + inreplace %w(fontforge/macbinary.c fontforge/startui.c gutils/giomime.c) do |s| + s.gsub! "/Developer/Headers/FlatCarbon/Files.h", "CarbonCore/Files.h" + end + inreplace %w(fontforge/startui.c) do |s| + s.gsub! "/Developer/Headers/FlatCarbon/CarbonEvents.h", "HIToolbox/CarbonEvents.h" + end end system "make" |
