| 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.9 2012/10/07 13:15:52 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. |
| … | |
… | |
| 152 | |
153 | |
| 153 | case ${EAPI:-0} in |
154 | case ${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" ;; |
| 156 | esac |
157 | esac |
| 157 | |
|
|
| 158 | DEPEND="virtual/fortran" |
|
|
| 159 | RDEPEND="${DEPEND}" |
|
|