aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bashreduce.rb
blob: fc44ed336badaaed043f4291d28e71fd191a2c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Bashreduce <Formula
  head 'git://github.com/erikfrey/bashreduce.git'
  homepage 'http://github.com/erikfrey/bashreduce'

  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