2010-04-20 20:52:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libmpc < Formula
|
|
|
|
homepage 'http://multiprecision.org'
|
2012-09-07 01:24:26 +00:00
|
|
|
url 'http://multiprecision.org/mpc/download/mpc-1.0.1.tar.gz'
|
|
|
|
sha1 '8c7e19ad0dd9b3b5cc652273403423d6cf0c5edf'
|
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
|
|
|
|
revision 1
|
|
|
|
sha1 '491bd8e7535792094846c22c97284c9a9d77eb11' => :mavericks
|
|
|
|
sha1 '129f7b22a326fa10d6ded3aa1059aa4c0b31b673' => :mountain_lion
|
|
|
|
sha1 '533355b4698b5964cad3bca1268a913c5a9a76b2' => :lion
|
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",
|
|
|
|
"--with-gmp=#{Formula.factory('gmp').opt_prefix}",
|
|
|
|
"--with-mpfr=#{Formula.factory('mpfr').opt_prefix}"
|
|
|
|
]
|
|
|
|
|
|
|
|
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
|