2013-12-16 14:16:56 +00:00
|
|
|
class Hoedown < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
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"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "388e1658fa1538c58b22efe67a64104922cba81afa0387c58118e239e3ca01b4"
|
2013-12-16 14:16:56 +00:00
|
|
|
|
|
|
|
def install
|
2015-01-11 17:43:08 +00:00
|
|
|
system "make", "hoedown"
|
|
|
|
bin.install "hoedown"
|
|
|
|
prefix.install "test"
|
2013-12-16 14:16:56 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-01-11 17:43:08 +00:00
|
|
|
system "perl", "#{prefix}/test/MarkdownTest_1.0.3/MarkdownTest.pl",
|
2013-12-16 14:16:56 +00:00
|
|
|
"--script=#{bin}/hoedown",
|
|
|
|
"--testdir=#{prefix}/test/MarkdownTest_1.0.3/Tests",
|
2015-01-11 17:43:08 +00:00
|
|
|
"--tidy"
|
2013-12-16 14:16:56 +00:00
|
|
|
end
|
|
|
|
end
|