summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-08-10 23:20:52 +0200
committerMichał Górny <mgorny@gentoo.org>2017-08-26 15:36:57 +0200
commit66dbf057c436385de5f493c959b3cb249bb8a49a (patch)
tree78cbfd940aa01ebe869a54fd5ae09f9df76c2482 /sys-devel/clang/clang-4.0.1.ebuild
parenttoolchain.eclass: Update masquerades via dev-util/shadowman postinst/rm (diff)
downloadgentoo-66dbf057c436385de5f493c959b3cb249bb8a49a.tar.gz
gentoo-66dbf057c436385de5f493c959b3cb249bb8a49a.tar.bz2
gentoo-66dbf057c436385de5f493c959b3cb249bb8a49a.zip
sys-devel/clang: Enable masquerades via dev-util/shadowman
Closes: https://github.com/gentoo/gentoo/pull/5386
Diffstat (limited to 'sys-devel/clang/clang-4.0.1.ebuild')
-rw-r--r--sys-devel/clang/clang-4.0.1.ebuild12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-devel/clang/clang-4.0.1.ebuild b/sys-devel/clang/clang-4.0.1.ebuild
index 21a5adf2696..821cae0ab5b 100644
--- a/sys-devel/clang/clang-4.0.1.ebuild
+++ b/sys-devel/clang/clang-4.0.1.ebuild
@@ -276,3 +276,15 @@ multilib_src_install_all() {
# +x for some reason; TODO: investigate
use static-analyzer && fperms a-x "/usr/lib/llvm/${SLOT}/share/man/man1/scan-build.1"
}
+
+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
+}