diff options
| author | Robert Konigsberg | 2014-01-11 23:43:57 -0500 |
|---|---|---|
| committer | Misty De Meo | 2014-01-12 15:14:06 -0800 |
| commit | 588818d8470ad90bb97c79f8b45b08cd88878bea (patch) | |
| tree | 7b7698a92be276244cf86f9918f9b59ecaf060cb /Library/Formula | |
| parent | 4489dca8592a844755bf2031d9e5c60bb404f515 (diff) | |
| download | homebrew-588818d8470ad90bb97c79f8b45b08cd88878bea.tar.bz2 | |
halibut 1.0
Closes #25828.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/halibut.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/halibut.rb b/Library/Formula/halibut.rb new file mode 100644 index 000000000..7b7b5d601 --- /dev/null +++ b/Library/Formula/halibut.rb @@ -0,0 +1,29 @@ +require 'formula' + +class Halibut < Formula + homepage 'http://www.chiark.greenend.org.uk/~sgtatham/halibut/' + url 'http://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-1.0.tar.gz' + sha1 '1e4643faf2bb4e1843740b8c70635d3d33bb7989' + + def install + bin.mkpath + man1.mkpath + + system "make", "prefix=#{prefix}", "mandir=#{man}", "all" + cd "doc" do + system "make", "prefix=#{prefix}", "mandir=#{man}" + end + system "make", "prefix=#{prefix}", "mandir=#{man}", "install" + end + + test do + # Initial sanity test + system "#{bin}/halibut", "--version" + + # Test converting to HTML. + (testpath/'sample.but').write('Hello, world!') + system "#{bin}/halibut", "--html=sample.html", "sample.but" + + assert_match /<p>\nHello, world!\n<\/p>/, (testpath/'sample.html').read() + end +end |
