2010-07-28 19:45:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xmltoman < Formula
|
2010-07-28 19:45:16 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/xmltoman/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/xmltoman/xmltoman/xmltoman-0.4.tar.gz/xmltoman-0.4.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '151f75d78d1fa53bca25b94dc00e46a27fabfee8'
|
2010-07-28 19:45:16 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|