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 10/12] sys-devel/icecream: Use dev-util/shadowman for postinst/prerm
Date: Thu, 17 Aug 2017 08:42:09
Message-Id: 20170817083641.3507-11-mgorny@gentoo.org
In Reply to: [gentoo-dev] [RFC] [PATCH] dev-util/shadowman: Unified tool to update ccache/distcc/icecc shadow dir by "Michał Górny"
1 ---
2 sys-devel/icecream/icecream-1.0.0-r2.ebuild | 11 +++++++++++
3 1 file changed, 11 insertions(+)
4
5 diff --git a/sys-devel/icecream/icecream-1.0.0-r2.ebuild b/sys-devel/icecream/icecream-1.0.0-r2.ebuild
6 index 187928a2290d..11a57f81722e 100644
7 --- a/sys-devel/icecream/icecream-1.0.0-r2.ebuild
8 +++ b/sys-devel/icecream/icecream-1.0.0-r2.ebuild
9 @@ -17,6 +17,7 @@ KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
10 IUSE=""
11
12 RDEPEND="
13 + dev-util/shadowman
14 sys-libs/libcap-ng
15 "
16 DEPEND="${RDEPEND}"
17 @@ -52,3 +53,13 @@ src_install() {
18 insinto /usr/share/shadowman/tools
19 newins - icecc <<<'/usr/libexec/icecc/bin'
20 }
21 +
22 +pkg_prerm() {
23 + if [[ -z ${REPLACED_BY_VERSION} ]]; then
24 + eselect compiler-shadow remove icecc
25 + fi
26 +}
27 +
28 +pkg_postinst() {
29 + eselect compiler-shadow update icecc
30 +}
31 --
32 2.14.1