summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-02-24 04:56:07 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-02-24 04:56:07 +0000
commit11b9605a038445edbdd1d21d876986866af13715 (patch)
tree4f7263e0382e32f2a9ee9a69859181adfd9ae75b /dev-libs/ntl/ntl-5.5.2.ebuild
parentFixed for libpng-1.5, thanks Rafał Mużyło, bug #354551. Fixed missing font... (diff)
downloadgentoo-2-11b9605a038445edbdd1d21d876986866af13715.tar.gz
gentoo-2-11b9605a038445edbdd1d21d876986866af13715.tar.bz2
gentoo-2-11b9605a038445edbdd1d21d876986866af13715.zip
Added static-libs flag and downgrade O3 and above flags to O2 (bug #356087)
(Portage version: 2.1.9.40/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/ntl/ntl-5.5.2.ebuild')
-rw-r--r--dev-libs/ntl/ntl-5.5.2.ebuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/dev-libs/ntl/ntl-5.5.2.ebuild b/dev-libs/ntl/ntl-5.5.2.ebuild
index dd7653641ade..b6b1bd157533 100644
--- a/dev-libs/ntl/ntl-5.5.2.ebuild
+++ b/dev-libs/ntl/ntl-5.5.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/ntl/ntl-5.5.2.ebuild,v 1.6 2010/12/25 12:07:27 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/ntl/ntl-5.5.2.ebuild,v 1.7 2011/02/24 04:56:07 bicatali Exp $
EAPI=3
-inherit toolchain-funcs eutils multilib
+inherit toolchain-funcs eutils multilib flag-o-matic
DESCRIPTION="High-performance and portable Number Theory C++ library"
HOMEPAGE="http://shoup.net/ntl/"
@@ -12,7 +12,7 @@ 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"
-IUSE="doc"
+IUSE="doc static-libs test"
RDEPEND=">=dev-libs/gmp-4.3
>=dev-libs/gf2x-0.9"
@@ -31,6 +31,7 @@ src_prepare() {
epatch "$FILESDIR/${P}-sage-tools.patch"
# sanitize the makefile and allow the building of shared library
epatch "$FILESDIR/${P}-shared.patch"
+ replace-flags -O[3-9] -O2
}
src_configure() {
@@ -48,14 +49,18 @@ src_compile() {
emake setup1 setup2 || die "emake setup failed"
emake setup3 || die "emake setup failed"
sh Wizard on || die "Tuning wizard failed"
- emake ntl.a || die "emake static failed"
+ if use static-libs || use test; then
+ emake ntl.a || die "emake static failed"
+ fi
local trg=so
[[ ${CHOST} == *-darwin* ]] && trg=dylib
emake shared${trg} || die "emake shared failed"
}
src_install() {
- newlib.a ntl.a libntl.a || die "installation of static library failed"
+ if use static-libs; then
+ newlib.a ntl.a libntl.a || die "installation of static library failed"
+ fi
dolib.so lib*$(get_libname) || die "installation of shared library failed"
cd ..