diff options
| author | Adam Vandenberg | 2013-08-06 21:34:27 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-11 22:05:35 -0700 |
| commit | 77d92ce060e072462a6569047ef77bac7429dfa4 (patch) | |
| tree | a873fab858f9c1d2bf8a1944f2ef784f68a2515f /Library/Formula | |
| parent | 1770b01f3e0bdfecd73d2983f111dca6103703af (diff) | |
| download | homebrew-77d92ce060e072462a6569047ef77bac7429dfa4.tar.bz2 | |
tidyp: use resource
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tidyp.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/tidyp.rb b/Library/Formula/tidyp.rb index 4dbf029a6..3f3b35ce2 100644 --- a/Library/Formula/tidyp.rb +++ b/Library/Formula/tidyp.rb @@ -1,22 +1,22 @@ require 'formula' -class TidypManual < Formula - url "https://github.com/petdance/tidyp/raw/6a6c85bc9cb089e343337377f76127d01dd39a1c/htmldoc/tidyp1.xsl" - sha1 'db6b733bb8e341eb806bc7487faee69eb429a68d' -end - class Tidyp < Formula homepage 'http://tidyp.com/' url 'https://github.com/downloads/petdance/tidyp/tidyp-1.04.tar.gz' sha1 '5d9050512259c3a67a2f48469555932e3a7b8bd0' + 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" - # Use the newly brewed Tidyp to generate the manual - TidypManual.new.brew do + # 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" system "/usr/bin/xsltproc tidyp1.xsl tidyp1.xml > tidyp.1" |
