diff options
| author | Adam Vandenberg | 2012-02-12 21:28:00 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-12 21:41:07 -0800 |
| commit | d1a36802f92b51ef20d3f18a004b2e40c10f9db9 (patch) | |
| tree | 0b6179bcefed61c7d09e9b944ee25a5a8f0282ba /Library/Formula | |
| parent | 2d98e27f8e516da0368b3b4b1ec52e383d64d7a2 (diff) | |
| download | homebrew-d1a36802f92b51ef20d3f18a004b2e40c10f9db9.tar.bz2 | |
bashreduce: avoid inreplace
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/bashreduce.rb | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Library/Formula/bashreduce.rb b/Library/Formula/bashreduce.rb index 4f82f961c..433545613 100644 --- a/Library/Formula/bashreduce.rb +++ b/Library/Formula/bashreduce.rb @@ -1,21 +1,14 @@ require 'formula' class Bashreduce < Formula - head 'https://github.com/erikfrey/bashreduce.git' homepage 'https://github.com/erikfrey/bashreduce' + head 'https://github.com/erikfrey/bashreduce.git' def install + bin.install "br" Dir.chdir 'brutils' do - inreplace "Makefile" do |s| - s.change_make_var! 'CFLAGS', ENV.cflags - s.change_make_var! 'BINDIR', bin - end - - system "make" - bin.install "brp" - bin.install "brm" + system "make", "CFLAGS=#{ENV.cflags}", "BINDIR=#{bin}" + bin.install "brp", "brm" end - - bin.install "br" end end |
