Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: fortran-2.eclass
Date: Mon, 29 Jul 2013 20:14:00
Message-Id: 20130729201357.36EB12171C@flycatcher.gentoo.org
1 jlec 13/07/29 20:13:57
2
3 Modified: fortran-2.eclass
4 Log:
5 Enhancements pointed out by Arfrever
6
7 Revision Changes Path
8 1.20 eclass/fortran-2.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/fortran-2.eclass?rev=1.20&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/fortran-2.eclass?rev=1.20&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/fortran-2.eclass?r1=1.19&r2=1.20
13
14 Index: fortran-2.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v
17 retrieving revision 1.19
18 retrieving revision 1.20
19 diff -u -r1.19 -r1.20
20 --- fortran-2.eclass 29 Jul 2013 09:53:36 -0000 1.19
21 +++ fortran-2.eclass 29 Jul 2013 20:13:57 -0000 1.20
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2013 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.19 2013/07/29 09:53:36 jlec Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.20 2013/07/29 20:13:57 jlec Exp $
27
28 # @ECLASS: fortran-2.eclass
29 # @MAINTAINER:
30 @@ -44,8 +44,8 @@
31 # @ECLASS-VARIABLE: FORTRAN_NEEDED
32 # @DESCRIPTION:
33 # If your package has an optional fortran support, set this variable
34 -# to the space seperated list of USE triggering the fortran
35 -# dependence.
36 +# to the space separated list of USE triggering the fortran
37 +# dependency.
38 #
39 # e.g. FORTRAN_NEEDED=lapack would result in
40 #
41 @@ -110,7 +110,7 @@
42 local ret
43
44 [[ $# -lt 1 ]] && \
45 - die "_fortran_compile_test() needs at least one arguments"
46 + die "_fortran_compile_test() needs at least one argument"
47
48 [[ -f ${fcode} ]] || _fortran_write_testsuite
49
50 @@ -123,7 +123,7 @@
51 }
52
53 # @FUNCTION: _fortran-has-openmp
54 -# @RETURN: compilers return value
55 +# @RETURN: return code of the compiler
56 # @INTERNAL
57 # @DESCRIPTION:
58 # See if the fortran supports OpenMP.
59 @@ -158,8 +158,8 @@
60 echo
61 eerror "Please install currently selected gcc version with USE=fortran."
62 eerror "If you intend to use a different compiler then gfortran, please"
63 - eerror "set FC variable accordingly and take care that the neccessary"
64 - eerror "fortran dialects are support."
65 + eerror "set FC variable accordingly and take care that the necessary"
66 + eerror "fortran dialects are supported."
67 echo
68 die "Currently no working fortran compiler is available"
69 }
70 @@ -167,7 +167,7 @@
71 # @FUNCTION: _fortran_test_function
72 # @INTERNAL
73 # @DESCRIPTION:
74 -# Internal testfunction for working fortran compiler.
75 +# Internal test function for working fortran compiler.
76 # It is called in fortran-2_pkg_setup.
77 _fortran_test_function() {
78 local dialect
79 @@ -197,8 +197,7 @@
80 if _fortran-has-openmp; then
81 einfo "${FC} has OPENMP support"
82 else
83 - die "Please install current gcc with USE=openmp or " \
84 - "set the FC variable to a compiler that supports OpenMP"
85 + die "Please install current gcc with USE=openmp or set the FC variable to a compiler that supports OpenMP"
86 fi
87 fi
88 }
89 @@ -232,13 +231,13 @@
90
91 # @FUNCTION: fortran-2_pkg_setup
92 # @DESCRIPTION:
93 -# Setup functionallity,
94 +# Setup functionality,
95 # checks for a valid fortran compiler and optionally for its openmp support.
96 fortran-2_pkg_setup() {
97 case ${EAPI:-0} in
98 0|1|2|3)
99 eqawarn "Support for EAPI < 4 will be removed from the"
100 - eqawarn "fortran-2.eclass in until Sep 31. 2013."
101 + eqawarn "fortran-2.eclass in until 2013-09-30."
102 eqawarn "Please migrate your package to a higher EAPI"
103 eqawarn "or file a bug at https://bugs.gentoo.org"
104 _fortran-2_pkg_setup ;;