19 lines
591 B
Ruby
19 lines
591 B
Ruby
class Hoedown < Formula
|
|
desc "Secure Markdown processing (a revived fork of Sundown)"
|
|
homepage "https://github.com/hoedown/hoedown"
|
|
url "https://github.com/hoedown/hoedown/archive/3.0.1.tar.gz"
|
|
sha1 "4a2e8bd7c22f13644b234e17c2541c8ffc935c34"
|
|
|
|
def install
|
|
system "make", "hoedown"
|
|
bin.install "hoedown"
|
|
prefix.install "test"
|
|
end
|
|
|
|
test do
|
|
system "perl", "#{prefix}/test/MarkdownTest_1.0.3/MarkdownTest.pl",
|
|
"--script=#{bin}/hoedown",
|
|
"--testdir=#{prefix}/test/MarkdownTest_1.0.3/Tests",
|
|
"--tidy"
|
|
end
|
|
end
|