mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 11:29:53 -05:00
redo: use resources
This commit is contained in:
1 parent
6059e78b64
commit
78501004c6
1 file changed
+7
-11
+7
-11
@@ -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
|
||||
Reference in new issue
Block a user