Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: cluster@g.o, robbat2@g.o, toolchain@g.o, suse@g.o, llvm@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH v2 08/12] sys-devel/icecream: Convert to EAPI=6
Date: Sun, 20 Aug 2017 10:30:43
Message-Id: 20170820102659.19050-8-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH v2 01/12] dev-util/shadowman: New package by "Michał Górny"
1 ---
2 sys-devel/icecream/icecream-1.0.0-r2.ebuild | 51 +++++++++++++++++++++++++++++
3 1 file changed, 51 insertions(+)
4 create mode 100644 sys-devel/icecream/icecream-1.0.0-r2.ebuild
5
6 diff --git a/sys-devel/icecream/icecream-1.0.0-r2.ebuild b/sys-devel/icecream/icecream-1.0.0-r2.ebuild
7 new file mode 100644
8 index 000000000000..ec2858a94ac8
9 --- /dev/null
10 +++ b/sys-devel/icecream/icecream-1.0.0-r2.ebuild
11 @@ -0,0 +1,51 @@
12 +# Copyright 1999-2017 Gentoo Foundation
13 +# Distributed under the terms of the GNU General Public License v2
14 +
15 +EAPI=6
16 +
17 +MY_P="${P/icecream/icecc}"
18 +
19 +inherit user
20 +
21 +DESCRIPTION="icecc is a program for distributed compiling of C(++) code across several machines; based on distcc"
22 +HOMEPAGE="https://github.com/icecc/icecream"
23 +SRC_URI="ftp://ftp.suse.com/pub/projects/${PN}/${MY_P}.tar.bz2"
24 +
25 +LICENSE="GPL-2"
26 +SLOT="0"
27 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
28 +IUSE=""
29 +
30 +RDEPEND="
31 + sys-libs/libcap-ng
32 +"
33 +DEPEND="${RDEPEND}"
34 +
35 +S="${WORKDIR}/${MY_P}"
36 +
37 +PATCHES=(
38 + "${FILESDIR}/${P}-libcap-ng.patch"
39 +)
40 +
41 +pkg_setup() {
42 + enewgroup icecream
43 + enewuser icecream -1 -1 /var/cache/icecream icecream
44 +}
45 +
46 +src_configure() {
47 + econf \
48 + --enable-shared --disable-static \
49 + --enable-clang-wrappers \
50 + --enable-clang-rewrite-includes
51 +}
52 +
53 +src_install() {
54 + default
55 + find "${D}" -name '*.la' -delete || die
56 +
57 + newconfd suse/sysconfig.icecream icecream
58 + newinitd "${FILESDIR}"/icecream-r2 icecream
59 +
60 + insinto /etc/logrotate.d
61 + newins suse/logrotate icecream
62 +}
63 --
64 2.14.1