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

class RedoDocs < Formula
  head 'https://github.com/apenwarr/redo.git', :branch => 'man'
  version 'foo'
end

class Redo < Formula
  homepage 'https://github.com/apenwarr/redo'
  url "https://github.com/apenwarr/redo/tarball/redo-0.11"
  md5 'c7090dbe2e731815e0201339ededc011'

  def install
    ENV['PREFIX'] = prefix
    system "./redo install"
    rm share+'doc/redo/README.md' # lets not have two copies

    RedoDocs.new('redodocs').brew do
      man1.install Dir['*']
    end
  end
end