fortran-2.eclass: debug-print-function in all functions
authorJustin Lecher <jlec@gentoo.org>
Mon, 28 Dec 2015 16:01:12 +0000 (17:01 +0100)
committerJustin Lecher <jlec@gentoo.org>
Mon, 28 Dec 2015 16:01:12 +0000 (17:01 +0100)
Signed-off-by: Justin Lecher <jlec@gentoo.org>
eclass/fortran-2.eclass

index af3629ab90b6b23ef5ab52253f81553a4e6e1f03..867f7c0da1b24ddb221e999246a4a26eaf00f201 100644 (file)
@@ -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"