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 / +13 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 28-33 Link Here
28
		-e "/^LIBDIR=/s:lib:$(get_libdir):" \
28
		-e "/^LIBDIR=/s:lib:$(get_libdir):" \
29
		-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
29
		-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
30
		"${FILESDIR}"/ccache-config-2 > ccache-config || die
30
		"${FILESDIR}"/ccache-config-2 > ccache-config || die
31
32
	DOC_CONTENTS="To use ccache with **non-Portage** C compiling, add
33
		${EPREFIX}/usr/$(get_libdir)/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
34
		Portage 2.0.46-r11+ will automatically take advantage of ccache with
35
		no additional steps.  If this is your first install of ccache, type
36
		something like this to set a maximum cache size of 2GB:\\n# ccache -M 2G\\n
37
		If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
38
		# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
39
		ccache now supports sys-devel/clang and dev-lang/icc, too!"
31
}
40
}
32
41
33
src_install() {
42
src_install() {
Lines 35-40 Link Here
35
	dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
44
	dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
36
45
37
	dobin ccache-config
46
	dobin ccache-config
47
48
	readme.gentoo_create_doc
38
}
49
}
39
50
40
pkg_prerm() {
51
pkg_prerm() {
Lines 53-73 Link Here
53
	[[ -d "${EROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
64
	[[ -d "${EROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
54
		rm -rf "${EROOT}/usr/$(get_libdir)/ccache.backup"
65
		rm -rf "${EROOT}/usr/$(get_libdir)/ccache.backup"
55
66
56
	if [[ -z ${REPLACING_VERSIONS} ]] ; then
67
	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
}
68
}

Return to bug 486404