diff options
| author | Tomohiro Nishimura | 2015-02-12 04:47:08 +0900 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-13 11:10:09 +0000 |
| commit | d74cce9ccaa2c7432bb21aaa59ffb5fc9e3ac8d3 (patch) | |
| tree | 3d3792632b8a34901d9fd5b2e2b0ccebfc4ea266 | |
| parent | 5aa2ee2d311383cc88fd100da74bece3583f61ef (diff) | |
| download | homebrew-d74cce9ccaa2c7432bb21aaa59ffb5fc9e3ac8d3.tar.bz2 | |
discount: add with-fenced-code options.
Closes #36746.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/discount.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Library/Formula/discount.rb b/Library/Formula/discount.rb index de15dcde7..f2895941b 100644 --- a/Library/Formula/discount.rb +++ b/Library/Formula/discount.rb @@ -5,14 +5,20 @@ class Discount < Formula url 'http://www.pell.portland.or.us/~orc/Code/discount/discount-2.1.7.tar.bz2' sha1 '517bcf7409d8c02b3e57f51264b2e110f8a03120' + option "with-fenced-code", "Enable Pandoc-style fenced code blocks." + conflicts_with 'markdown', :because => 'both discount and markdown ship a `markdown` executable.' def install - system "./configure.sh", "--prefix=#{prefix}", - "--mandir=#{man}", - "--with-dl=Both", - "--enable-all-features" + args = %W[ + --prefix=#{prefix} + --mandir=#{man} + --with-dl=Both + --enable-all-features + ] + args << "--with-fenced-code" if build.with? "fenced-code" + system "./configure.sh", *args bin.mkpath lib.mkpath include.mkpath |
