gentoo/sci-mathematics/eclib/eclib-20250122.ebuild
Fabian Groffen 2d25fad95c
*/*: drop *-linux keywords
Bug: https://bugs.gentoo.org/473598
Bug: https://bugs.gentoo.org/720224
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2025-12-19 10:51:55 +01:00

36 lines
884 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Programs for elliptic curves defined over the rational numbers"
HOMEPAGE="https://github.com/JohnCremona/eclib"
SRC_URI="https://github.com/JohnCremona/${PN}/releases/download/${PV}/${P}.tar.bz2"
# COPYING is GPL-2 but the file headers say "or ... any later version"
# LGPL-2.1+ is for bundled GetOpt.cc
LICENSE="GPL-2+ LGPL-2.1+"
SLOT="0/14"
KEYWORDS="amd64 ~riscv ~x86"
IUSE="boost flint minimal test"
RESTRICT="!test? ( test )"
RDEPEND="sci-mathematics/pari:=
dev-libs/ntl:=
boost? ( dev-libs/boost:= )
flint? ( sci-mathematics/flint:= )"
DEPEND="${RDEPEND}"
src_configure() {
econf \
$(usex minimal --disable-allprogs "" "" "") \
$(use_with boost) \
$(use_with flint)
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}