Gentoo Archives: gentoo-science

From: justin <jlec@g.o>
To: gentoo-dev-announce@g.o, gentoo-science@l.g.o
Subject: [gentoo-science] Fortran-2.eclass
Date: Tue, 21 Jun 2011 06:59:45

We just included an eclass to simplify the fortran compiler dependency
and testing in ebuilds.

For the simplest case, which is most probably the way you want it,
simply add "fortran-2" to you inherit line. The only phase function
exported is pkg_setup, so take care to add "fortran-2_pkg_setup" in case
you redefined pkg_setup.

This will depend on a fortran compiler and check additionally for
general compiler functionality.

Two specialist cases are support.

First, you need openmp support from the fortran compiler, then simply

Second, you need a different fortran dialect. Normally this can be
identified, if the source files have different suffixes then .f e.g. .f90.
Simply define FORTRAN_STANDARD with the dialects you need.
Currently supported are the dialects from 77, 90, 95 and 03. 08 is
currently not, due to the lack of a working compiler.

I hope this will fix the problems due to missing fortran compilers.



File name MIME type
signature.asc application/pgp-signature