2011-03-10 05:11:03 +00:00
|
|
|
class Discount < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "C implementation of Markdown"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.pell.portland.or.us/~orc/Code/discount/"
|
|
|
|
url "http://www.pell.portland.or.us/~orc/Code/discount/discount-2.1.8a.tar.bz2"
|
|
|
|
sha256 "c01502f4eedba8163dcd30c613ba5ee238a068f75291be127856261727e03526"
|
2013-03-29 01:03:20 +00:00
|
|
|
|
2015-02-13 06:55:04 +00:00
|
|
|
bottle do
|
2015-10-09 19:34:56 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 1
|
|
|
|
sha256 "51e475aa60c7f7d5125c96adc93cc00e7fce51fd21cd7eb9db6ad2e37def14d1" => :el_capitan
|
|
|
|
sha256 "2b55cb2a180d431fcfc0d261cb852495d694e12720a845b7f38a356abd4dd809" => :yosemite
|
|
|
|
sha256 "360be54b555218063b73b74a4530c8b573a4d2779dcc2e225816070e63e161b5" => :mavericks
|
2015-02-13 06:55:04 +00:00
|
|
|
end
|
|
|
|
|
2015-02-11 19:47:08 +00:00
|
|
|
option "with-fenced-code", "Enable Pandoc-style fenced code blocks."
|
|
|
|
|
2015-08-04 20:33:19 +00:00
|
|
|
conflicts_with "markdown", :because => "both install `markdown` binaries"
|
|
|
|
conflicts_with "multimarkdown", :because => "both install `markdown` binaries"
|
2012-12-28 00:09:13 +00:00
|
|
|
|
2010-01-15 03:55:50 +00:00
|
|
|
def install
|
2015-02-11 19:47:08 +00:00
|
|
|
args = %W[
|
2015-08-03 12:55:31 +00:00
|
|
|
--prefix=#{prefix}
|
|
|
|
--mandir=#{man}
|
|
|
|
--with-dl=Both
|
|
|
|
--enable-all-features
|
2015-02-11 19:47:08 +00:00
|
|
|
]
|
|
|
|
args << "--with-fenced-code" if build.with? "fenced-code"
|
|
|
|
system "./configure.sh", *args
|
2012-02-22 04:48:36 +00:00
|
|
|
bin.mkpath
|
|
|
|
lib.mkpath
|
|
|
|
include.mkpath
|
2015-10-05 13:16:20 +00:00
|
|
|
system "make", "install.everything"
|
2010-01-15 03:55:50 +00:00
|
|
|
end
|
|
|
|
end
|