summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2018-08-01 07:41:40 +0200
committerMartin Väth <martin@mvath.de>2018-08-01 07:41:40 +0200
commit6f57d10014f18868df43b3112f5d2a0c769e8aa7 (patch)
treeb15644e7d2a20bfd764e10d800e627f1e37b49fc
parentdev-util/ccache: add from gentoo repository for version bumping (diff)
downloadmv-6f57d10014f18868df43b3112f5d2a0c769e8aa7.tar.gz
mv-6f57d10014f18868df43b3112f5d2a0c769e8aa7.tar.bz2
mv-6f57d10014f18868df43b3112f5d2a0c769e8aa7.zip
dev-util/ccache: Fix installation. EAPI=7 fixes
-rw-r--r--dev-util/ccache/ccache-3.4.2.ebuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/dev-util/ccache/ccache-3.4.2.ebuild b/dev-util/ccache/ccache-3.4.2.ebuild
index a67e1c97..41543471 100644
--- a/dev-util/ccache/ccache-3.4.2.ebuild
+++ b/dev-util/ccache/ccache-3.4.2.ebuild
@@ -27,7 +27,6 @@ src_prepare() {
}
src_install() {
- DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.md )
default
insinto /usr/share/shadowman/tools
@@ -48,15 +47,12 @@ ccache now supports sys-devel/clang and dev-lang/icc, too!"
}
pkg_prerm() {
- if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]] ; then
+ [ -n "${REPLACED_BY_VERSION}${ROOT}" ] || \
eselect compiler-shadow remove ccache
- fi
}
pkg_postinst() {
- if [[ ${ROOT} == / ]]; then
- eselect compiler-shadow update ccache
- fi
+ [ -n "${ROOT}" ] || eselect compiler-shadow update ccache
# nuke broken symlinks from previous versions that shouldn't exist
rm -rf "${EROOT}"/usr/lib/ccache.backup || die