homebrew-core/Formula/multimarkdown.rb
2020-01-12 11:37:43 +01:00

36 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.5.1.tar.gz"
sha256 "e8710777566d7710100b44e829a15d0ec2fce20271477aebea7caac319e1b20f"
head "https://github.com/fletcher/MultiMarkdown-6.git"
bottle do
cellar :any_skip_relocation
sha256 "aa4b46bc273d2afeb082a8a3d81cfdcebbdae947bca417962d2cb5cf0debc42f" => :catalina
sha256 "aa4b46bc273d2afeb082a8a3d81cfdcebbdae947bca417962d2cb5cf0debc42f" => :mojave
sha256 "1e2a03d1dc7bc2b14f7b051480c20f9692e67bfe05b3313f518fc27f344f858b" => :high_sierra
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