diff options
| author | Adam Vandenberg | 2013-06-08 16:52:07 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-11 22:05:33 -0700 |
| commit | 78501004c6473e18ce2367e8fcbb7dfd6534eaba (patch) | |
| tree | 1714311cf5eaf818e8597445d1f6482f6c0dd1e6 /Library | |
| parent | 6059e78b64b59f16601566ba570e79b09d3451bd (diff) | |
| download | homebrew-78501004c6473e18ce2367e8fcbb7dfd6534eaba.tar.bz2 | |
redo: use resources
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/redo.rb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Library/Formula/redo.rb b/Library/Formula/redo.rb index b439cfbaf..9afeb6476 100644 --- a/Library/Formula/redo.rb +++ b/Library/Formula/redo.rb @@ -1,22 +1,18 @@ 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/archive/redo-0.11.tar.gz" + url 'https://github.com/apenwarr/redo/archive/redo-0.11.tar.gz' sha1 '8b26d7c694b91a85d3f252e4ad85ca740ff0babd' + resource 'docs' do + url 'https://github.com/apenwarr/redo.git', :branch => 'man' + end + 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 + rm share/'doc/redo/README.md' # lets not have two copies + man1.install resource('docs') end end |
