blob: 07b290ee4b43fff4fa20a723567fd69999be8bbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit libtool
DESCRIPTION="Command-line utility and library for L-function computations"
HOMEPAGE="https://gitlab.com/sagemath/lcalc"
SRC_URI="https://gitlab.com/-/project/12934202/uploads/487082fc3449dea93e9b85904a589742/${P}.tar.xz"
LICENSE="GPL-2+"
# The subslot is the libLfunction soname major version
SLOT="0/2"
KEYWORDS="~amd64 ~riscv"
# Omit USE=mpfr for now because it's broken upstream:
#
# https://gitlab.com/sagemath/lcalc/-/issues/7
#
IUSE="+double double-double quad-double pari"
REQUIRED_USE="^^ ( double double-double quad-double )"
BDEPEND="dev-util/gengetopt"
DEPEND="double-double? ( sci-libs/qd:= )
quad-double? ( sci-libs/qd:= )
pari? ( sci-mathematics/pari:= )"
RDEPEND="${DEPEND}"
src_prepare() {
default
# Attempt to fix bug 953363 (using the fix for bug 914068)
elibtoolize
}
src_configure() {
econf $(use_with pari) \
--enable-precision="$(usev double)$(usev double-double)$(usev quad-double)"
}
src_install() {
default
find "${ED}" -type f -name '*.la' -delete || die
}
|