aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-07-29 09:05:08 -0700
committerAdam Vandenberg2011-07-29 09:05:08 -0700
commit171fccca26e11efc236046da4a5a96c7b87f9627 (patch)
tree40b1ecd9ff698da4eb5d69ef266c78619a7742b3 /Library
parent7b2cd689a9c065cf913b871ad5cb014e313cecb5 (diff)
downloadhomebrew-171fccca26e11efc236046da4a5a96c7b87f9627.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fontforge.rb5
1 files changed, 3 insertions, 2 deletions
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