# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.8 2002/05/30 01:54:49 sandymac Exp DESCRIPTION="CLN, a class library (C++) for numbers" HOMEPAGE="http://www.ginac.de/CLN/" LICENSE="GPL-2" SRC_URI="ftp://ftp.santafe.edu/pub/gnu/${P}.tar.gz" #SRC_URI="ftp://ftpthep.physik.uni-mainz.de/pub/gnu/${P}.tar.gz" S=${WORKDIR}/${P} src_compile() { # at least with gcc 2.95 and 3.1, cln won't like -O3 flag... CFLAGS="${CFLAGS//-O[3..9]/-O2}" CXXFLAGS="${CXXFLAGS//-O[3..9]/-O2}" # and with gcc 2.95.3, it doesn't like funroll-loops as well... [ -z "${CC}" ] && export CC=gcc if [ "`${CC} -dumpversion`" = "2.95.3" ] then CXXFLAGS="${CXXFLAGS// -funroll-loops/}" CFLAGS="${CFLAGS// -funroll-loops/}" fi ./configure \ --build=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --datadir=/usr/share/doc/${P} \ --mandir=/usr/share/man || die "./configure failed" emake || die } src_install () { make DESTDIR=${D} install || die }