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"
|
|
|
|
sha1 "4a2e8bd7c22f13644b234e17c2541c8ffc935c34"
|
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
|