--- sys-devel/icecream/icecream-1.0.0-r2.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/sys-devel/icecream/icecream-1.0.0-r2.ebuild b/sys-devel/icecream/icecream-1.0.0-r2.ebuild index 187928a2290d..11a57f81722e 100644 --- a/sys-devel/icecream/icecream-1.0.0-r2.ebuild +++ b/sys-devel/icecream/icecream-1.0.0-r2.ebuild @@ -17,6 +17,7 @@ KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" IUSE="" RDEPEND=" + dev-util/shadowman sys-libs/libcap-ng " DEPEND="${RDEPEND}" @@ -52,3 +53,13 @@ src_install() { insinto /usr/share/shadowman/tools newins - icecc <<<'/usr/libexec/icecc/bin' } + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} ]]; then + eselect compiler-shadow remove icecc + fi +} + +pkg_postinst() { + eselect compiler-shadow update icecc +} -- 2.14.1