1 |
commit: b133beeb3fd21ef368c3fe9b8b05b026ec5cd562 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 21 04:10:01 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 21 04:19:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b133beeb |
7 |
|
8 |
sys-devel/icecream: update EAPI 7 -> 8, post-review fixes |
9 |
|
10 |
- Use EAPI 8 |
11 |
- Use conventional double quotes everywhere |
12 |
- Unconditionally install systemd units (see small files policy) |
13 |
- Adapt pkg_* for EAPI 7+ (${ROOT} suffix) |
14 |
- Style changes (place eclass variables before inherit in general, whitespace) |
15 |
- Drop unnecessary econf arg (--enable-fast-install) |
16 |
- Add missing dependencies (libarchive, lzo) |
17 |
|
18 |
Bug: https://bugs.gentoo.org/602492 |
19 |
Closes: https://bugs.gentoo.org/527376 |
20 |
Closes: https://bugs.gentoo.org/642674 |
21 |
Closes: https://bugs.gentoo.org/828135 |
22 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
23 |
|
24 |
sys-devel/icecream/icecream-1.3.1.ebuild | 64 +++++++++++++++----------------- |
25 |
1 file changed, 29 insertions(+), 35 deletions(-) |
26 |
|
27 |
diff --git a/sys-devel/icecream/icecream-1.3.1.ebuild b/sys-devel/icecream/icecream-1.3.1.ebuild |
28 |
index d9443057aaaf..72ab4fad07b2 100644 |
29 |
--- a/sys-devel/icecream/icecream-1.3.1.ebuild |
30 |
+++ b/sys-devel/icecream/icecream-1.3.1.ebuild |
31 |
@@ -1,63 +1,57 @@ |
32 |
-# Copyright 1999-2020 Gentoo Authors |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
# Distributed under the terms of the GNU General Public License v2 |
35 |
|
36 |
-EAPI=7 |
37 |
+EAPI=8 |
38 |
|
39 |
+AT_NOELIBTOOLIZE="yes" |
40 |
inherit autotools systemd tmpfiles |
41 |
|
42 |
-DESCRIPTION='Distributed compiling of C(++) code across several machines; based on distcc' |
43 |
-HOMEPAGE='https://github.com/icecc/icecream' |
44 |
+DESCRIPTION="Distributed compiler with a central scheduler to share build load" |
45 |
+HOMEPAGE="https://github.com/icecc/icecream" |
46 |
SRC_URI="https://github.com/icecc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
|
48 |
-LICENSE='GPL-2' |
49 |
-SLOT='0' |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" |
53 |
-IUSE='systemd' |
54 |
|
55 |
-DEPEND=' |
56 |
+DEPEND="app-arch/libarchive:= |
57 |
+ app-arch/zstd:= |
58 |
acct-user/icecream |
59 |
acct-group/icecream |
60 |
- sys-libs/libcap-ng |
61 |
- app-text/docbook2X |
62 |
- app-arch/zstd |
63 |
-' |
64 |
-RDEPEND=" |
65 |
- ${DEPEND} |
66 |
- dev-util/shadowman |
67 |
- systemd? ( sys-apps/systemd ) |
68 |
-" |
69 |
- |
70 |
-AT_NOELIBTOOLIZE='yes' |
71 |
+ dev-libs/lzo:2 |
72 |
+ sys-libs/libcap-ng" |
73 |
+RDEPEND="${DEPEND} |
74 |
+ dev-util/shadowman" |
75 |
+BDEPEND="app-text/docbook2X" |
76 |
|
77 |
src_prepare() { |
78 |
default |
79 |
+ |
80 |
eautoreconf |
81 |
} |
82 |
|
83 |
src_configure() { |
84 |
econf \ |
85 |
--enable-clang-rewrite-includes \ |
86 |
- --enable-clang-wrappers \ |
87 |
- --disable-fast-install |
88 |
+ --enable-clang-wrappers |
89 |
} |
90 |
|
91 |
src_install() { |
92 |
default |
93 |
- find "${D}" -name '*.la' -delete || die |
94 |
- |
95 |
- if use systemd; then |
96 |
- systemd_dounit "${FILESDIR}/iceccd.service" |
97 |
- systemd_dounit "${FILESDIR}/icecc-scheduler.service" |
98 |
- else |
99 |
- newconfd suse/sysconfig.icecream icecream |
100 |
- newinitd "${FILESDIR}/icecream.openrc" icecream |
101 |
- fi |
102 |
+ |
103 |
+ find "${ED}" -name '*.la' -delete || die |
104 |
+ |
105 |
+ systemd_dounit "${FILESDIR}"/iceccd.service |
106 |
+ systemd_dounit "${FILESDIR}"/icecc-scheduler.service |
107 |
+ |
108 |
+ newconfd suse/sysconfig.icecream icecream |
109 |
+ newinitd "${FILESDIR}"/icecream.openrc icecream |
110 |
|
111 |
keepdir /var/log/icecream |
112 |
fowners icecream:icecream /var/log/icecream |
113 |
- fperms 0750 /var/log/icecream |
114 |
+ fperms 0750 /var/log/icecream |
115 |
|
116 |
- newtmpfiles "${FILESDIR}/icecream-tmpfiles.conf" icecream.conf |
117 |
+ newtmpfiles "${FILESDIR}"/icecream-tmpfiles.conf icecream.conf |
118 |
|
119 |
insinto /etc/logrotate.d |
120 |
newins suse/logrotate icecream |
121 |
@@ -67,11 +61,11 @@ src_install() { |
122 |
doins suse/icecc-scheduler.xml |
123 |
|
124 |
insinto /usr/share/shadowman/tools |
125 |
- newins - icecc <<<'/usr/libexec/icecc/bin' |
126 |
+ newins - icecc <<<"${EPREFIX}"/usr/libexec/icecc/bin |
127 |
} |
128 |
|
129 |
pkg_prerm() { |
130 |
- if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then |
131 |
+ if [[ -z ${REPLACED_BY_VERSION} && -z ${ROOT} ]]; then |
132 |
eselect compiler-shadow remove icecc |
133 |
fi |
134 |
} |
135 |
@@ -79,7 +73,7 @@ pkg_prerm() { |
136 |
pkg_postinst() { |
137 |
tmpfiles_process icecream.conf |
138 |
|
139 |
- if [[ ${ROOT} == / ]]; then |
140 |
+ if [[ -z ${ROOT} ]]; then |
141 |
eselect compiler-shadow update icecc |
142 |
fi |
143 |
} |