From d74cce9ccaa2c7432bb21aaa59ffb5fc9e3ac8d3 Mon Sep 17 00:00:00 2001 From: Tomohiro Nishimura Date: Thu, 12 Feb 2015 04:47:08 +0900 Subject: discount: add with-fenced-code options. Closes #36746. Signed-off-by: Mike McQuaid --- Library/Formula/discount.rb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3