homebrew-core/Formula/multimarkdown.rb
Shaun Jackman 4604871d3b multimarkdown 4.5.3
Closes Homebrew/homebrew#32216.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-09-10 13:06:36 -05:00

27 lines
774 B
Ruby

require 'formula'
class Multimarkdown < Formula
homepage 'http://fletcherpenney.net/multimarkdown/'
head 'https://github.com/fletcher/MultiMarkdown-4.git', :branch => 'master'
# Use git tag instead of the tarball to get submodules
url 'https://github.com/fletcher/MultiMarkdown-4.git', :tag => '4.5.3'
conflicts_with 'mtools', :because => 'both install `mmd` binaries'
def install
ENV.append 'CFLAGS', '-g -O3 -include GLibFacade.h'
system "make"
bin.install 'multimarkdown', Dir['scripts/*']
prefix.install 'Support'
end
def caveats; <<-EOS.undent
Support files have been installed to:
#{opt_prefix}/Support
EOS
end
test do
assert_equal "<p>foo <em>bar</em></p>\n", pipe_output(bin/"mmd", "foo *bar*\n")
end
end