2011-05-24 23:03:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Multimarkdown < Formula
|
|
|
|
homepage 'http://fletcherpenney.net/multimarkdown/'
|
2012-06-15 22:50:01 +00:00
|
|
|
|
|
|
|
# Use the tag instead of the tarball to get submodules
|
2012-06-06 08:46:19 +00:00
|
|
|
url 'https://github.com/fletcher/peg-multimarkdown.git', :tag => '3.6'
|
2012-06-07 02:52:01 +00:00
|
|
|
version '3.6'
|
2012-06-06 08:46:19 +00:00
|
|
|
|
2011-06-22 09:06:01 +00:00
|
|
|
head 'https://github.com/fletcher/peg-multimarkdown.git', :branch => 'development'
|
2011-05-24 23:03:14 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-31 14:28:37 +00:00
|
|
|
# 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}"
|
2011-05-24 23:03:14 +00:00
|
|
|
bin.install 'multimarkdown'
|
2011-06-22 09:06:01 +00:00
|
|
|
bin.install Dir['scripts/*']
|
2012-05-31 14:28:37 +00:00
|
|
|
# The support stuff will be put into the Cellar only
|
2012-11-11 19:20:09 +00:00
|
|
|
prefix.install 'Support'
|
2012-05-31 14:28:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Support files have been installed to:
|
|
|
|
#{prefix}/Support
|
|
|
|
EOS
|
2011-05-24 23:03:14 +00:00
|
|
|
end
|
|
|
|
end
|