aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/fgsl/fgsl-0.9.ebuild')
-rw-r--r--sci-libs/fgsl/fgsl-0.9.ebuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/sci-libs/fgsl/fgsl-0.9.ebuild b/sci-libs/fgsl/fgsl-0.9.ebuild
index e0cd020..e2dca30 100644
--- a/sci-libs/fgsl/fgsl-0.9.ebuild
+++ b/sci-libs/fgsl/fgsl-0.9.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI=5
inherit eutils
DESCRIPTION="A Fortran interface to the GNU Scientific Library"
@@ -10,7 +11,8 @@ SRC_URI="http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/${P
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+#KEYWORDS="~amd64 ~x86"
+KEYWORDS="~x86" # ifc can't have ~amd64 keyword?
#IUSE="gfortran ifort" #Compiler gfortran does not (properly) support ISO_C_BINDING
IUSE="ifort"
@@ -20,22 +22,21 @@ RDEPEND=${DEPEND}
DESTDIR="/usr"
-BITS="32"
-if use amd64; then
- BITS="64"
-fi
-
-
-
src_unpack() {
unpack ${A}
- cd "${S}"
+}
+
+src_prepare() {
epatch "${FILESDIR}"/${P}-configure.patch #Allows the use of econf
epatch "${FILESDIR}"/${P}-Makefile.patch #Makes make more verbose
}
-
src_compile() {
+ BITS="32"
+ if use amd64; then
+ BITS="64"
+ fi
+
if use ifort; then
econf --prefix ${DESTDIR} --gsl ${DESTDIR} --f90 ifort --bits ${BITS}
#elif use gfortran; then
@@ -56,4 +57,3 @@ pkg_config()
{
eerror "This ebuild does not have a config function."
}
-