Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: David Seifert <soap@g.o>
Subject: [gentoo-dev] [PATCH 04/41] apache-2.eclass: drop EAPI 6 support
Date: Sun, 25 Dec 2022 22:17:01
Message-Id: 20221225221552.8023-4-soap@gentoo.org
In Reply to: [gentoo-dev] [PATCH 01/41] ada.eclass: drop EAPI 6 support by David Seifert
1 Signed-off-by: David Seifert <soap@g.o>
2 ---
3 eclass/apache-2.eclass | 29 ++++++++++++++---------------
4 1 file changed, 14 insertions(+), 15 deletions(-)
5
6 diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
7 index 71fcb542869..5e1f4a0be4a 100644
8 --- a/eclass/apache-2.eclass
9 +++ b/eclass/apache-2.eclass
10 @@ -3,8 +3,8 @@
11
12 # @ECLASS: apache-2.eclass
13 # @MAINTAINER:
14 -# polynomial-c@g.o
15 -# @SUPPORTED_EAPIS: 6 7
16 +# maintainer-needed@g.o
17 +# @SUPPORTED_EAPIS: 7
18 # @BLURB: Provides a common set of functions for apache-2.x ebuilds
19 # @DESCRIPTION:
20 # This eclass handles apache-2.x ebuild functions such as LoadModule generation
21 @@ -16,10 +16,9 @@ inherit autotools flag-o-matic lua-single multilib ssl-cert toolchain-funcs
22 [[ ${CATEGORY}/${PN} != www-servers/apache ]] \
23 && die "Do not use this eclass with anything else than www-servers/apache ebuilds!"
24
25 -case ${EAPI:-0} in
26 - 0|1|2|3|4|5|6)
27 - die "This eclass is banned for EAPI<7"
28 - ;;
29 +case ${EAPI} in
30 + 7) ;;
31 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
32 esac
33
34 # settings which are version specific go in here:
35 @@ -388,7 +387,7 @@ setup_modules() {
36 # This internal function generates the LoadModule lines for httpd.conf based on
37 # the current module selection and MODULE_DEFINES
38 generate_load_module() {
39 - local def= endit=0 m= mod_lines= mod_dir="${ED%/}/usr/$(get_libdir)/apache2/modules"
40 + local def= endit=0 m= mod_lines= mod_dir="${ED}/usr/$(get_libdir)/apache2/modules"
41
42 if use static; then
43 sed -i -e "/%%LOAD_MODULE%%/d" \
44 @@ -675,23 +674,23 @@ apache-2_src_install() {
45 # drop in a convenient link to the manual
46 if use doc ; then
47 sed -i -e "s:VERSION:${PVR}:" \
48 - "${ED%/}/etc/apache2/modules.d/00_apache_manual.conf" \
49 + "${ED}/etc/apache2/modules.d/00_apache_manual.conf" \
50 || die
51 docompress -x /usr/share/doc/${PF}/manual # 503640
52 else
53 - rm -f "${ED%/}/etc/apache2/modules.d/00_apache_manual.conf" \
54 + rm -f "${ED}/etc/apache2/modules.d/00_apache_manual.conf" \
55 || die
56 - rm -Rf "${ED%/}/usr/share/doc/${PF}/manual" || die
57 + rm -rf "${ED}/usr/share/doc/${PF}/manual" || die
58 fi
59
60 # the default icons and error pages get stored in
61 # /usr/share/apache2/{error,icons}
62 dodir /usr/share/apache2
63 - mv -f "${ED%/}/var/www/localhost/error" \
64 - "${ED%/}/usr/share/apache2/error" || die
65 - mv -f "${ED%/}/var/www/localhost/icons" \
66 - "${ED%/}/usr/share/apache2/icons" || die
67 - rm -rf "${ED%/}/var/www/localhost/" || die
68 + mv -f "${ED}/var/www/localhost/error" \
69 + "${ED}/usr/share/apache2/error" || die
70 + mv -f "${ED}/var/www/localhost/icons" \
71 + "${ED}/usr/share/apache2/icons" || die
72 + rm -rf "${ED}/var/www/localhost/" || die
73
74 # set some sane permissions for suexec
75 if use suexec ; then
76 --
77 2.39.0

Replies

Subject Author
Re: [gentoo-dev] [PATCH 04/41] apache-2.eclass: drop EAPI 6 support Hans de Graaff <graaff@g.o>