| 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.6 2012/09/27 16:35:41 axs Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.7 2012/10/07 12:06:54 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 |
| … | |
… | |
| 144 | if [[ ${FORTRAN_NEED_OPENMP} == 1 ]]; then |
144 | if [[ ${FORTRAN_NEED_OPENMP} == 1 ]]; then |
| 145 | _fortran-has-openmp || \ |
145 | _fortran-has-openmp || \ |
| 146 | die "Please install current gcc with USE=openmp or set the FC variable to a compiler that supports OpenMP" |
146 | die "Please install current gcc with USE=openmp or set the FC variable to a compiler that supports OpenMP" |
| 147 | fi |
147 | fi |
| 148 | tc-export F77 FC |
148 | tc-export F77 FC |
|
|
149 | einfo "Using following Fortran compiler" |
|
|
150 | einfo " F77: ${F77}" |
|
|
151 | einfo " FC: ${FC}" |
| 149 | } |
152 | } |
| 150 | |
153 | |
| 151 | case ${EAPI:-0} in |
154 | case ${EAPI:-0} in |
| 152 | 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;; |
155 | 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;; |
| 153 | *) die "EAPI=${EAPI} is not supported" ;; |
156 | *) die "EAPI=${EAPI} is not supported" ;; |