fortran-2.eclass
Description
If you need a fortran compiler, then you should be inheriting this eclass.
In case you only need optional support, please export FORTRAN_NEEDED
before inheriting the eclass.
The eclass tests for working fortran compilers
and exports the variables FC and F77.
Optionally, it checks for extended capabilities based on
the variable options selected in the ebuild
The only phase function exported is fortran-2_pkg_setup
.
Functions
- fortran_int64_abi_fflags
-
Return the Fortran compiler flag to enable 64 bit integers for array indices
- fortran-2_pkg_setup
-
Setup functionality, checks for a valid fortran compiler and optionally for its
openmp
support.
Variables
- FORTRAN_NEED_OPENMP ?= 0
-
Set to
1
in order to automatically have the eclass abort if the fortran compiler lacksopenmp
support. - FORTRAN_STANDARD ?= 77
-
Set this, if a special dialect needs to be supported. Generally not needed as default is sufficient.
Valid settings are any combination of:
77
90
95
2003
- FORTRAN_NEEDED ?= always
-
If your package has an optional fortran support, set this variable to the space separated list of USE triggering the fortran dependency.
e.g.
FORTRAN_NEEDED=lapack
would result inDEPEND="lapack? ( virtual/fortran )"
If unset, we always depend on
virtual/fortran
.
Authors
Author Justin Lecher <jlec@gentoo.org>
Test functions provided by Sebastien Fabbro and Kacper Kowalik
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/