aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bashreduce.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-12 21:28:00 -0800
committerAdam Vandenberg2012-02-12 21:41:07 -0800
commitd1a36802f92b51ef20d3f18a004b2e40c10f9db9 (patch)
tree0b6179bcefed61c7d09e9b944ee25a5a8f0282ba /Library/Formula/bashreduce.rb
parent2d98e27f8e516da0368b3b4b1ec52e383d64d7a2 (diff)
downloadhomebrew-d1a36802f92b51ef20d3f18a004b2e40c10f9db9.tar.bz2
bashreduce: avoid inreplace
Diffstat (limited to 'Library/Formula/bashreduce.rb')
-rw-r--r--Library/Formula/bashreduce.rb15
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