/[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.7 Revision 1.8
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.7 2012/10/07 12:06:54 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.8 2012/10/07 13:10:27 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 and 14# If you need a fortran compiler, then you should be inheriting this eclass
15# adding virtual/fortran to your dependencies.
16# The eclass tests for working fortran compilers 15# The eclass tests for working fortran compilers
17# and exports the variables FC and F77. 16# and exports the variables FC and F77.
18# Optionally, it checks for extended capabilities based on 17# Optionally, it checks for extended capabilities based on
19# the variable options selected in the ebuild 18# the variable options selected in the ebuild
20# The only phase function exported is fortran-2_pkg_setup. 19# The only phase function exported is fortran-2_pkg_setup.
153 152
154case ${EAPI:-0} in 153case ${EAPI:-0} in
155 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;; 154 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;;
156 *) die "EAPI=${EAPI} is not supported" ;; 155 *) die "EAPI=${EAPI} is not supported" ;;
157esac 156esac
157
158DEPEND="virtual/fortran"
159RDEPEND="${DEPEND}"

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

  ViewVC Help
Powered by ViewVC 1.1.20