/[gentoo-x86]/eclass/fortran-2.eclass
Gentoo

Diff of /eclass/fortran-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.4
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.1 2011/06/21 06:44:02 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.4 2011/06/21 14:11:31 jlec Exp $
4 4
5# Author Justin Lecher <jlec@gentoo.org> 5# Author Justin Lecher <jlec@gentoo.org>
6# Test functions provided by Sebastien Fabbro and Kacper Kowalik 6# Test functions provided by Sebastien Fabbro and Kacper Kowalik
7 7
8# @ECLASS: fortran-2.eclass 8# @ECLASS: fortran-2.eclass
9# @MAINTAINER: 9# @MAINTAINER:
10# jlec@gentoo.org 10# jlec@gentoo.org
11# sci@gentoo.org 11# sci@gentoo.org
12# @BLURB: Simplify fortran compiler management 12# @BLURB: Simplify fortran compiler management
13# @DESCRIPTION: 13# @DESCRIPTION:
14# If you need a fortran compiler, then you should be inheriting this eclass. 14# If you need a fortran compiler, then you should be inheriting this eclass and
15# adding virtual/fortran to your dependencies.
15# The eclass tests for working fortran compilers 16# The eclass tests for working fortran compilers
16# and exports the variables FC and F77. 17# and exports the variables FC and F77.
17# Optionally, it checks for extended capabilities based on 18# Optionally, it checks for extended capabilities based on
18# the variable options selected in the ebuild 19# the variable options selected in the ebuild
19# The only phase function exported is fortran-2_pkg_setup. 20# The only phase function exported is fortran-2_pkg_setup.
31# 32#
32# Valid settings are any combination of: 77 90 95 2003 33# Valid settings are any combination of: 77 90 95 2003
33: ${FORTRAN_STANDARD:=77} 34: ${FORTRAN_STANDARD:=77}
34 35
35inherit toolchain-funcs 36inherit toolchain-funcs
36
37DEPEND="virtual/fortran"
38RDEPEND="${DEPEND}"
39 37
40# @FUNCTION: _write_testsuite 38# @FUNCTION: _write_testsuite
41# @DESCRIPTION: writes fortran test code 39# @DESCRIPTION: writes fortran test code
42# @INTERNAL 40# @INTERNAL
43_write_testsuite() { 41_write_testsuite() {
147 fi 145 fi
148 tc-export F77 FC 146 tc-export F77 FC
149} 147}
150 148
151case ${EAPI:-0} in 149case ${EAPI:-0} in
152 1|2|3|4) EXPORT_FUNCTIONS pkg_setup ;; 150 0|1|2|3|4) EXPORT_FUNCTIONS pkg_setup ;;
153 *) die "EAPI=${EAPI} is not supported" ;; 151 *) die "EAPI=${EAPI} is not supported" ;;
154esac 152esac

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20