# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/cln/cln-1.1.11.ebuild,v 1.1 2006/04/15 14:57:58 cryos Exp $ inherit flag-o-matic toolchain-funcs multilib DESCRIPTION="CLN, a class library (C++) for numbers" HOMEPAGE="http://www.ginac.de/CLN/" LICENSE="GPL-2" SLOT="1" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="" SRC_URI="ftp://ftpthep.physik.uni-mainz.de/pub/gnu/${P}.tar.bz2 ftp://ftp.santafe.edu/pub/gnu/${P}.tar.bz2 ftp://ftp.ilog.fr/pub/Users/haible/gnu/${P}.tar.bz2" DEPEND="dev-libs/gmp" src_compile() { # at least with gcc 2.95 and 3.1, cln won't like -O3 flag... replace-flags -O[3..9] -O2 # It also doesn't seem to get on with -Os, bug 112741. replace-flags -Os -O2 # Fragile build, -ftracer causes compilation issues, bug 121773. filter-flags -ftracer # and with gcc 2.95.3, it doesn't like funroll-loops as well... if [ "$( gcc-fullversion )" == "2.95.3" ]; then filter-flags -funroll-loops filter-flags -frerun-loop-opt fi # Trouble: see bug #70779 if [ "$( gcc-fullversion )" == "3.3.4" ]; then filter-flags -finline-functions fi ./configure \ --build=${CHOST} \ --prefix=/usr \ --libdir=/usr/$(get_libdir) \ --infodir=/usr/share/info \ --datadir=/usr/share/doc/${P} \ --mandir=/usr/share/man || die "./configure failed" #it doesn't also like parallel make :) make || die } src_install () { make DESTDIR=${D} install || die }