1 |
commit: 308c3d52f1b34e45e086d0c5264a86bf943def40 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 11:11:28 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 16:17:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=308c3d52 |
7 |
|
8 |
sys-devel/icecream: migrate to GLEP 81 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/781506 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
sys-devel/icecream/icecream-1.0.0-r3.ebuild | 62 +++++++++++++++++++++++++++++ |
15 |
1 file changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/sys-devel/icecream/icecream-1.0.0-r3.ebuild b/sys-devel/icecream/icecream-1.0.0-r3.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..53e06f4ae2b |
20 |
--- /dev/null |
21 |
+++ b/sys-devel/icecream/icecream-1.0.0-r3.ebuild |
22 |
@@ -0,0 +1,62 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+MY_P="${P/icecream/icecc}" |
29 |
+ |
30 |
+DESCRIPTION="Distributed compiling of C(++) code across several machines; based on distcc" |
31 |
+HOMEPAGE="https://github.com/icecc/icecream" |
32 |
+SRC_URI="ftp://ftp.suse.com/pub/projects/${PN}/${MY_P}.tar.bz2" |
33 |
+S="${WORKDIR}/${MY_P}" |
34 |
+ |
35 |
+LICENSE="GPL-2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" |
38 |
+ |
39 |
+DEPEND="sys-libs/libcap-ng" |
40 |
+RDEPEND=" |
41 |
+ ${DEPEND} |
42 |
+ acct-group/icecream |
43 |
+ acct-user/icecream |
44 |
+ dev-util/shadowman |
45 |
+" |
46 |
+ |
47 |
+PATCHES=( "${FILESDIR}/${P}-libcap-ng.patch" ) |
48 |
+ |
49 |
+src_configure() { |
50 |
+ local myeconfargs=( |
51 |
+ --enable-shared --disable-static |
52 |
+ --enable-clang-wrappers |
53 |
+ --enable-clang-rewrite-includes |
54 |
+ ) |
55 |
+ |
56 |
+ econf "${myeconfargs[@]}" |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ default |
61 |
+ |
62 |
+ newconfd suse/sysconfig.icecream icecream |
63 |
+ newinitd "${FILESDIR}"/icecream-r2 icecream |
64 |
+ |
65 |
+ insinto /etc/logrotate.d |
66 |
+ newins suse/logrotate icecream |
67 |
+ |
68 |
+ insinto /usr/share/shadowman/tools |
69 |
+ newins - icecc <<<'/usr/libexec/icecc/bin' |
70 |
+ |
71 |
+ find "${D}" -name '*.la' -delete || die |
72 |
+} |
73 |
+ |
74 |
+pkg_prerm() { |
75 |
+ if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then |
76 |
+ eselect compiler-shadow remove icecc |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+pkg_postinst() { |
81 |
+ if [[ ${ROOT} == / ]]; then |
82 |
+ eselect compiler-shadow update icecc |
83 |
+ fi |
84 |
+} |