37 lines
1.3 KiB
Ruby
37 lines
1.3 KiB
Ruby
class Multimarkdown < Formula
|
|
desc "Turn marked-up plain text into well-formatted documents"
|
|
homepage "https://fletcher.github.io/MultiMarkdown-6/"
|
|
url "https://github.com/fletcher/MultiMarkdown-6/archive/6.2.2.tar.gz"
|
|
sha256 "48a7405c524eda7d47c66ed1f61aece142ce91ee35417f9d960587bb9f726b7c"
|
|
head "https://github.com/fletcher/MultiMarkdown-6.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "ce412d4e0fac6e323ee1116286616e220e9b387cc22f3a0f1ccabb5e6da91257" => :high_sierra
|
|
sha256 "ce412d4e0fac6e323ee1116286616e220e9b387cc22f3a0f1ccabb5e6da91257" => :sierra
|
|
sha256 "25a7bbf52267afc1d94daca3a0ab560b035931663182eac8ae46ebfd2a6807bc" => :el_capitan
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
conflicts_with "mtools", :because => "both install `mmd` binaries"
|
|
conflicts_with "markdown", :because => "both install `markdown` binaries"
|
|
conflicts_with "discount", :because => "both install `markdown` binaries"
|
|
|
|
def install
|
|
system "make", "release"
|
|
|
|
cd "build" do
|
|
system "make"
|
|
bin.install "multimarkdown"
|
|
end
|
|
|
|
bin.install Dir["scripts/*"].reject { |f| f =~ /\.bat$/ }
|
|
end
|
|
|
|
test do
|
|
assert_equal "<p>foo <em>bar</em></p>\n", pipe_output(bin/"multimarkdown", "foo *bar*\n")
|
|
assert_equal "<p>foo <em>bar</em></p>\n", pipe_output(bin/"mmd", "foo *bar*\n")
|
|
end
|
|
end
|