2010-08-15 19:07:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bashreduce < Formula
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://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
|