Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 486404 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-util/ccache/ccache-3.1.9-r2.ebuild (-18 / +15 lines)
Lines 4-10 Link Here
4
4
5
EAPI="4"
5
EAPI="4"
6
6
7
inherit multilib eutils
7
inherit multilib eutils readme.gentoo
8
8
9
DESCRIPTION="fast compiler cache"
9
DESCRIPTION="fast compiler cache"
10
HOMEPAGE="http://ccache.samba.org/"
10
HOMEPAGE="http://ccache.samba.org/"
Lines 35-40 Link Here
35
	dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
35
	dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
36
36
37
	dobin ccache-config
37
	dobin ccache-config
38
39
	DOC_CONTENTS="
40
To use ccache with **non-Portage** C compiling, add
41
${EPREFIX}/usr/$(get_libdir)/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
42
Portage 2.0.46-r11+ will automatically take advantage of ccache with
43
no additional steps.  If this is your first install of ccache, type
44
something like this to set a maximum cache size of 2GB:\\n
45
# ccache -M 2G\\n
46
If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
47
# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
48
ccache now supports sys-devel/clang and dev-lang/icc, too!"
49
50
	readme.gentoo_create_doc
38
}
51
}
39
52
40
pkg_prerm() {
53
pkg_prerm() {
Lines 53-73 Link Here
53
	[[ -d "${EROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
66
	[[ -d "${EROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
54
		rm -rf "${EROOT}/usr/$(get_libdir)/ccache.backup"
67
		rm -rf "${EROOT}/usr/$(get_libdir)/ccache.backup"
55
68
56
	if [[ -z ${REPLACING_VERSIONS} ]] ; then
69
	readme.gentoo_pkg_postinst
57
		elog "To use ccache with **non-Portage** C compiling, add"
58
		elog "${EPREFIX}/usr/$(get_libdir)/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin."
59
		elog "Portage 2.0.46-r11+ will automatically take advantage of ccache with"
60
		elog "no additional steps."
61
		elog
62
		elog "You might want to set a maximum cache size:"
63
		elog "# ccache -M 2G"
64
	fi
65
	if has_version "<${CATEGORY}/${PN}-3" ; then
66
		elog "If you are upgrading from an older version than 3.x you should clear"
67
		elog "all of your caches like so:"
68
		elog "# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C"
69
	fi
70
	if has_version "<${CATEGORY}/${PN}-3.1.9-r2" ; then
71
		elog "ccache now supports sys-devel/clang and dev-lang/icc, too!"
72
	fi
73
}
70
}

Return to bug 486404