Installation Formula for the xmltoman scripts.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Glenn Rempe 2010-07-28 12:45:16 -07:00 committed by Adam Vandenberg
parent 8c5fe8dbaf
commit d24e343042
1 changed files with 18 additions and 0 deletions

18
Formula/xmltoman.rb Normal file
View File

@ -0,0 +1,18 @@
require 'formula'
class Xmltoman <Formula
url 'http://downloads.sourceforge.net/project/xmltoman/xmltoman/xmltoman-0.4.tar.gz/xmltoman-0.4.tar.gz'
homepage 'http://sourceforge.net/projects/xmltoman/'
md5 '99be944b9fce40b3fe397049bf14a097'
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