aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/discount.rb14
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