2010-02-12 19:14:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Botan < Formula
|
2010-02-12 19:14:45 +00:00
|
|
|
homepage 'http://botan.randombit.net/'
|
2012-02-15 05:25:01 +00:00
|
|
|
url 'http://files.randombit.net/botan/v1.10/Botan-1.10.1.tbz'
|
2011-07-21 02:55:02 +00:00
|
|
|
md5 '7ae93e205491a8e75115bfca983ff7f9'
|
2010-02-12 19:14:45 +00:00
|
|
|
|
2012-02-15 05:25:01 +00:00
|
|
|
def options
|
|
|
|
[['--enable-debug', "Enable debug build of Botan"]]
|
|
|
|
end
|
|
|
|
|
2010-02-12 19:14:45 +00:00
|
|
|
def install
|
2011-09-02 20:44:15 +00:00
|
|
|
args = ["--prefix=#{prefix}"]
|
|
|
|
args << "--cpu=x86_64" if MacOS.prefer_64_bit?
|
2012-02-15 05:25:01 +00:00
|
|
|
args << "--enable-debug" if ARGV.include? "--enable-debug"
|
2011-09-02 20:44:15 +00:00
|
|
|
|
|
|
|
system "./configure.py", *args
|
2010-02-12 19:14:45 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|