summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2020-04-24 17:24:57 -0400
committerMichael Orlitzky <mjo@gentoo.org>2020-04-24 17:41:33 -0400
commit16bf0e7f6968b4a6eff5a3139a79d26871a37037 (patch)
tree0e48a014a2a2d683879ec1883783340b0609a158 /dev-libs/ntl/ntl-9.3.0.ebuild
parentapp-portage/gs-elpa: Add python 3.7, 3.8 to PYTHON_COMPAT (diff)
downloadgentoo-16bf0e7f6968b4a6eff5a3139a79d26871a37037.tar.gz
gentoo-16bf0e7f6968b4a6eff5a3139a79d26871a37037.tar.bz2
gentoo-16bf0e7f6968b4a6eff5a3139a79d26871a37037.zip
dev-libs/ntl: remove old "unused" versions.
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-libs/ntl/ntl-9.3.0.ebuild')
-rw-r--r--dev-libs/ntl/ntl-9.3.0.ebuild82
1 files changed, 0 insertions, 82 deletions
diff --git a/dev-libs/ntl/ntl-9.3.0.ebuild b/dev-libs/ntl/ntl-9.3.0.ebuild
deleted file mode 100644
index e2a691d8a31..00000000000
--- a/dev-libs/ntl/ntl-9.3.0.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit toolchain-funcs eutils multilib flag-o-matic
-
-DESCRIPTION="High-performance and portable Number Theory C++ library"
-HOMEPAGE="http://shoup.net/ntl/"
-SRC_URI="http://www.shoup.net/ntl/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="doc static-libs test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="dev-libs/gmp:=
- >=dev-libs/gf2x-0.9"
-DEPEND="${RDEPEND}
- dev-lang/perl"
-
-S="${WORKDIR}/${P}/src"
-
-src_prepare() {
- # fix parallel make
- sed -i -e "s/make/make ${MAKEOPTS}/g" WizardAux || die
- cd ..
- # sanitize the makefile and allow the building of shared library
- epatch "${FILESDIR}"/${PN}-9.2.0-sanitize-makefile.patch
- # enable compatibility with singular
- epatch "${FILESDIR}"/${PN}-9.2.0-singular.patch
- replace-flags -O[3-9] -O2
-}
-
-src_configure() {
- perl DoConfig \
- PREFIX="${EPREFIX}"/usr \
- CXXFLAGS="${CXXFLAGS}" \
- LDFLAGS="${LDFLAGS}" \
- CXX="$(tc-getCXX)" \
- AR="$(tc-getAR)" \
- RANLIB="$(tc-getRANLIB)" \
- NTL_GMP_LIP=on NTL_GF2X_LIB=on NTL_LEGACY_SP_MULMOD=on \
- || die "DoConfig failed"
-}
-
-src_compile() {
- # split the targets to allow parallel make to run properly
- emake setup1 setup2
- emake setup3
- sh Wizard on || die "Tuning wizard failed"
- if use static-libs; then
- emake ntl.a
- fi
- local trg=so
- [[ ${CHOST} == *-darwin* ]] && trg=dylib
- emake shared${trg}
-}
-
-src_install() {
- if use static-libs; then
- newlib.a ntl.a libntl.a
- fi
- dolib.so lib*$(get_libname)
-
- cd ..
- insinto /usr/include
- doins -r include/NTL
-
- dodoc README
- if use doc ; then
- dodoc doc/*.txt
- dohtml doc/*
- fi
-}
-
-src_test() {
- # the current ebuild need static library to run tests
- emake ntl.a
-
- default
-}