homebrew-core/Formula/halibut.rb
2019-11-02 20:28:17 +09:00

29 lines
1.1 KiB
Ruby

class Halibut < Formula
desc "Yet another free document preparation system"
homepage "https://www.chiark.greenend.org.uk/~sgtatham/halibut/"
url "https://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-1.2/halibut-1.2.tar.gz"
sha256 "1aedfb6240f27190c36a390fcac9ce732edbdbaa31c85ee675b994e2b083163f"
head "https://git.tartarus.org/simon/halibut.git"
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "e9bd74c1ab130f4abc824906bf1f73f910032a4c7c0938798f7fbab2f1346020" => :catalina
sha256 "05f0236c180aeab690979615812fb72642e7cdeaccb35ebb865a53aadb35e7c6" => :mojave
sha256 "fe74b9670ae0d996a17de4a70a140365d057a83a643125dcbd16b33dacad9f6a" => :high_sierra
end
def install
system "make", "prefix=#{prefix}", "mandir=#{man}", "all"
system "make", "-C", "doc", "prefix=#{prefix}", "mandir=#{man}"
system "make", "prefix=#{prefix}", "mandir=#{man}", "install"
end
test do
(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