2010-01-15 03:55:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Discount < Formula
|
2011-08-26 23:38:42 +00:00
|
|
|
homepage 'http://www.pell.portland.or.us/~orc/Code/discount/'
|
2013-03-29 16:11:13 +00:00
|
|
|
url 'http://www.pell.portland.or.us/~orc/Code/discount/discount-2.1.6.tar.bz2'
|
|
|
|
sha1 'a7461731613d0e2f88dd19af9feb860c191e8234'
|
2013-03-29 01:03:20 +00:00
|
|
|
|
2013-03-29 16:11:13 +00:00
|
|
|
version 'v2.1.6'
|
2010-01-15 03:55:50 +00:00
|
|
|
|
2012-12-28 00:09:13 +00:00
|
|
|
conflicts_with 'markdown',
|
|
|
|
:because => 'both discount and markdown ship a `markdown` executable.'
|
|
|
|
|
2010-01-15 03:55:50 +00:00
|
|
|
def install
|
2012-08-06 21:05:16 +00:00
|
|
|
system "./configure.sh", "--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--with-dl=Both",
|
|
|
|
"--enable-all-features"
|
2012-02-22 04:48:36 +00:00
|
|
|
bin.mkpath
|
|
|
|
lib.mkpath
|
|
|
|
include.mkpath
|
2010-02-03 12:40:24 +00:00
|
|
|
system "make install.everything"
|
2010-01-15 03:55:50 +00:00
|
|
|
end
|
|
|
|
end
|