aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/figlet.rb
diff options
context:
space:
mode:
authorAlexis Hildebrandt2011-05-03 09:59:30 +0200
committerAdam Vandenberg2011-05-04 09:10:29 -0700
commit3909909139800957eb6779afa01f30bbd2657d7a (patch)
tree7737150c78c901cbd5e8a1959f02917819a01f88 /Library/Formula/figlet.rb
parentbcdf2d5631dddb664f21dd08a62f06592367febc (diff)
downloadhomebrew-3909909139800957eb6779afa01f30bbd2657d7a.tar.bz2
figlet: fix non-/usr/local installs
Fix installation path substitution pattern for Makefile inreplace. The pattern was '/usr/local/' but the Makefile only contains '/usr/local', thus the pattern never matched and the non-superuser installation failed with: cp figlet chkfont figlist showfigfonts /usr/local/bin cp: /usr/local/bin/figlet: Permission denied cp: /usr/local/bin/chkfont: Permission denied cp: /usr/local/bin/figlist: Permission denied cp: /usr/local/bin/showfigfonts: Permission denied Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/figlet.rb')
-rw-r--r--Library/Formula/figlet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/figlet.rb b/Library/Formula/figlet.rb
index 19f622244..effb8344a 100644
--- a/Library/Formula/figlet.rb
+++ b/Library/Formula/figlet.rb
@@ -29,7 +29,7 @@ class Figlet < Formula
InternationalFonts.new.brew { share_fonts.install Dir['*'] }
inreplace "Makefile" do |s|
- s.gsub! "/usr/local/", "#{prefix}/"
+ s.gsub! "/usr/local", prefix
s.change_make_var! 'DEFAULTFONTDIR', share_fonts
s.change_make_var! 'MANDIR', man6
end