Skip to content

Commit

Permalink
Trac #16747: Add optional Arb package (arbitrary-precision floating-p…
Browse files Browse the repository at this point in the history
…oint ball arithmetic)

Add Arb [http://fredrikj.net/arb/] as an optional/experimental package.
Source code here:
[https://www.math.aau.at/user/cheuberg/sage/arb-2.3.0.tar.gz]
(This is a renamed version of the original tarball at
[https://github.com/fredrik-johansson/arb/archive/2.3.0.tar.gz], see the
comment by [comment:15 jdemeyer])

URL: http://trac.sagemath.org/16747
Reported by: ktkohl
Ticket author(s): Karen Kohl, Laura Peskin, Clemens Heuberger
Reviewer(s): Jeroen Demeyer
  • Loading branch information
Release Manager authored and vbraun committed Nov 14, 2014
2 parents 1e4c7a6 + ec0aae9 commit 1e39935
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
29 changes: 29 additions & 0 deletions build/pkgs/arb/SPKG.txt
@@ -0,0 +1,29 @@
= arb =

== Description ==

Arb is a C library for arbitrary-precision floating-point ball
arithmetic, developed by Fredrik Johansson
(fredrik.johansson@gmail.com). It supports efficient high-precision
computation with polynomials, power series, matrices and special
functions over the real and complex numbers, with automatic, rigorous
error control.

== License ==

GNU General Public License v2+


== Upstream Contact ==

* Fredrik Johansson: fredrik.johansson@gmail.com


== Dependencies ==

* FLINT
* MPIR or GMP
* MPFR

== Special Update/Build Instructions ==

4 changes: 4 additions & 0 deletions build/pkgs/arb/checksums.ini
@@ -0,0 +1,4 @@
tarball=arb-VERSION.tar.gz
sha1=e96a54950b88e762fc80ab5eb88b2273aaf79be1
md5=4a98e6aaa1108adfc5a46f1f64be0ec1
cksum=1828799562
2 changes: 2 additions & 0 deletions build/pkgs/arb/package-version.txt
@@ -0,0 +1,2 @@
2.3.0

4 changes: 4 additions & 0 deletions build/pkgs/arb/spkg-check
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd src
$MAKE check
22 changes: 22 additions & 0 deletions build/pkgs/arb/spkg-install
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

cd src

./configure --prefix="$SAGE_LOCAL" --with-flint="$SAGE_LOCAL" \
--with-gmp="$SAGE_LOCAL" --with-mpfr="$SAGE_LOCAL"
if [ $? -ne 0 ]; then
echo >&2 "Error configuring arb."
exit 1
fi

$MAKE
if [ $? -ne 0 ]; then
echo >&2 "Error building arb."
exit 1
fi

$MAKE install
if [ $? -ne 0 ]; then
echo >&2 "Error installing arb."
exit 1
fi

0 comments on commit 1e39935

Please sign in to comment.