/[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.8 Revision 1.11
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.8 2012/10/07 13:10:27 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.11 2012/10/07 14:53:43 jlec Exp $
4 4
5# @ECLASS: fortran-2.eclass 5# @ECLASS: fortran-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# jlec@gentoo.org 7# jlec@gentoo.org
8# sci@gentoo.org 8# sci@gentoo.org
9# @AUTHOR: 9# @AUTHOR:
10# Author Justin Lecher <jlec@gentoo.org> 10# Author Justin Lecher <jlec@gentoo.org>
11# Test functions provided by Sebastien Fabbro and Kacper Kowalik 11# Test functions provided by Sebastien Fabbro and Kacper Kowalik
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.
30# Generally not needed as default is sufficient. 31# Generally not needed as default is sufficient.
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 eutils toolchain-funcs
36 37
37# @FUNCTION: _write_testsuite 38# @FUNCTION: _write_testsuite
38# @INTERNAL 39# @INTERNAL
39# @DESCRIPTION: 40# @DESCRIPTION:
40# writes fortran test code 41# writes fortran test code
153case ${EAPI:-0} in 154case ${EAPI:-0} in
154 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;; 155 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;;
155 *) die "EAPI=${EAPI} is not supported" ;; 156 *) die "EAPI=${EAPI} is not supported" ;;
156esac 157esac
157 158
159#if in_iuse fortran; then
160# DEPEND="fortran? ( virtual/fortran )"
161#else
158DEPEND="virtual/fortran" 162# DEPEND="virtual/fortran"
163#fi
164
159RDEPEND="${DEPEND}" 165#RDEPEND="${DEPEND}"

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20