summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-07-18 07:03:33 +0000
committerJustin Lecher <jlec@gentoo.org>2013-07-18 07:03:33 +0000
commit4019b86eeb1c9613fec4356e491c252bf09ea8ed (patch)
tree1a5bc18a1a16c0994995335ee584650048c51e04 /eclass
parentVersion bump. (diff)
downloadhistorical-4019b86eeb1c9613fec4356e491c252bf09ea8ed.tar.gz
historical-4019b86eeb1c9613fec4356e491c252bf09ea8ed.tar.bz2
historical-4019b86eeb1c9613fec4356e491c252bf09ea8ed.zip
Wrap lines at 80 char
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/fortran-2.eclass29
2 files changed, 23 insertions, 11 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 8ffae9303a07..ddc2ed1d4cf9 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.881 2013/07/15 23:54:03 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.882 2013/07/18 07:03:33 jlec Exp $
+
+ 18 Jul 2013; Justin Lecher <jlec@gentoo.org> fortran-2.eclass:
+ Wrap lines at 80 char
15 Jul 2013; Samuli Suominen <ssuominen@gentoo.org>
bash-completion-r1.eclass:
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index 7e63244951ee..939fe7d00670 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.17 2013/03/13 11:03:12 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.18 2013/07/18 07:03:33 jlec Exp $
# @ECLASS: fortran-2.eclass
# @MAINTAINER:
@@ -109,11 +109,13 @@ _fortran_compile_test() {
local fcode=${filebase}.f${fdia}
local ret
- [[ $# -lt 1 ]] && die "_fortran_compile_test() needs at least one arguments"
+ [[ $# -lt 1 ]] && \
+ die "_fortran_compile_test() needs at least one arguments"
[[ -f ${fcode} ]] || _fortran_write_testsuite
- ${fcomp} "${fcode}" -o "${fcode}.x" >> "${T}"/_fortran_compile_test.log 2>&1
+ ${fcomp} "${fcode}" -o "${fcode}.x" \
+ >> "${T}"/_fortran_compile_test.log 2>&1
ret=$?
rm -f "${fcode}.x"
@@ -138,7 +140,8 @@ _fortran-has-openmp() {
EOF
for flag in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
- ${_fc} ${flag} "${fcode}" -o "${fcode}.x" &>> "${T}"/_fortran_compile_test.log
+ ${_fc} ${flag} "${fcode}" -o "${fcode}.x" \
+ &>> "${T}"/_fortran_compile_test.log
ret=$?
(( ${ret} )) || break
done
@@ -164,7 +167,8 @@ _fortran_die_msg() {
# @FUNCTION: _fortran_test_function
# @INTERNAL
# @DESCRIPTION:
-# Internal testfunction for working fortran compiler. It is called in fortran-2_pkg_setup
+# Internal testfunction for working fortran compiler.
+# It is called in fortran-2_pkg_setup
_fortran_test_function() {
local dialect
@@ -173,9 +177,12 @@ _fortran_test_function() {
: ${FORTRAN_STANDARD:=77}
for dialect in ${FORTRAN_STANDARD}; do
case ${dialect} in
- 77) _fortran_compile_test $(tc-getF77) || _fortran_die_msg ;;
- 90|95) _fortran_compile_test $(tc-getFC) 90 || _fortran_die_msg ;;
- 2003) _fortran_compile_test $(tc-getFC) 03 || _fortran_die_msg ;;
+ 77) _fortran_compile_test $(tc-getF77) || \
+ _fortran_die_msg ;;
+ 90|95) _fortran_compile_test $(tc-getFC) 90 || \
+ _fortran_die_msg ;;
+ 2003) _fortran_compile_test $(tc-getFC) 03 || \
+ _fortran_die_msg ;;
2008) die "Future" ;;
*) die "${dialect} is not a Fortran dialect." ;;
esac
@@ -190,14 +197,16 @@ _fortran_test_function() {
if _fortran-has-openmp; then
einfo "${FC} has OPENMP support"
else
- die "Please install current gcc with USE=openmp or set the FC variable to a compiler that supports OpenMP"
+ die "Please install current gcc with USE=openmp or " \
+ "set the FC variable to a compiler that supports OpenMP"
fi
fi
}
# @FUNCTION: fortran-2_pkg_setup
# @DESCRIPTION:
-# Setup functionallity, checks for a valid fortran compiler and optionally for its openmp support.
+# Setup functionallity,
+# checks for a valid fortran compiler and optionally for its openmp support.
fortran-2_pkg_setup() {
for _f_use in ${FORTRAN_NEEDED}; do
case ${_f_use} in