homebrew-core/Formula/cln.rb

33 lines
991 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Cln < Formula
2015-11-07 05:03:11 +00:00
desc "Class Library for Numbers"
homepage "http://www.ginac.de/CLN/"
2014-10-23 13:58:35 +00:00
url "http://www.ginac.de/CLN/cln-1.3.4.tar.bz2"
sha256 "2d99d7c433fb60db1e28299298a98354339bdc120d31bb9a862cafc5210ab748"
2014-07-03 17:36:37 +00:00
bottle do
cellar :any
2015-11-07 05:47:50 +00:00
revision 1
sha256 "b816f165673f58fb952669c7fa542b2fe52257e6572853785efee0048ea35d6a" => :el_capitan
sha256 "95e74408a4b9dca4e7a939d2ff79e9ab16f3193622027d3d741eb6fc9cc7695d" => :yosemite
sha256 "048947d9343c8848897be272cae74d98cd869fa3d64fa6f2bfe82cb68ca100b9" => :mavericks
2014-07-03 17:36:37 +00:00
end
2015-12-07 21:25:48 +00:00
option "without-test", "Skip compile-time checks (Not recommended)"
deprecated_option "without-check" => "without-test"
2015-11-07 05:03:11 +00:00
depends_on "gmp"
2013-12-15 21:19:39 +00:00
def install
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking"
2015-11-07 05:03:11 +00:00
system "make"
2015-12-07 21:25:48 +00:00
system "make", "check" if build.with? "test"
system "make", "install"
end
2015-11-07 05:03:11 +00:00
test do
assert_match "3.14159", shell_output("#{bin}/pi 6")
end
end