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:
Cody Boisclair 2013-12-13 22:55:56 -05:00 committed by Adam Vandenberg
parent 0692ad3e15
commit 04a930b4b7

View file

@ -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"