diff options
| author | Adam Vandenberg | 2011-07-29 09:05:08 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-07-29 09:05:08 -0700 |
| commit | 171fccca26e11efc236046da4a5a96c7b87f9627 (patch) | |
| tree | 40b1ecd9ff698da4eb5d69ef266c78619a7742b3 /Library/Formula | |
| parent | 7b2cd689a9c065cf913b871ad5cb014e313cecb5 (diff) | |
| download | homebrew-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/Formula')
| -rw-r--r-- | Library/Formula/fontforge.rb | 5 |
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 |
