1 |
commit: 9f74757ef0d4150ba7607e041201524b1f42a173 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 24 21:02:49 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 25 19:44:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f74757e |
7 |
|
8 |
sci-mathematics/arb: initial import, with help from sage-on-gentoo overlay |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
sci-mathematics/arb/Manifest | 1 + |
13 |
sci-mathematics/arb/arb-2.11.1.ebuild | 55 +++++++++++++++++++++++++++++++++++ |
14 |
sci-mathematics/arb/metadata.xml | 18 ++++++++++++ |
15 |
3 files changed, 74 insertions(+) |
16 |
|
17 |
diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..6023a2fe954 |
20 |
--- /dev/null |
21 |
+++ b/sci-mathematics/arb/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST arb-2.11.1.tar.gz 1248835 SHA256 de37f008fd154bd4b9c3fd7f5b0f13928cd109358d01959a98245fe33d08bf63 SHA512 7a014da5208b55f20c7a3cd3eb51070b09ae107b04cbbd6329925780c2ab4d7c38e1fb3619f21456fa806939818370fcae921f59eb013661b6bdd3d0971e3353 WHIRLPOOL 12cd12786e60a5f37da6c1623468e2f8908af2dfa553bc50261f6735e0513ab34400da3e06d99128b2197add6d371a9c1ea732012ae3bd5ab3bd97de6a18520f |
24 |
|
25 |
diff --git a/sci-mathematics/arb/arb-2.11.1.ebuild b/sci-mathematics/arb/arb-2.11.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..bea3d8d89ec |
28 |
--- /dev/null |
29 |
+++ b/sci-mathematics/arb/arb-2.11.1.ebuild |
30 |
@@ -0,0 +1,55 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit eutils toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="C library for arbitrary-precision interval arithmetic" |
39 |
+HOMEPAGE="http://fredrikj.net/arb/" |
40 |
+SRC_URI="https://github.com/fredrik-johansson/arb/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2+" |
43 |
+SLOT="0/2" |
44 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-macos" |
45 |
+IUSE="static-libs" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ dev-libs/gmp:0= |
49 |
+ dev-libs/mpfr:0= |
50 |
+ >=sci-mathematics/flint-2.5.0:= |
51 |
+" |
52 |
+DEPEND="${RDEPEND}" |
53 |
+ |
54 |
+src_configure() { |
55 |
+ # Not an autoconf configure script. |
56 |
+ # Note that it appears to have been cloned from the flint configure script |
57 |
+ # and that not all the options offered are valid. |
58 |
+ tc-export CC AR CXX |
59 |
+ ./configure \ |
60 |
+ --prefix="${EPREFIX}/usr" \ |
61 |
+ --with-flint="${EPREFIX}/usr" \ |
62 |
+ --with-gmp="${EPREFIX}/usr" \ |
63 |
+ --with-mpfr="${EPREFIX}/usr" \ |
64 |
+ $(use_enable static-libs static) || die |
65 |
+} |
66 |
+ |
67 |
+src_compile() { |
68 |
+ emake verbose |
69 |
+} |
70 |
+ |
71 |
+src_test() { |
72 |
+ # Have to set the library path otherwise a previous install of libarb may be loaded. |
73 |
+ # This is in part a consequence of setting the soname/installnae I think. |
74 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
75 |
+ DYLD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check |
76 |
+ else |
77 |
+ LD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install |
83 |
+ use static-libs || prune_libtool_files --all |
84 |
+ dodoc README.md |
85 |
+} |
86 |
|
87 |
diff --git a/sci-mathematics/arb/metadata.xml b/sci-mathematics/arb/metadata.xml |
88 |
new file mode 100644 |
89 |
index 00000000000..5830a1d45f9 |
90 |
--- /dev/null |
91 |
+++ b/sci-mathematics/arb/metadata.xml |
92 |
@@ -0,0 +1,18 @@ |
93 |
+<?xml version="1.0" encoding="UTF-8"?> |
94 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
95 |
+<pkgmetadata> |
96 |
+ <maintainer type="project"> |
97 |
+ <email>sci-mathematics@g.o</email> |
98 |
+ <name>Gentoo Mathematics Project</name> |
99 |
+ </maintainer> |
100 |
+ <longdescription lang="en"> |
101 |
+ Arb is a C library for arbitrary-precision interval arithmetic, |
102 |
+ using a midpoint-radius representation (“ball arithmetic”). It |
103 |
+ supports real and complex numbers, polynomials, power series, |
104 |
+ matrices, and evaluation of many transcendental functions. All |
105 |
+ operations are done with automatic, rigorous error bounds. |
106 |
+ </longdescription> |
107 |
+ <upstream> |
108 |
+ <remote-id type="github">fredrik-johansson/arb</remote-id> |
109 |
+ </upstream> |
110 |
+</pkgmetadata> |