aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-10-04 20:47:41 -0500
committerJack Nagel2011-10-04 20:50:39 -0500
commitf7f7222561f1bc96fcd4dcc0769d0fe39e26ebdf (patch)
tree71b745140204f7cae7c389b2e987cfd5e37ef320 /Library
parent45365e0ecb0858e7aa96dc8c40cc2b9c5d6db834 (diff)
downloadhomebrew-f7f7222561f1bc96fcd4dcc0769d0fe39e26ebdf.tar.bz2
sl: respect Homebrew environment variables
Kind of pointless for something so simple, but I was using the sl formula to test something and noticed it so here it is. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sl.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/sl.rb b/Library/Formula/sl.rb
index e168fcd89..4bd978bb5 100644
--- a/Library/Formula/sl.rb
+++ b/Library/Formula/sl.rb
@@ -7,6 +7,11 @@ class Sl < Formula
md5 'd0d997b964bb3478f7f4968eee13c698'
def install
+ inreplace 'Makefile' do |s|
+ s.change_make_var! 'CC', ENV.cc
+ s.change_make_var! 'CFLAGS', ENV.cflags
+ end
+
system "make"
bin.install "sl"
man1.install "sl.1"