From 3909909139800957eb6779afa01f30bbd2657d7a Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Tue, 3 May 2011 09:59:30 +0200 Subject: 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 --- Library/Formula/figlet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3