homebrew-core/Formula/hoedown.rb

20 lines
617 B
Ruby
Raw Normal View History

class Hoedown < Formula
desc "Secure Markdown processing (a revived fork of Sundown)"
2015-01-11 17:43:08 +00:00
homepage "https://github.com/hoedown/hoedown"
url "https://github.com/hoedown/hoedown/archive/3.0.1.tar.gz"
sha256 "388e1658fa1538c58b22efe67a64104922cba81afa0387c58118e239e3ca01b4"
def install
2015-01-11 17:43:08 +00:00
system "make", "hoedown"
bin.install "hoedown"
prefix.install "test"
end
test do
2015-01-11 17:43:08 +00:00
system "perl", "#{prefix}/test/MarkdownTest_1.0.3/MarkdownTest.pl",
"--script=#{bin}/hoedown",
"--testdir=#{prefix}/test/MarkdownTest_1.0.3/Tests",
2015-01-11 17:43:08 +00:00
"--tidy"
end
end