1 |
Signed-off-by: David Seifert <soap@g.o> |
2 |
--- |
3 |
eclass/postgres-multi.eclass | 38 ++++++++++++++++++------------------ |
4 |
1 file changed, 19 insertions(+), 19 deletions(-) |
5 |
|
6 |
diff --git a/eclass/postgres-multi.eclass b/eclass/postgres-multi.eclass |
7 |
index 9dcf22e64a1..d93df851cd2 100644 |
8 |
--- a/eclass/postgres-multi.eclass |
9 |
+++ b/eclass/postgres-multi.eclass |
10 |
@@ -1,16 +1,12 @@ |
11 |
# Copyright 1999-2022 Gentoo Authors |
12 |
# Distributed under the terms of the GNU General Public License v2 |
13 |
|
14 |
-inherit multibuild postgres |
15 |
-EXPORT_FUNCTIONS pkg_setup src_prepare src_compile src_install src_test |
16 |
- |
17 |
- |
18 |
# @ECLASS: postgres-multi.eclass |
19 |
# @MAINTAINER: |
20 |
# PostgreSQL <pgsql-bugs@g.o> |
21 |
# @AUTHOR: |
22 |
# Aaron W. Swenson <titanofold@g.o> |
23 |
-# @SUPPORTED_EAPIS: 5 6 7 |
24 |
+# @SUPPORTED_EAPIS: 7 |
25 |
# @PROVIDES: multibuild postgres |
26 |
# @BLURB: An eclass to build PostgreSQL-related packages against multiple slots |
27 |
# @DESCRIPTION: |
28 |
@@ -18,12 +14,15 @@ EXPORT_FUNCTIONS pkg_setup src_prepare src_compile src_install src_test |
29 |
# build and install for one or more PostgreSQL slots as specified by |
30 |
# POSTGRES_TARGETS use flags. |
31 |
|
32 |
- |
33 |
-case ${EAPI:-0} in |
34 |
- 5|6|7) ;; |
35 |
- *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;; |
36 |
+case ${EAPI} in |
37 |
+ 7) ;; |
38 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
39 |
esac |
40 |
|
41 |
+if [[ ! ${_POSTGRES_MULTI_ECLASS} ]]; then |
42 |
+_POSTGRES_MULTI_ECLASS=1 |
43 |
+ |
44 |
+inherit multibuild postgres |
45 |
|
46 |
# @ECLASS_VARIABLE: POSTGRES_COMPAT |
47 |
# @PRE_INHERIT |
48 |
@@ -147,10 +146,7 @@ postgres-multi_src_prepare() { |
49 |
fi |
50 |
done |
51 |
|
52 |
- case ${EAPI:-0} in |
53 |
- 0|1|2|3|4|5) epatch_user ;; |
54 |
- 6|7) eapply_user ;; |
55 |
- esac |
56 |
+ eapply_user |
57 |
|
58 |
local MULTIBUILD_VARIANT |
59 |
local MULTIBUILD_VARIANTS=("${_POSTGRES_INTERSECT_SLOTS[@]}") |
60 |
@@ -164,6 +160,13 @@ postgres-multi_src_compile() { |
61 |
postgres-multi_foreach emake |
62 |
} |
63 |
|
64 |
+# @FUNCTION: postgres-multi_src_test |
65 |
+# @DESCRIPTION: |
66 |
+# Runs `emake installcheck' in each build directory. |
67 |
+postgres-multi_src_test() { |
68 |
+ postgres-multi_foreach emake installcheck |
69 |
+} |
70 |
+ |
71 |
# @FUNCTION: postgres-multi_src_install |
72 |
# @DESCRIPTION: |
73 |
# Runs `emake install DESTDIR="${D}"' in each build directory. |
74 |
@@ -171,9 +174,6 @@ postgres-multi_src_install() { |
75 |
postgres-multi_foreach emake install DESTDIR="${D}" |
76 |
} |
77 |
|
78 |
-# @FUNCTION: postgres-multi_src_test |
79 |
-# @DESCRIPTION: |
80 |
-# Runs `emake installcheck' in each build directory. |
81 |
-postgres-multi_src_test() { |
82 |
- postgres-multi_foreach emake installcheck |
83 |
-} |
84 |
+fi |
85 |
+ |
86 |
+EXPORT_FUNCTIONS pkg_setup src_prepare src_compile src_install src_test |
87 |
-- |
88 |
2.39.0 |