2010-02-10 13:49:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xml2rfc < Formula
|
2011-04-04 08:38:55 +00:00
|
|
|
url 'http://xml.resource.org/authoring/xml2rfc-1.36.tgz'
|
2010-02-10 13:49:39 +00:00
|
|
|
homepage 'http://xml.resource.org/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '36d02694d1a7392c58045162cd935adab3e7a244'
|
2010-02-10 13:49:39 +00:00
|
|
|
|
2010-07-09 19:37:42 +00:00
|
|
|
head 'http://svn.tools.ietf.org/svn/tools/xml2rfc/trunk',
|
|
|
|
:using => StrictSubversionDownloadStrategy
|
2010-04-15 07:13:06 +00:00
|
|
|
|
2010-02-10 13:49:39 +00:00
|
|
|
def install
|
|
|
|
%w[xml2rfc xml2sgml].each do |f|
|
2010-04-16 22:11:30 +00:00
|
|
|
bin.install f+'.tcl' => f
|
2010-02-10 13:49:39 +00:00
|
|
|
end
|
2010-04-16 22:11:30 +00:00
|
|
|
|
2010-02-10 13:49:39 +00:00
|
|
|
%w[xml2txt xml2html xml2nroff].each do |f|
|
2010-04-16 22:11:30 +00:00
|
|
|
ln_s "#{bin}/xml2rfc", "#{bin}/#{f}"
|
|
|
|
end
|
|
|
|
|
|
|
|
doc.install Dir["*"]
|
2010-02-10 13:49:39 +00:00
|
|
|
end
|
|
|
|
end
|