public inbox for gentoo-dev-announce@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev-announce] Fortran-2.eclass
@ 2011-06-21  6:59 justin
  2011-06-21 14:10 ` justin
  0 siblings, 1 reply; 2+ messages in thread
From: justin @ 2011-06-21  6:59 UTC (permalink / raw
  To: gentoo-dev-announce, gentoo-science

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

Hello,

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
define "FORTRAN_NEED_OPENMP=1".

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.

justin


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev-announce] Fortran-2.eclass
  2011-06-21  6:59 [gentoo-dev-announce] Fortran-2.eclass justin
@ 2011-06-21 14:10 ` justin
  0 siblings, 0 replies; 2+ messages in thread
From: justin @ 2011-06-21 14:10 UTC (permalink / raw
  To: gentoo-dev-announce, gentoo-science

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

On 21/06/11 08:59, justin wrote:
> Hello,
> 
> 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
> define "FORTRAN_NEED_OPENMP=1".
> 
> 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.
> 
> justin
> 

UPDATE:

You need to add virtual/fortran to your dependencies. I just removed the
unconditional dependency from the eclass, in order to allow conditional
fortran support in the ebuilds.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-21 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21  6:59 [gentoo-dev-announce] Fortran-2.eclass justin
2011-06-21 14:10 ` justin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox