fontforge: Only perform FlatCarbon replacement for non-HEAD builds
This isn't needed in the fontforge HEAD - all header paths are correct there. Closes Homebrew/homebrew#25195. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
0692ad3e15
commit
04a930b4b7
1 changed files with 8 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue