2010-04-20 20:52:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libmpc < Formula
|
|
|
|
homepage 'http://multiprecision.org'
|
2014-05-12 11:09:37 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/mpc/mpc-1.0.2.tar.gz'
|
|
|
|
mirror 'http://multiprecision.org/mpc/download/mpc-1.0.2.tar.gz'
|
|
|
|
sha1 '5072d82ab50ec36cc8c0e320b5c377adb48abe70'
|
2010-04-20 20:52:06 +00:00
|
|
|
|
2013-03-25 23:26:58 +00:00
|
|
|
bottle do
|
2013-12-05 05:01:39 +00:00
|
|
|
cellar :any
|
2014-10-19 22:28:12 +00:00
|
|
|
revision 2
|
|
|
|
sha1 "656a38feba0a27261f7e71060449731f3e18f7ee" => :yosemite
|
|
|
|
sha1 "0f02ce11ca69a24e02e2abd08b01b48192cdac59" => :mavericks
|
2013-03-25 23:26:58 +00:00
|
|
|
end
|
|
|
|
|
2010-04-26 07:03:46 +00:00
|
|
|
depends_on 'gmp'
|
|
|
|
depends_on 'mpfr'
|
|
|
|
|
2010-04-20 20:52:06 +00:00
|
|
|
def install
|
2013-01-22 02:29:55 +00:00
|
|
|
args = [
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-dependency-tracking",
|
2014-02-26 04:54:34 +00:00
|
|
|
"--with-gmp=#{Formula["gmp"].opt_prefix}",
|
|
|
|
"--with-mpfr=#{Formula["mpfr"].opt_prefix}"
|
2013-01-22 02:29:55 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-04-20 20:52:06 +00:00
|
|
|
system "make"
|
2012-05-08 03:19:31 +00:00
|
|
|
system "make check"
|
2010-04-20 20:52:06 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|