From 171fccca26e11efc236046da4a5a96c7b87f9627 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 29 Jul 2011 09:05:08 -0700 Subject: fontforge: more specific Makefile edits Be more specific about the edits we do to the make file. We only want to change paths in the install section near the bottom. Also take out `sudo` from the app linking instructions. --- Library/Formula/fontforge.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/fontforge.rb b/Library/Formula/fontforge.rb index 5f6f611ba..261712643 100644 --- a/Library/Formula/fontforge.rb +++ b/Library/Formula/fontforge.rb @@ -26,9 +26,10 @@ class Fontforge < Formula ENV.append "LDFLAGS", "-lintl" system "./configure", *args + # Fix hard-coded install locations that don't respect the target bindir inreplace "Makefile" do |s| s.gsub! "/Applications", "$(prefix)" - s.gsub! "/usr/local/bin", "$(bindir)" + s.gsub! "ln -s /usr/local/bin/fontforge", "ln -s $(bindir)/fontforge" end system "make" @@ -41,7 +42,7 @@ class Fontforge < Formula To install the Mac OS X wrapper application run: brew linkapps or: - sudo ln -s #{prefix}/FontForge.app /Applications + ln -s #{prefix}/FontForge.app /Applications EOS end end -- cgit v1.2.3