Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/lcalc/
Date: Thu, 01 Jul 2021 18:57:08
Message-Id: 1625165532.ce68f27aaad01c7e0e4af540d8bd1fc7cf03fd13.mjo@gentoo
1 commit: ce68f27aaad01c7e0e4af540d8bd1fc7cf03fd13
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 28 12:26:24 2021 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 1 18:52:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce68f27a
7
8 sci-mathematics/lcalc: new package for L-function computations.
9
10 Closes: https://bugs.gentoo.org/230439
11 Package-Manager: Portage-3.0.20, Repoman-3.0.2
12 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
13
14 sci-mathematics/lcalc/Manifest | 1 +
15 sci-mathematics/lcalc/lcalc-2.0.1.ebuild | 31 ++++++++++++++++++++++++++
16 sci-mathematics/lcalc/metadata.xml | 37 ++++++++++++++++++++++++++++++++
17 3 files changed, 69 insertions(+)
18
19 diff --git a/sci-mathematics/lcalc/Manifest b/sci-mathematics/lcalc/Manifest
20 new file mode 100644
21 index 00000000000..6ba64e4dd9c
22 --- /dev/null
23 +++ b/sci-mathematics/lcalc/Manifest
24 @@ -0,0 +1 @@
25 +DIST lcalc-2.0.1.tar.xz 849260 BLAKE2B 141044939b50903f5aa631ee7ca76ed1ffc65fd0604701376b67172a8f70bcded2a9303ac3f653b20b8a05da44034f21f775dbe98f6efd38cd4097957f5f5466 SHA512 cf7210cd79dad416e3c4cdc08a6ed276d88483b8dfc425fe2ed4a1592b8a31f82ed5ec7cc7b6308ac80d44cf20e9a07484e2004bbfdeabbbabf843d24d15cc2a
26
27 diff --git a/sci-mathematics/lcalc/lcalc-2.0.1.ebuild b/sci-mathematics/lcalc/lcalc-2.0.1.ebuild
28 new file mode 100644
29 index 00000000000..31632d687e6
30 --- /dev/null
31 +++ b/sci-mathematics/lcalc/lcalc-2.0.1.ebuild
32 @@ -0,0 +1,31 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DESCRIPTION="Command-line utility and library for L-function computations"
39 +HOMEPAGE="https://gitlab.com/sagemath/lcalc"
40 +SRC_URI="https://gitlab.com/sagemath/lcalc/uploads/01b46cdbbf3e67a322320dc0b2750d50/${P}.tar.xz"
41 +
42 +LICENSE="GPL-2+"
43 +# The subslot is the libLfunction soname major version
44 +SLOT="0/1"
45 +KEYWORDS="~amd64"
46 +
47 +# Omit USE=mpfr for now because it's broken upstream:
48 +#
49 +# https://gitlab.com/sagemath/lcalc/-/issues/7
50 +#
51 +IUSE="+double double-double quad-double pari"
52 +REQUIRED_USE="^^ ( double double-double quad-double )"
53 +
54 +BDEPEND="dev-util/gengetopt"
55 +DEPEND="double-double? ( sci-libs/qd:= )
56 + quad-double? ( sci-libs/qd:= )
57 + pari? ( sci-mathematics/pari:= )"
58 +REPEND="${DEPEND}"
59 +
60 +src_configure() {
61 + econf $(use_with pari) \
62 + --enable-precision="$(usev double)$(usev double-double)$(usev quad-double)"
63 +}
64
65 diff --git a/sci-mathematics/lcalc/metadata.xml b/sci-mathematics/lcalc/metadata.xml
66 new file mode 100644
67 index 00000000000..9a24558f38a
68 --- /dev/null
69 +++ b/sci-mathematics/lcalc/metadata.xml
70 @@ -0,0 +1,37 @@
71 +<?xml version="1.0" encoding="UTF-8"?>
72 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
73 +<pkgmetadata>
74 + <maintainer type="person">
75 + <email>mjo@g.o</email>
76 + </maintainer>
77 +
78 + <maintainer type="person" proxied="yes">
79 + <email>frp.bissey@×××××.com</email>
80 + <name>François Bissey</name>
81 + </maintainer>
82 + <maintainer type="project" proxied="proxy">
83 + <email>proxy-maint@g.o</email>
84 + <name>Proxy Maintainers</name>
85 + </maintainer>
86 +
87 + <upstream>
88 + <remote-id type="gitlab">sagemath/lcalc</remote-id>
89 + </upstream>
90 + <use>
91 + <flag name="double">Use double precision (the upstream default)</flag>
92 + <flag name="double-double">
93 + Use <pkg>sci-libs/qd</pkg>for double-double precision
94 + </flag>
95 + <!-- Broken upstream: https://gitlab.com/sagemath/lcalc/-/issues/7
96 + <flag name="multiple-precision">
97 + Use <pkg>dev-libs/mpfr</pkg>for multiple precision
98 + </flag>
99 + -->
100 + <flag name="pari">
101 + Use <pkg>sci-mathematics/pari</pkg> for elliptic curve L-functions
102 + </flag>
103 + <flag name="quad-double">
104 + Use <pkg>sci-libs/qd</pkg>for quad-double precision
105 + </flag>
106 + </use>
107 +</pkgmetadata>