Gentoo Archives: gentoo-dev

From: Justin <jlec@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] RFC: fortran-2.eclass - Support for bin package system without compiler
Date: Thu, 18 Jul 2013 07:07:58
Message-Id: 51E7942A.7070309@gentoo.org
1 Hello,
2
3 I would like to add support for MERGE_TYPE=binary. Therefore I like to
4 deprecate EAPI < 4 on long term and use MERGE_TYPE now for EAPIs which
5 support it.
6
7 Thanks
8 Justin
9
10 Index: fortran-2.eclass
11 ===================================================================
12 RCS file: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v
13 retrieving revision 1.18
14 diff -u -B -b -u -p -r1.18 fortran-2.eclass
15 --- fortran-2.eclass 18 Jul 2013 07:03:33 -0000 1.18
16 +++ fortran-2.eclass 18 Jul 2013 07:06:41 -0000
17 @@ -203,11 +203,11 @@ _fortran_test_function() {
18 fi
19 }
20
21 -# @FUNCTION: fortran-2_pkg_setup
22 +# @FUNCTION: _fortran-2_pkg_setup
23 +# @INTERNAL
24 # @DESCRIPTION:
25 -# Setup functionallity,
26 -# checks for a valid fortran compiler and optionally for its openmp
27 support.
28 -fortran-2_pkg_setup() {
29 +# _The_ fortran-2_pkg_setup()
30 +_fortran-2_pkg_setup() {
31 for _f_use in ${FORTRAN_NEEDED}; do
32 case ${_f_use} in
33 always)
34 @@ -229,6 +229,29 @@ fortran-2_pkg_setup() {
35 done
36 }
37
38 +
39 +# @FUNCTION: fortran-2_pkg_setup
40 +# @DESCRIPTION:
41 +# Setup functionallity,
42 +# checks for a valid fortran compiler and optionally for its openmp
43 support.
44 +fortran-2_pkg_setup() {
45 + if [[ ${EAPI:-0} -lt 4 ]]; then
46 + eqawarn "The fortran-2.eclass is going to deprecate support for"
47 + eqawarn "EAPI < 4. Please migrate your package to a higher EAPI"
48 + eqawarn "or file a bug at https://bugs.gentoo.org"
49 + fi
50 +
51 + case ${EAPI:-0} in
52 + 0|1|2|3)
53 + _fortran-2_pkg_setup ;;
54 + 4|5)
55 + if [[ ${MERGE_TYPE} != binary ]]; then
56 + _fortran-2_pkg_setup
57 + fi
58 + ;;
59 + esac
60 +}
61 +
62 case ${EAPI:-0} in
63 0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;;
64 *) die "EAPI=${EAPI} is not supported" ;;

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies