diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-08-10 22:13:27 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-08-26 15:36:56 +0200 |
commit | 19614203ed03dd6e9bf2f21e74093a16411deb02 (patch) | |
tree | 6d701f8df211609fef8924fab677bc5000ea1327 /sys-devel/icecream | |
parent | sys-devel/icecream: Install dev-util/shadowman data file (diff) | |
download | gentoo-19614203ed03dd6e9bf2f21e74093a16411deb02.tar.gz gentoo-19614203ed03dd6e9bf2f21e74093a16411deb02.tar.bz2 gentoo-19614203ed03dd6e9bf2f21e74093a16411deb02.zip |
sys-devel/icecream: Use dev-util/shadowman for postinst/prerm
Diffstat (limited to 'sys-devel/icecream')
-rw-r--r-- | sys-devel/icecream/icecream-1.0.0-r2.ebuild | 21 |
1 files 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 187928a2290d..ead3cbfcfa51 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 +} |