18 lines
669 B
Ruby
18 lines
669 B
Ruby
class Xmltoman < Formula
|
|
desc "XML to manpage converter"
|
|
homepage "http://sourceforge.net/projects/xmltoman/"
|
|
url "https://downloads.sourceforge.net/project/xmltoman/xmltoman/xmltoman-0.4.tar.gz/xmltoman-0.4.tar.gz"
|
|
sha256 "948794a316aaecd13add60e17e476beae86644d066cb60171fc6b779f2df14b0"
|
|
|
|
def install
|
|
# generate the man files from their original XML sources
|
|
system "./xmltoman xml/xmltoman.1.xml > xmltoman.1"
|
|
system "./xmltoman xml/xmlmantohtml.1.xml > xmlmantohtml.1"
|
|
|
|
man1.install %w[xmltoman.1 xmlmantohtml.1]
|
|
bin.install %w[xmltoman xmlmantohtml]
|
|
(share+"xmltoman").install %w[xmltoman.xsl xmltoman.dtd xmltoman.css]
|
|
end
|
|
end
|
|
|