Gentoo Archives: gentoo-commits

From: "Donnie Berkholz (dberkholz)" <dberkholz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: fortran.eclass
Date: Thu, 03 Jul 2008 06:24:13
Message-Id: E1KEIEh-0002tE-5H@stork.gentoo.org
1 dberkholz 08/07/03 06:24:07
2
3 Modified: fortran.eclass
4 Log:
5 Support Sun Studio compiler (f95).
6
7 Revision Changes Path
8 1.19 eclass/fortran.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/fortran.eclass?rev=1.19&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/fortran.eclass?rev=1.19&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/fortran.eclass?r1=1.18&r2=1.19
13
14 Index: fortran.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/fortran.eclass,v
17 retrieving revision 1.18
18 retrieving revision 1.19
19 diff -u -r1.18 -r1.19
20 --- fortran.eclass 11 Mar 2008 18:01:01 -0000 1.18
21 +++ fortran.eclass 3 Jul 2008 06:24:06 -0000 1.19
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/fortran.eclass,v 1.18 2008/03/11 18:01:01 jsbronder Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/fortran.eclass,v 1.19 2008/07/03 06:24:06 dberkholz Exp $
27 #
28 # Author: Danny van Dyk <kugelfang@g.o>
29 #
30 @@ -36,6 +36,7 @@
31 # * g77 - GCC Fortran 77
32 # * f2c - Fortran 2 C Translator
33 # * ifc - Intel Fortran Compiler
34 +# * f95 - Sun Studio Fortran Compiler
35 #
36 # Checks if at least one of <profiles> is installed.
37 # Checks also if F77 (the fortran compiler to use) is available
38 @@ -76,6 +77,17 @@
39 ;;
40 esac
41 ;;
42 + f95)
43 + case ${ARCH} in
44 + x86|amd64)
45 + if [ -x "$(type -P f95 2> /dev/null)" ]; then
46 + AVAILABLE="${AVAILABLE} f95"
47 + fi
48 + ;;
49 + *)
50 + ;;
51 + esac
52 + ;;
53 esac
54 done
55 AVAILABLE="${AVAILABLE/^[[:space:]]}"
56 @@ -103,6 +115,16 @@
57 *)
58 ;;
59 esac
60 + ;;
61 + f95)
62 + case ${ARCH} in
63 + x86|amd64)
64 + eerror "[${i}] emerge dev-lang/sunstudio"
65 + ;;
66 + *)
67 + ;;
68 + esac
69 + ;;
70 esac
71 i=$((i + 1))
72 done
73
74
75
76 --
77 gentoo-commits@l.g.o mailing list