2010-06-21 04:14:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cln < Formula
|
2010-06-21 04:14:49 +00:00
|
|
|
homepage 'http://www.ginac.de/CLN/'
|
2013-12-15 20:04:18 +00:00
|
|
|
url 'http://www.ginac.de/CLN/cln-1.3.3.tar.bz2'
|
|
|
|
sha1 '11c56780eb83ed54f2ad1ecef7f0dc0f609c426d'
|
2010-06-21 04:14:49 +00:00
|
|
|
|
2014-07-03 17:36:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "54f11e2ffe58d465e7ae7740a607f38169e99d32" => :mavericks
|
|
|
|
sha1 "657f0060d774be90d2a88ebc480a20b6043e7c67" => :mountain_lion
|
|
|
|
sha1 "3c4a67e6672596a0a9881fb23b7aa3c9eb2c673f" => :lion
|
|
|
|
end
|
|
|
|
|
2013-12-15 21:19:39 +00:00
|
|
|
depends_on 'gmp'
|
|
|
|
|
|
|
|
# Patch for Clang from MacPorts
|
2014-03-17 00:35:06 +00:00
|
|
|
patch do
|
|
|
|
url "https://trac.macports.org/export/114806/trunk/dports/math/cln/files/patch-clang.diff"
|
|
|
|
sha1 "0e95e34b7b821fe8ddfc04c099cf5b9d72fc9093"
|
2013-12-15 21:19:39 +00:00
|
|
|
end
|
2010-06-21 04:14:49 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--with-gmp=#{HOMEBREW_PREFIX}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|