diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-08-10 23:20:52 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-08-26 15:36:57 +0200 |
commit | 66dbf057c436385de5f493c959b3cb249bb8a49a (patch) | |
tree | 78cbfd940aa01ebe869a54fd5ae09f9df76c2482 /sys-devel/clang/clang-9999.ebuild | |
parent | toolchain.eclass: Update masquerades via dev-util/shadowman postinst/rm (diff) | |
download | gentoo-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-9999.ebuild')
-rw-r--r-- | sys-devel/clang/clang-9999.ebuild | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index 8dd135d6aa25..010df120d1d5 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -277,3 +277,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 +} |