homebrew-core/Formula/cmark.rb
Zhiming Wang 5f82271f11
cmark 0.27.0
Closes #7061.

Signed-off-by: William Woodruff <william@tuffbizz.com>
2016-11-18 17:16:22 -05:00

31 lines
1 KiB
Ruby

class Cmark < Formula
desc "Strongly specified, highly compatible implementation of Markdown"
homepage "http://commonmark.org"
url "https://github.com/jgm/cmark/archive/0.27.0.tar.gz"
sha256 "eef467511aeee6f2bfc20ddf0d3e878d38e7dc5ac232f038e53b9f33e05243d1"
bottle do
cellar :any
sha256 "98a7a59ab704bd4f73ea13aab5e5e728c536657c115fd6fa5074f081f739fb55" => :sierra
sha256 "5df622e01450936300ed1d69eded3bd6ecd3b5bab4b57c7c8ee87822b41fa28d" => :el_capitan
sha256 "ed3b5eb6d3a5c55bb3c1c75848a8439db6a30de7322db0c12075e218aaef25cb" => :yosemite
sha256 "4797178f1c1360fc53a115d6760b5d677707204ae588fa848ce869d58ae35bf4" => :mavericks
end
depends_on "cmake" => :build
depends_on :python3 => :build
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make"
system "make", "test"
system "make", "install"
end
end
test do
output = pipe_output("#{bin}/cmark", "*hello, world*")
assert_equal "<p><em>hello, world</em></p>", output.chomp
end
end