---
dev-util/ccache/ccache-3.3.4-r1.ebuild | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dev-util/ccache/ccache-3.3.4-r1.ebuild
b/dev-util/ccache/ccache-3.3.4-r1.ebuild
index 2fd005d88041..5a6ccd9fe56c 100644
--- a/dev-util/ccache/ccache-3.3.4-r1.ebuild
+++ b/dev-util/ccache/ccache-3.3.4-r1.ebuild
@@ -17,6 +17,7 @@ IUSE=""
DEPEND="app-arch/xz-utils
sys-libs/zlib"
RDEPEND="${DEPEND}
+ dev-util/shadowman
sys-apps/gentoo-functions"
src_prepare() {
@@ -53,17 +54,14 @@ ccache now supports sys-devel/clang and dev-lang/icc, too!"
pkg_prerm() {
if [[ -z ${REPLACED_BY_VERSION} ]] ; then
- "${EROOT}"/usr/bin/ccache-config --remove-links
- "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
+ eselect compiler-shadow remove ccache
fi
}
pkg_postinst() {
- "${EROOT}"/usr/bin/ccache-config --install-links
- "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
+ eselect compiler-shadow update ccache
# nuke broken symlinks from previous versions that shouldn't exist
- rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
rm -rf "${EROOT}"/usr/lib/ccache.backup || die
readme.gentoo_print_elog
--
2.14.1