2010-08-15 19:07:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Bashreduce <Formula
|
|
|
|
head 'git://github.com/erikfrey/bashreduce.git'
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/erikfrey/bashreduce'
|
2010-08-15 19:07:46 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
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"
|
|
|
|
end
|
|
|
|
|
|
|
|
bin.install "br"
|
|
|
|
end
|
|
|
|
end
|