summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-06-22 14:05:07 +0200
committerMichał Górny <mgorny@gentoo.org>2018-06-22 14:10:04 +0200
commit18a83a2720e6d51e444161c44b4aca02317cf004 (patch)
tree7527d270b6166b58d9d4096686bfb31a29c0bebc /sys-devel/multilib-gcc-wrapper
parentprofiles/prefix: Remove redundant python3_6 default (diff)
downloadgentoo-18a83a2720e6d51e444161c44b4aca02317cf004.tar.gz
gentoo-18a83a2720e6d51e444161c44b4aca02317cf004.tar.bz2
gentoo-18a83a2720e6d51e444161c44b4aca02317cf004.zip
sys-devel/multilib-gcc-wrapper: Support updating shadowman symlinks
Diffstat (limited to 'sys-devel/multilib-gcc-wrapper')
-rw-r--r--sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0-r1.ebuild (renamed from sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0.ebuild)14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0.ebuild b/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0-r1.ebuild
index 8094a33d1a1..d003e7aadf6 100644
--- a/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0.ebuild
+++ b/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -69,3 +69,15 @@ src_install() {
eshopts_pop
}
+
+pkg_postinst() {
+ if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
+ eselect compiler-shadow update all
+ fi
+}
+
+pkg_postrm() {
+ if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
+ eselect compiler-shadow clean all
+ fi
+}