---
dev-util/ccache/ccache-3.3.4-r1.ebuild | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
changes in v2: do not apply magic when ROOT!=/
diff --git a/dev-util/ccache/ccache-3.3.4-r1.ebuild
b/dev-util/ccache/ccache-3.3.4-r1.ebuild
index 2fd005d88041..4b0d4dddc994 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() {
@@ -52,18 +53,17 @@ 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}
+ if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]] ; then
+ eselect compiler-shadow remove ccache
fi
}
pkg_postinst() {
- "${EROOT}"/usr/bin/ccache-config --install-links
- "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
+ if [[ ${ROOT} == / ]]; then
+ eselect compiler-shadow update ccache
+ fi
# 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