summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2008-07-03 06:24:06 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2008-07-03 06:24:06 +0000
commite90db788a7f362d8ceb640d1adb6e8a09bac02bf (patch)
tree77be312f65e62d1d4cdb3c055e2efcc1cd52aec8 /eclass/fortran.eclass
parentremove unused version (diff)
downloadgentoo-2-e90db788a7f362d8ceb640d1adb6e8a09bac02bf.tar.gz
gentoo-2-e90db788a7f362d8ceb640d1adb6e8a09bac02bf.tar.bz2
gentoo-2-e90db788a7f362d8ceb640d1adb6e8a09bac02bf.zip
Support Sun Studio compiler (f95).
Diffstat (limited to 'eclass/fortran.eclass')
-rw-r--r--eclass/fortran.eclass24
1 files changed, 23 insertions, 1 deletions
diff --git a/eclass/fortran.eclass b/eclass/fortran.eclass
index 5b4cf6ead8a5..fbc93a1d174a 100644
--- a/eclass/fortran.eclass
+++ b/eclass/fortran.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/fortran.eclass,v 1.18 2008/03/11 18:01:01 jsbronder Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/fortran.eclass,v 1.19 2008/07/03 06:24:06 dberkholz Exp $
#
# Author: Danny van Dyk <kugelfang@gentoo.org>
#
@@ -36,6 +36,7 @@ fortran_conf() {
# * g77 - GCC Fortran 77
# * f2c - Fortran 2 C Translator
# * ifc - Intel Fortran Compiler
+# * f95 - Sun Studio Fortran Compiler
#
# Checks if at least one of <profiles> is installed.
# Checks also if F77 (the fortran compiler to use) is available
@@ -76,6 +77,17 @@ need_fortran() {
;;
esac
;;
+ f95)
+ case ${ARCH} in
+ x86|amd64)
+ if [ -x "$(type -P f95 2> /dev/null)" ]; then
+ AVAILABLE="${AVAILABLE} f95"
+ fi
+ ;;
+ *)
+ ;;
+ esac
+ ;;
esac
done
AVAILABLE="${AVAILABLE/^[[:space:]]}"
@@ -103,6 +115,16 @@ need_fortran() {
*)
;;
esac
+ ;;
+ f95)
+ case ${ARCH} in
+ x86|amd64)
+ eerror "[${i}] emerge dev-lang/sunstudio"
+ ;;
+ *)
+ ;;
+ esac
+ ;;
esac
i=$((i + 1))
done