From 3479b00f345a3df28d032ea905246867650168e0 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 18 Jan 2022 09:47:41 -0500 Subject: dev-libs/ntl: new upstream version 11.5.1. Closes: https://bugs.gentoo.org/718892 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Michael Orlitzky --- dev-libs/ntl/Manifest | 1 + dev-libs/ntl/ntl-11.4.4-r1.ebuild | 74 ------------------------------------ dev-libs/ntl/ntl-11.5.1.ebuild | 79 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 74 deletions(-) delete mode 100644 dev-libs/ntl/ntl-11.4.4-r1.ebuild create mode 100644 dev-libs/ntl/ntl-11.5.1.ebuild (limited to 'dev-libs/ntl') diff --git a/dev-libs/ntl/Manifest b/dev-libs/ntl/Manifest index ea540e36f6a4..c44f36699663 100644 --- a/dev-libs/ntl/Manifest +++ b/dev-libs/ntl/Manifest @@ -1 +1,2 @@ DIST ntl-11.4.4.tar.gz 2378708 BLAKE2B 9a4c85bbe2fd2d3360988e0c350864fc0a05714e39ce3972228d93aba17f0dc079c90fbe40ab9d72116d1e31f55328bbd5cc71cd080e42ea33bc92361b4462aa SHA512 ed89d82008ca8785cb3d69de9577f42abe464dabf167ea2aaf801951843fc427d41171cbaac2f0cf68f35110d029cc28a65bd5aad69d30e7312f5ebcb0b58911 +DIST ntl-11.5.1.tar.gz 2304103 BLAKE2B 92284383451c7a810f7ee8d9a82836695d19d2a2e46b71c8c60b00acb77f4b4d3bad5497a309616a3e3188567d20203f5ad31295130ab0f3ace08417188c9fda SHA512 cf1f642b8a0f9cdc6dda888e07183817dc67ff494e56a852053aeb15b3d2a0e61fbc05824779c5d1f20b8115fba6f97266acf7e0b0b527c25df5989c86d5928f diff --git a/dev-libs/ntl/ntl-11.4.4-r1.ebuild b/dev-libs/ntl/ntl-11.4.4-r1.ebuild deleted file mode 100644 index cc4a14f83cd4..000000000000 --- a/dev-libs/ntl/ntl-11.4.4-r1.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit toolchain-funcs gnuconfig - -DESCRIPTION="High-performance and portable C++ number theory library" -HOMEPAGE="https://www.shoup.net/ntl/ https://github.com/libntl/ntl" -SRC_URI="https://www.shoup.net/ntl/${P}.tar.gz" - -LICENSE="LGPL-2.1+" -SLOT="0/43" -KEYWORDS="~amd64 ~arm64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="bindist doc static-libs threads cpu_flags_x86_avx2" - -BDEPEND="dev-lang/perl" -DEPEND="dev-libs/gmp:0= - dev-libs/gf2x - threads? ( >=dev-libs/gf2x-1.2 )" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${P}/src" - -REQUIRED_USE="bindist? ( !cpu_flags_x86_avx2 )" - -DOCS=( "${WORKDIR}/${P}"/README ) - -src_unpack() { - default - gnuconfig_update "${S}/libtool-origin/" -} - -src_configure() { - # Currently the build system can build a static library or both - # static and shared libraries, but not only shared libraries. The - # name NTL_GMP_LIP is *not* a typo. - perl DoConfig \ - PREFIX="${EPREFIX}"/usr \ - LIBDIR="${EPREFIX}"/usr/$(get_libdir) \ - CXXFLAGS="${CXXFLAGS}" \ - CPPFLAGS="${CPPFLAGS}" \ - LDFLAGS="${LDFLAGS}" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" \ - SHARED=on \ - NTL_GMP_LIP=on \ - NTL_GF2X_LIB=on \ - NTL_THREADS=$(usex threads on off) \ - NTL_ENABLE_AVX_FFT=$(usex cpu_flags_x86_avx2 on off) \ - NATIVE=$(usex bindist off on) \ - || die "DoConfig failed" - - if use doc; then - DOCS+=( "${WORKDIR}/${P}"/doc/*.txt ) - HTML_DOCS=( "${WORKDIR}/${P}"/doc/*.html "${WORKDIR}/${P}"/doc/*.gif ) - fi -} - -src_install() { - default - - if ! use static-libs; then - # bug #775884 - find "${ED}" -name '*.la' -delete || die - - # Use rm -f because the static archive may not be created when - # using (for example) slibtool-shared. - rm -f "${ED}/usr/$(get_libdir)"/libntl.a || die - fi - - rm -r "${ED}"/usr/share/doc/NTL || die -} diff --git a/dev-libs/ntl/ntl-11.5.1.ebuild b/dev-libs/ntl/ntl-11.5.1.ebuild new file mode 100644 index 000000000000..cc0f2835f57f --- /dev/null +++ b/dev-libs/ntl/ntl-11.5.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs gnuconfig + +DESCRIPTION="High-performance and portable C++ number theory library" +HOMEPAGE="https://www.shoup.net/ntl/ https://github.com/libntl/ntl" +SRC_URI="https://www.shoup.net/ntl/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0/43" +KEYWORDS="~amd64 ~arm64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="bindist doc static-libs threads cpu_flags_x86_avx2" + +BDEPEND="dev-lang/perl" +DEPEND="dev-libs/gmp:0= + dev-libs/gf2x + threads? ( >=dev-libs/gf2x-1.2 )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}/src" + +REQUIRED_USE="bindist? ( !cpu_flags_x86_avx2 )" + +DOCS=( "${WORKDIR}/${P}"/README ) + +src_unpack() { + default + gnuconfig_update "${S}/libtool-origin/" +} + +src_configure() { + # The DoConfig script builds its own libtool, but doesn't + # really try to set up the build environment (bug 718892). + export CC=$(tc-getCC) + export CXX=$(tc-getCXX) + + # Currently the build system can build a static library or both + # static and shared libraries, but not only shared libraries. The + # name NTL_GMP_LIP is *not* a typo. + perl DoConfig \ + PREFIX="${EPREFIX}"/usr \ + LIBDIR="${EPREFIX}"/usr/$(get_libdir) \ + CXXFLAGS="${CXXFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CXX="$(tc-getCXX)" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" \ + SHARED=on \ + NTL_GMP_LIP=on \ + NTL_GF2X_LIB=on \ + NTL_THREADS=$(usex threads on off) \ + NTL_ENABLE_AVX_FFT=$(usex cpu_flags_x86_avx2 on off) \ + NATIVE=$(usex bindist off on) \ + || die "DoConfig failed" + + if use doc; then + DOCS+=( "${WORKDIR}/${P}"/doc/*.txt ) + HTML_DOCS=( "${WORKDIR}/${P}"/doc/*.html "${WORKDIR}/${P}"/doc/*.gif ) + fi +} + +src_install() { + default + + if ! use static-libs; then + # bug #775884 + find "${ED}" -name '*.la' -delete || die + + # Use rm -f because the static archive may not be created when + # using (for example) slibtool-shared. + rm -f "${ED}/usr/$(get_libdir)"/libntl.a || die + fi + + rm -r "${ED}"/usr/share/doc/NTL || die +} -- cgit v1.2.3-65-gdbad