homebrew-core/Formula/tidyp.rb

27 lines
865 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Tidyp < Formula
homepage 'http://tidyp.com/'
2013-01-28 03:21:50 +00:00
url 'https://github.com/downloads/petdance/tidyp/tidyp-1.04.tar.gz'
sha1 '5d9050512259c3a67a2f48469555932e3a7b8bd0'
2013-08-07 04:34:27 +00:00
resource 'manual' do
url "https://github.com/petdance/tidyp/raw/6a6c85bc9cb089e343337377f76127d01dd39a1c/htmldoc/tidyp1.xsl"
sha1 'db6b733bb8e341eb806bc7487faee69eb429a68d'
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
2013-08-07 04:34:27 +00:00
# Use the newly brewed tidyp to generate the manual
resource('manual').stage do
system "#{bin}/tidyp -xml-help > tidyp1.xml"
system "#{bin}/tidyp -xml-config > tidyp-config.xml"
2013-06-12 18:30:54 +00:00
system "/usr/bin/xsltproc tidyp1.xsl tidyp1.xml > tidyp.1"
man1.install gzip('tidyp.1')
end
end
end