From 63201fe7a04d84cbeb4c154f31253a4f5e1759e6 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Thu, 16 Dec 2010 15:38:07 +0000 Subject: Removal of fortran.eclass, #348851 Package-Manager: portage-2.2.0_alpha8/cvs/Linux x86_64 --- sci-physics/abinit/abinit-5.4.4-r1.ebuild | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sci-physics/abinit/abinit-5.4.4-r1.ebuild') diff --git a/sci-physics/abinit/abinit-5.4.4-r1.ebuild b/sci-physics/abinit/abinit-5.4.4-r1.ebuild index 83cb1ab0dc90..0ebdad1c0da6 100644 --- a/sci-physics/abinit/abinit-5.4.4-r1.ebuild +++ b/sci-physics/abinit/abinit-5.4.4-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/abinit/abinit-5.4.4-r1.ebuild,v 1.1 2009/12/18 01:26:24 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/abinit/abinit-5.4.4-r1.ebuild,v 1.2 2010/12/16 15:38:07 jlec Exp $ -inherit fortran toolchain-funcs +inherit toolchain-funcs DESCRIPTION="Find total energy, charge density and electronic structure using density functional theory" HOMEPAGE="http://www.abinit.org/" @@ -18,14 +18,12 @@ RDEPEND="virtual/blas DEPEND="${RDEPEND}" # F90 code, g77 won't work -FORTRAN="gfortran ifc" pkg_setup() { - fortran_pkg_setup # Doesn't compile with gcc-4.0, only >=4.1 local diemsg="Requires gcc-4.1 or newer" - if [[ "${FORTRANC}" = "gfortran" ]]; then + if [[ "$(tc-getFC)" = "gfortran" ]]; then if [[ $(gcc-major-version) -eq 4 ]] \ && [[ $(gcc-minor-version) -lt 1 ]]; then die "${diemsg}" @@ -66,7 +64,7 @@ src_compile() { --with-cc-optflags="${CFLAGS}" \ --with-fc-optflags="${FFLAGS}" \ --with-fc-ldflags='-lpthread' \ - FC="${FORTRANC}" \ + FC="$(tc-getFC)" \ CC="$(tc-getCC)" \ LD="$(tc-getLD)" \ || die "configure failed" -- cgit v1.2.3-65-gdbad