Skip to content

Commit

Permalink
halibut 1.0
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#25828.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
  • Loading branch information
kberg authored and mistydemeo committed Jan 12, 2014
1 parent d877217 commit bb18c46
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions 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

0 comments on commit bb18c46

Please sign in to comment.