diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/ntl/ntl-10.5.0.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/ntl/ntl-10.5.0.ebuild')
-rw-r--r-- | dev-libs/ntl/ntl-10.5.0.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-libs/ntl/ntl-10.5.0.ebuild b/dev-libs/ntl/ntl-10.5.0.ebuild new file mode 100644 index 000000000000..00821f04ef33 --- /dev/null +++ b/dev-libs/ntl/ntl-10.5.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit flag-o-matic toolchain-funcs + +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/35" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc static-libs test threads bindist" + +RDEPEND="dev-libs/gmp:0= + >=dev-libs/gf2x-0.9" +DEPEND="${RDEPEND} + dev-lang/perl" + +S="${WORKDIR}/${P}/src" + +pkg_setup() { + replace-flags -O[3-9] -O2 +} + +src_configure() { + # Currently the build system can build a static library or + # both static and shared libraries. But not only shared libraries. + 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 \ + $(usex threads NTL_THREADS= NTL_THREADS= on off) \ + $(usex bindist NATIVE= NATIVE= off on) \ + || die "DoConfig failed" +} + +src_install() { + default + if ! use static-libs; then + prune_libtool_files --all + rm -f "${ED}"/usr/$(get_libdir)/libntl.a + fi + + cd .. + rm -rf "${ED}"/usr/share/doc/NTL + dodoc README + if use doc ; then + dodoc doc/*.txt + docinto html + dodoc doc/*.html doc/*.gif + fi +} |