diff options
Diffstat (limited to 'sci-mathematics/eclib')
-rw-r--r-- | sci-mathematics/eclib/Manifest | 2 | ||||
-rw-r--r-- | sci-mathematics/eclib/eclib-20240408.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/sci-mathematics/eclib/Manifest b/sci-mathematics/eclib/Manifest index f05cd1bd53cf..6a4e34a9ab55 100644 --- a/sci-mathematics/eclib/Manifest +++ b/sci-mathematics/eclib/Manifest @@ -1,3 +1,5 @@ DIST eclib-20231212.tar.bz2 926463 BLAKE2B 8105ac4014f9e44545d1d1e1cd5e18e36e467131b57a04a02d7e4f2390b0b0f78d0bac60dfbc0403a6681816a64a6e81c8d6a198f83bef991f697c2756a6d048 SHA512 692aa6bc2a52cd9496700990172b5a807abbd3f8bf8e931de14c48a401d1d383f95fa5def68bbf9a1aee08dfabac608604c0fd6f8bb49b813e6c6c909a2f27a7 +DIST eclib-20240408.tar.bz2 918771 BLAKE2B e9f4a37973b40e73a111330800fcfebae91251613902b35ff29a45bdf3e7cd8cc49b061af121eff6aaa657d28b24b20ec00b77bad468504e545b3810852a50d2 SHA512 d93c724fa5816ce45a661d50000309e148fdbd0e287fbdbbf30bd6b3c6a7225846d90f11bc4d86c4b96111cbe8429b174e7d81ea0be1eef1a8acaa43287c09cf EBUILD eclib-20231212.ebuild 1392 BLAKE2B 6cd0aa487c046e92e0c6e09620d5e010fcff89ce747949c8a5ba6e33aed4c00bca39188195e31ec768312bd1e1f7ca3ccd75f87db4f038f6ee557a4c526dab71 SHA512 d902ea983a3acaab8f5ce4ba59d72de7e24016ac7ca8aab38bc64efc97867cfb40ed4158919c3212bf66091a0efe47c92ab4950831f37d83642da835d793a673 +EBUILD eclib-20240408.ebuild 1400 BLAKE2B 974a16648861d3520bfa5aefe3aa6276c8d9de701b2ba4ae3d7cc6ce16709ea590928120cabfac18906fd0fea46d4da5474cef0c5d85d77636cfadfc01d5a9d0 SHA512 1f4135e0951eb8a83decd9b9f4103811c8f82d5b4b047dbb90122e3eb195b4a8942c4e9b40802f1d6037f8e8e64d152658185135a49969a06d53eed5907449e4 MISC metadata.xml 1089 BLAKE2B d10f9af5634478f0f13595abd10d9eefc437c27955cd3f504165beb4219e55c3997f16271148c1c2fbb5c9ae71e08665000836658bb954b83db06aeffa2b4098 SHA512 7111f3231464624d356611372934d0604fdd7a05c3531342a372979292a068dfa2edf49c4de5840cbf07b6f4819c22b8d87d54d7cacefb28ce0f53576d4620fd diff --git a/sci-mathematics/eclib/eclib-20240408.ebuild b/sci-mathematics/eclib/eclib-20240408.ebuild new file mode 100644 index 000000000000..a8b4b73b14eb --- /dev/null +++ b/sci-mathematics/eclib/eclib-20240408.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +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/v${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+" + +# Subslot is from the soname, (LT_CURRENT - LT_AGE) in configure.ac. +# (But for now, see src_prepare below.) +SLOT="0/12" +KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" +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_prepare() { + default + # LT_CURRENT was bumped to 12 in the 20230424 release but LT_AGE was + # left at two despite an interface being removed. Subsequent releases + # have propagated the off-by-two error. This isn't strictly necessary + # but it's nice to have the soname match the subslot. + sed -e 's/LT_AGE=3/LT_AGE=1/' -i configure.ac || die + eautoreconf +} + +src_configure() { + econf \ + $(usex minimal --disable-allprogs "" "" "") \ + $(use_with boost) \ + $(use_with flint) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} |