diff options
| author | Nicola Tuveri | 2011-11-19 14:16:14 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-20 19:36:37 -0800 |
| commit | 3c2785cd3c555f5df5372badf1c764460f169cb5 (patch) | |
| tree | 21f0e9742c00f738e8f8619d9eb53d9eb7b21276 /Library | |
| parent | 1b2325798af589167f89c0df503da7d4cd46f183 (diff) | |
| download | homebrew-3c2785cd3c555f5df5372badf1c764460f169cb5.tar.bz2 | |
Tidyp: add manpage
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tidyp.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/tidyp.rb b/Library/Formula/tidyp.rb index bc879dd80..d1bd99f5a 100644 --- a/Library/Formula/tidyp.rb +++ b/Library/Formula/tidyp.rb @@ -1,5 +1,10 @@ require 'formula' +class TidypManual < Formula + url "https://github.com/petdance/tidyp/raw/6a6c85bc9cb089e343337377f76127d01dd39a1c/htmldoc/tidyp1.xsl" + md5 "5f90f914e69bdff1663a6772c6d9ca3d" +end + class Tidyp < Formula url 'http://github.com/downloads/petdance/tidyp/tidyp-1.04.tar.gz' homepage 'http://tidyp.com/' @@ -9,5 +14,13 @@ class Tidyp < Formula 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 + system "#{bin}/tidyp -xml-help > tidyp1.xml" + system "#{bin}/tidyp -xml-config > tidyp-config.xml" + system "/usr/bin/xsltproc tidyp1.xsl tidyp1.xml |/usr/bin/gzip >tidyp.1.gz" + man1.install 'tidyp.1.gz' + end end end |
