Gentoo Development Guide
FORTRAN-2.ECLASS
Section: portage (5)Updated: May 2013
Index Return to Main Contents
NAME
fortran-2.eclass - Simplify fortran compiler managementDESCRIPTION
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.
EXAMPLE
FORTRAN_NEEDED="lapack fortran"inherit fortran-2
FUNCTIONS
- fortran-2_pkg_setup
- Setup functionallity, checks for a valid fortran compiler and optionally for its openmp support.
ECLASS VARIABLES
- FORTRAN_NEED_OPENMP ?= 0
- Set to "1" in order to automatically have the eclass abort if the fortran compiler lacks openmp 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 seperated list of USE triggering the fortran
dependence.
e.g. FORTRAN_NEEDED=lapack would result in
DEPEND="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
MAINTAINERS
jlec@gentoo.org sci@gentoo.org
REPORTING BUGS
Please report bugs via http://bugs.gentoo.org/FILES
/usr/portage/eclass/fortran-2.eclassSEE ALSO
ebuild(5)http://sources.gentoo.org/eclass/fortran-2.eclass?view=log
Index
- NAME
- DESCRIPTION
- EXAMPLE
- FUNCTIONS
- ECLASS VARIABLES
- AUTHORS
- MAINTAINERS
- REPORTING BUGS
- FILES
- SEE ALSO
This document was created by man2html, using the manual pages.
Time: 03:25:01 GMT, May 22, 2013