homebrew-core/Formula/multimarkdown.rb

30 lines
877 B
Ruby
Raw Normal View History

require 'formula'
class Multimarkdown < Formula
homepage 'http://fletcherpenney.net/multimarkdown/'
# Use the tag instead of the tarball to get submodules
url 'https://github.com/fletcher/peg-multimarkdown.git', :tag => '3.6'
2012-06-07 02:52:01 +00:00
version '3.6'
head 'https://github.com/fletcher/peg-multimarkdown.git', :branch => 'development'
def install
# Since we want to use our CFLAGS, we need to add the following:
ENV.append_to_cflags '-include GLibFacade.h'
ENV.append_to_cflags '-D MD_USE_GET_OPT=1'
ENV.append_to_cflags '-I..'
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
bin.install 'multimarkdown'
bin.install Dir['scripts/*']
# The support stuff will be put into the Cellar only
2012-11-11 19:20:09 +00:00
prefix.install 'Support'
end
def caveats; <<-EOS.undent
Support files have been installed to:
#{prefix}/Support
EOS
end
end