| 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.9 2012/10/07 13:15:52 jlec Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.10 2012/10/07 13:30:23 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 |
| … | |
… | |
| 31 | # Generally not needed as default is sufficient. |
31 | # Generally not needed as default is sufficient. |
| 32 | # |
32 | # |
| 33 | # Valid settings are any combination of: 77 90 95 2003 |
33 | # Valid settings are any combination of: 77 90 95 2003 |
| 34 | : ${FORTRAN_STANDARD:=77} |
34 | : ${FORTRAN_STANDARD:=77} |
| 35 | |
35 | |
| 36 | inherit toolchain-funcs |
36 | inherit eutils toolchain-funcs |
| 37 | |
37 | |
| 38 | # @FUNCTION: _write_testsuite |
38 | # @FUNCTION: _write_testsuite |
| 39 | # @INTERNAL |
39 | # @INTERNAL |
| 40 | # @DESCRIPTION: |
40 | # @DESCRIPTION: |
| 41 | # writes fortran test code |
41 | # writes fortran test code |
| … | |
… | |
| 153 | |
153 | |
| 154 | case ${EAPI:-0} in |
154 | case ${EAPI:-0} in |
| 155 | 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;; |
155 | 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;; |
| 156 | *) die "EAPI=${EAPI} is not supported" ;; |
156 | *) die "EAPI=${EAPI} is not supported" ;; |
| 157 | esac |
157 | esac |
|
|
158 | |
|
|
159 | if in_iuse fortran; then |
|
|
160 | DEPEND="fortran? ( virtual/fortran )" |
|
|
161 | else |
|
|
162 | DEPEND="virtual/fortran" |
|
|
163 | fi |
|
|
164 | |
|
|
165 | RDEPEND="${DEPEND}" |