libmpc@0.8: remove
parent
2cdf909120
commit
9a3d719f39
|
@ -1 +0,0 @@
|
|||
../Formula/libmpc.rb
|
|
@ -1,58 +0,0 @@
|
|||
class LibmpcAT08 < Formula
|
||||
desc "C library for high precision complex numbers"
|
||||
homepage "http://multiprecision.org/"
|
||||
# Track gcc infrastructure releases.
|
||||
url "https://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz"
|
||||
mirror "http://multiprecision.org/mpc/download/mpc-0.8.1.tar.gz"
|
||||
sha256 "e664603757251fd8a352848276497a4c79b7f8b21fd8aedd5cc0598a38fee3e4"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
rebuild 1
|
||||
sha256 "ced8b2a4c5fb242726bd6253e0b56dd263fe0ca227162c2e86250c9d5bb98904" => :high_sierra
|
||||
sha256 "d085ef6e78f5f69dedcdcc20920b11bba3882dbc15d9720d6dd58e9ee232197a" => :sierra
|
||||
sha256 "99bf66edb09b4bb9f8c9595c1c578b9cdc6d5db7b652fe7d2d2fe85128470e3e" => :el_capitan
|
||||
sha256 "64bffe51a7eb97a8053cf6a9cf8e13c4f337c2ed85bc7aa8bf08e67c5dc88906" => :yosemite
|
||||
end
|
||||
|
||||
keg_only :versioned_formula
|
||||
|
||||
depends_on "gmp@4"
|
||||
depends_on "mpfr@2"
|
||||
|
||||
def install
|
||||
args = [
|
||||
"--prefix=#{prefix}",
|
||||
"--disable-dependency-tracking",
|
||||
"--with-gmp=#{Formula["gmp@4"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr@2"].opt_prefix}",
|
||||
]
|
||||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
system "make", "check"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<~EOS
|
||||
#include <mpc.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
mpc_t x;
|
||||
mpc_init2 (x, 256);
|
||||
mpc_clear (x);
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
gmp = Formula["gmp@4"]
|
||||
mpfr = Formula["mpfr@2"]
|
||||
system ENV.cc, "test.c",
|
||||
"-I#{gmp.include}", "-L#{gmp.lib}", "-lgmp",
|
||||
"-I#{mpfr.include}", "-L#{mpfr.lib}", "-lmpfr",
|
||||
"-I#{include}", "-L#{lib}", "-lmpc",
|
||||
"-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue