diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-12-28 17:01:12 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-12-28 17:01:12 +0100 |
commit | f467dacbb0418ee3380c443f15c1cde69287fb84 (patch) | |
tree | 20c5bf52d0da67d0637eba4514adb27af1f3506a /eclass/fortran-2.eclass | |
parent | ghc-package.eclass: Fix @DESCRIPTION tag usage (diff) | |
download | gentoo-f467dacbb0418ee3380c443f15c1cde69287fb84.tar.gz gentoo-f467dacbb0418ee3380c443f15c1cde69287fb84.tar.bz2 gentoo-f467dacbb0418ee3380c443f15c1cde69287fb84.zip |
fortran-2.eclass: debug-print-function in all functions
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass/fortran-2.eclass')
-rw-r--r-- | eclass/fortran-2.eclass | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass index af3629ab90b6..867f7c0da1b2 100644 --- a/eclass/fortran-2.eclass +++ b/eclass/fortran-2.eclass @@ -86,6 +86,7 @@ unset _f_use # @CODE fortran_int64_abi_fflags() { debug-print-function ${FUNCNAME} "${@}" + _FC=$(tc-getFC) if [[ ${_FC} == *gfortran* ]]; then echo "-fdefault-integer-8" @@ -101,6 +102,8 @@ fortran_int64_abi_fflags() { # @DESCRIPTION: # writes fortran test code _fortran_write_testsuite() { + debug-print-function ${FUNCNAME} "${@}" + local filebase=${T}/test-fortran # f77 code @@ -127,6 +130,8 @@ _fortran_write_testsuite() { # Takes fortran compiler as first argument and dialect as second. # Checks whether the passed fortran compiler speaks the fortran dialect _fortran_compile_test() { + debug-print-function ${FUNCNAME} "${@}" + local filebase=${T}/test-fortran local fcomp=${1} local fdia=${2} @@ -152,6 +157,8 @@ _fortran_compile_test() { # @DESCRIPTION: # See if the fortran supports OpenMP. _fortran-has-openmp() { + debug-print-function ${FUNCNAME} "${@}" + local flag local filebase=${T}/test-fc-openmp local fcode=${filebase}.f @@ -179,6 +186,8 @@ _fortran-has-openmp() { # @DESCRIPTION: # Detailed description how to handle fortran support _fortran_die_msg() { + debug-print-function ${FUNCNAME} "${@}" + echo eerror "Please install currently selected gcc version with USE=fortran." eerror "If you intend to use a different compiler then gfortran, please" @@ -194,6 +203,8 @@ _fortran_die_msg() { # Internal test function for working fortran compiler. # It is called in fortran-2_pkg_setup. _fortran_test_function() { + debug-print-function ${FUNCNAME} "${@}" + local dialect : ${F77:=$(tc-getFC)} @@ -258,6 +269,8 @@ _fortran-2_pkg_setup() { # Setup functionality, # checks for a valid fortran compiler and optionally for its openmp support. fortran-2_pkg_setup() { + debug-print-function ${FUNCNAME} "${@}" + case ${EAPI:-0} in 0|1|2|3) eqawarn "Support for EAPI < 4 will be removed from the" |