1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages multiprecision)
20 #:use-module (guix licenses)
21 #:use-module (gnu packages)
22 #:use-module (gnu packages m4)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu))
34 (string-append "mirror://gnu/gmp/gmp-"
38 "0wbhn3wih61vjcs94q531fipfvvzqfq2v4qr03rl3xaggyiyvqny"))))
39 (build-system gnu-build-system)
40 (native-inputs `(("m4" ,m4)))
41 (outputs '("out" "debug"))
42 (arguments `(#:configure-flags
43 '(;; Build a "fat binary", with routines for several
47 (synopsis "Multiple-precision arithmetic library")
49 "GMP is a library for arbitrary precision arithmetic, operating on
50 signed integers, rational numbers and floating point numbers. The precision
51 is only limited by the available memory. The library is highly optimized,
52 with a design focus on execution speed. It is aimed at use in, for example,
53 cryptography and computational algebra.")
55 (home-page "http://gmplib.org/")))
63 (uri (string-append "mirror://gnu/mpfr/mpfr-" version
66 "0fs501qi8l523gs3cpy4jjcnvwxggyfbklcys80wq236xx3hz79r"))))
67 (build-system gnu-build-system)
68 (outputs '("out" "debug"))
69 (propagated-inputs `(("gmp" ,gmp))) ; <mpfr.h> refers to <gmp.h>
70 (synopsis "C library for arbitrary precision floating-point arithmetic")
72 "MPFR is a C library for performing multiple-precision, floating-point
73 computations with correct rounding.")
75 (home-page "http://www.mpfr.org/")))
84 "mirror://gnu/mpc/mpc-" version ".tar.gz"))
86 "1zq0fidp1jii2j5k5n9hmx55a6wwid33gjzhimvxq9d5zrf82npd"))))
87 (build-system gnu-build-system)
88 (outputs '("out" "debug"))
89 (propagated-inputs `(("gmp" ,gmp) ; <mpc.h> refers to both
91 (synopsis "C library for arbitrary precision complex arithmetic")
93 "GNU MPC is a C library for performing arithmetic on complex numbers.
94 It supports arbitrarily high precision and it correctly rounds the results.")
96 (home-page "http://mpc.multiprecision.org/")))