xml2rfc from svn + required formula.rb download strategy fix
This commit is contained in:
parent
c5b9d77dba
commit
952fffd14b
1 changed files with 20 additions and 0 deletions
20
Formula/xml2rfc.rb
Normal file
20
Formula/xml2rfc.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
require 'formula'
|
||||
|
||||
class Xml2rfc <Formula
|
||||
head 'https://svn.tools.ietf.org/svn/tools/xml2rfc/trunk'
|
||||
homepage 'http://xml.resource.org/'
|
||||
|
||||
# http://github.com/mxcl/homebrew/issues/#issue/87
|
||||
depends_on :subversion if MACOS_VERSION < 10.6
|
||||
|
||||
def install
|
||||
%w[xml2rfc xml2sgml].each do |f|
|
||||
FileUtils.mv f+'.tcl', f
|
||||
bin.install f
|
||||
end
|
||||
%w[xml2txt xml2html xml2nroff].each do |f|
|
||||
FileUtils.ln "#{prefix}/bin/xml2rfc", "#{prefix}/bin/"+f
|
||||
end
|
||||
Dir["*"].each {|f| doc.install f}
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue