public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/ntl: ChangeLog ntl-5.5.1.ebuild metadata.xml
@ 2009-08-10 23:22 Sebastien Fabbro (bicatali)
  0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro (bicatali) @ 2009-08-10 23:22 UTC (permalink / raw
  To: gentoo-commits

bicatali    09/08/10 23:22:39

  Modified:             ChangeLog metadata.xml
  Added:                ntl-5.5.1.ebuild
  Log:
  Version bump. Added gf2x use flag. Modernization, adapted from science overlay, thanks Francois Bissey for his work.
  (Portage version: 2.2_rc36/cvs/Linux x86_64)

Revision  Changes    Path
1.14                 dev-libs/ntl/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/ntl/ChangeLog?rev=1.14&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/ntl/ChangeLog?rev=1.14&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/ntl/ChangeLog?r1=1.13&r2=1.14

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-libs/ntl/ChangeLog,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ChangeLog	18 Feb 2007 15:13:09 -0000	1.13
+++ ChangeLog	10 Aug 2009 23:22:39 -0000	1.14
@@ -1,6 +1,14 @@
 # ChangeLog for dev-libs/ntl
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/ntl/ChangeLog,v 1.13 2007/02/18 15:13:09 nixnut Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/ntl/ChangeLog,v 1.14 2009/08/10 23:22:39 bicatali Exp $
+
+*ntl-5.5.1 (10 Aug 2009)
+
+  10 Aug 2009; Sébastien Fabbro <bicatali@gentoo.org> +ntl-5.5.1.ebuild,
+  +files/ntl-5.5.1-sage-tools.patch, +files/ntl-5.5.1-shared.patch,
+  +files/ntl-5.5.1-singular.patch, +files/linux.mk, metadata.xml:
+  Version bump. Added gf2x use flag. Modernization, adapted from science
+  overlay, thanks Francois Bissey for his work.
 
   18 Feb 2007; nixnut <nixnut@gentoo.org> ntl-5.4-r1.ebuild:
   Stable on ppc wrt bug 166529



1.2                  dev-libs/ntl/metadata.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/ntl/metadata.xml?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/ntl/metadata.xml?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/ntl/metadata.xml?r1=1.1&r2=1.2

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-libs/ntl/metadata.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- metadata.xml	19 Sep 2005 22:31:20 -0000	1.1
+++ metadata.xml	10 Aug 2009 23:22:39 -0000	1.2
@@ -2,4 +2,13 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 <herd>cpp</herd>
+<longdescription lang="en">
+  NTL is a high-performance, portable C++ library providing data
+  structures and algorithms for manipulating signed, arbitrary length
+  integers, and for vectors, matrices, and polynomials over the
+  integers and over finite fields.
+</longdescription>
+<use>
+  <flag name='gf2x'>Use high performance polynomial arithmetic with <pkg>dev-libs/gf2x</pkg></flag>
+</use>
 </pkgmetadata>



1.1                  dev-libs/ntl/ntl-5.5.1.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/ntl/ntl-5.5.1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/ntl/ntl-5.5.1.ebuild?rev=1.1&content-type=text/plain

Index: ntl-5.5.1.ebuild
===================================================================
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ntl/ntl-5.5.1.ebuild,v 1.1 2009/08/10 23:22:39 bicatali Exp $

EAPI=2
inherit toolchain-funcs eutils

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 ~x86"
IUSE="doc +gf2x +gmp"

RDEPEND="gmp? ( >=dev-libs/gmp-4.3 )
	gf2x? ( >=dev-libs/gf2x-0.9 )"
DEPEND="${RDEPEND}
	dev-lang/perl"

S="${WORKDIR}/${P}/src"

src_prepare() {
	cd ..
	# enable compatibility with singular
	epatch "$FILESDIR/${P}-singular.patch"
	# implement a call back framework ( submitted upstream)
	epatch "$FILESDIR/${P}-sage-tools.patch"
	# sanitize the makefile and allow the building of shared library
	epatch "$FILESDIR/${P}-shared.patch"
	cp "${FILESDIR}/linux.mk" src/
}

src_configure() {
	local myconf
	use gmp  && myconf="${myconf} NTL_GMP_LIP=on"
	use gf2x && myconf="${myconf} NTL_GF2X_LIB=on"
	perl DoConfig \
		PREFIX=/usr \
		${myconf} \
		CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
		CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
		AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
		NTL_STD_CXX=on SHMAKE=linux \
		|| die "DoConfig failed"
}

src_compile() {
	# scripts convoluted in makefile make it hard to parallel make
	emake -j1 || die "emake failed"
	emake shared || die "emake shared failed"
}

src_install() {
	newlib.a ntl.a libntl.a || die "installation of static library failed"
	dolib.so lib*.so || die "installation of shared library failed"

	cd ..
	insinto /usr/include
	doins -r include/NTL || die "installation of the headers failed"

	dodoc README
	if use doc ; then
		dodoc doc/*.txt
		dohtml doc/*
	fi
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-10 23:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-10 23:22 [gentoo-commits] gentoo-x86 commit in dev-libs/ntl: ChangeLog ntl-5.5.1.ebuild metadata.xml Sebastien Fabbro (bicatali)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox