diff options
| author | samueljohn | 2012-05-31 16:28:37 +0200 |
|---|---|---|
| committer | Jack Nagel | 2012-06-15 17:46:37 -0500 |
| commit | 5727ce9242904011bb9efe594b033af0e737cb7c (patch) | |
| tree | 893a9526e0950ab9ab708c7d9d4c8cac3d6cdba9 /Library | |
| parent | 8b927b7f282ab317ea34221e63bd77d0aad35ef3 (diff) | |
| download | homebrew-5727ce9242904011bb9efe594b033af0e737cb7c.tar.bz2 | |
multimarkdown: Install scripts, support and set CFLAGS
- The executables (scripts) "mmd" and so on are installed correctly now.
- The CFLAGS and CC are needed in order to allow installation of Xcode
without CLT.
- Support files go into the cellar
Closes #12704.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/multimarkdown.rb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Library/Formula/multimarkdown.rb b/Library/Formula/multimarkdown.rb index 55902661d..734e60654 100644 --- a/Library/Formula/multimarkdown.rb +++ b/Library/Formula/multimarkdown.rb @@ -9,10 +9,20 @@ class Multimarkdown < Formula head 'https://github.com/fletcher/peg-multimarkdown.git', :branch => 'development' def install - ENV.append 'CFLAGS', '-include GLibFacade.h' - system "make" + # 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['Support/bin/*'] 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 |
