commit:     19614203ed03dd6e9bf2f21e74093a16411deb02
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 10 20:13:27 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 26 13:36:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19614203

sys-devel/icecream: Use dev-util/shadowman for postinst/prerm

 sys-devel/icecream/icecream-1.0.0-r2.ebuild | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/sys-devel/icecream/icecream-1.0.0-r2.ebuild 
b/sys-devel/icecream/icecream-1.0.0-r2.ebuild
index 187928a2290..ead3cbfcfa5 100644
--- a/sys-devel/icecream/icecream-1.0.0-r2.ebuild
+++ b/sys-devel/icecream/icecream-1.0.0-r2.ebuild
@@ -13,13 +13,16 @@ 
SRC_URI="ftp://ftp.suse.com/pub/projects/${PN}/${MY_P}.tar.bz2";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
+KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-RDEPEND="
+DEPEND="
        sys-libs/libcap-ng
 "
-DEPEND="${RDEPEND}"
+RDEPEND="
+       ${DEPEND}
+       dev-util/shadowman
+"
 
 S="${WORKDIR}/${MY_P}"
 
@@ -52,3 +55,15 @@ src_install() {
        insinto /usr/share/shadowman/tools
        newins - icecc <<<'/usr/libexec/icecc/bin'
 }
+
+pkg_prerm() {
+       if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then
+               eselect compiler-shadow remove icecc
+       fi
+}
+
+pkg_postinst() {
+       if [[ ${ROOT} == / ]]; then
+               eselect compiler-shadow update icecc
+       fi
+}

Reply via email to