Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/icecream/
Date: Sat, 26 Aug 2017 13:37:09
Message-Id: 1503754616.19614203ed03dd6e9bf2f21e74093a16411deb02.mgorny@gentoo
1 commit: 19614203ed03dd6e9bf2f21e74093a16411deb02
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 10 20:13:27 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 26 13:36:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19614203
7
8 sys-devel/icecream: Use dev-util/shadowman for postinst/prerm
9
10 sys-devel/icecream/icecream-1.0.0-r2.ebuild | 21 ++++++++++++++++++---
11 1 file changed, 18 insertions(+), 3 deletions(-)
12
13 diff --git a/sys-devel/icecream/icecream-1.0.0-r2.ebuild b/sys-devel/icecream/icecream-1.0.0-r2.ebuild
14 index 187928a2290..ead3cbfcfa5 100644
15 --- a/sys-devel/icecream/icecream-1.0.0-r2.ebuild
16 +++ b/sys-devel/icecream/icecream-1.0.0-r2.ebuild
17 @@ -13,13 +13,16 @@ SRC_URI="ftp://ftp.suse.com/pub/projects/${PN}/${MY_P}.tar.bz2"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
22 +KEYWORDS="~amd64 ~x86"
23 IUSE=""
24
25 -RDEPEND="
26 +DEPEND="
27 sys-libs/libcap-ng
28 "
29 -DEPEND="${RDEPEND}"
30 +RDEPEND="
31 + ${DEPEND}
32 + dev-util/shadowman
33 +"
34
35 S="${WORKDIR}/${MY_P}"
36
37 @@ -52,3 +55,15 @@ src_install() {
38 insinto /usr/share/shadowman/tools
39 newins - icecc <<<'/usr/libexec/icecc/bin'
40 }
41 +
42 +pkg_prerm() {
43 + if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then
44 + eselect compiler-shadow remove icecc
45 + fi
46 +}
47 +
48 +pkg_postinst() {
49 + if [[ ${ROOT} == / ]]; then
50 + eselect compiler-shadow update icecc
51 + fi
52 +}