233ab648fb
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
29 lines
882 B
Ruby
29 lines
882 B
Ruby
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'
|
|
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
|
|
prefix.install Dir['Support']
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Support files have been installed to:
|
|
#{prefix}/Support
|
|
EOS
|
|
end
|
|
end
|