diff options
Diffstat (limited to 'sci-mathematics/eclib/eclib-20220621.ebuild')
-rw-r--r-- | sci-mathematics/eclib/eclib-20220621.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sci-mathematics/eclib/eclib-20220621.ebuild b/sci-mathematics/eclib/eclib-20220621.ebuild new file mode 100644 index 000000000000..b929d5e52f1c --- /dev/null +++ b/sci-mathematics/eclib/eclib-20220621.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 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" + +LICENSE="GPL-2" + +# Major version of /usr/lib64/libec.so +SLOT="0/10" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="boost flint minimal static-libs 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) \ + $(use_enable static-libs static) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} |