--- /usr/portage/dev-util/ccache/ccache-3.1.9-r2.ebuild 2013-09-28 16:44:47.000000000 -0600 +++ ccache-3.1.9-r3.ebuild 2013-09-28 19:20:58.884592802 -0600 @@ -4,7 +4,7 @@ EAPI="4" -inherit multilib eutils +inherit multilib eutils readme.gentoo DESCRIPTION="fast compiler cache" HOMEPAGE="http://ccache.samba.org/" @@ -35,6 +35,19 @@ dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt dobin ccache-config + + DOC_CONTENTS=" +To use ccache with **non-Portage** C compiling, add +${EPREFIX}/usr/$(get_libdir)/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin. +Portage 2.0.46-r11+ will automatically take advantage of ccache with +no additional steps. If this is your first install of ccache, type +something like this to set a maximum cache size of 2GB:\\n +# ccache -M 2G\\n +If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n +# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n +ccache now supports sys-devel/clang and dev-lang/icc, too!" + + readme.gentoo_create_doc } pkg_prerm() { @@ -53,21 +66,5 @@ [[ -d "${EROOT}/usr/$(get_libdir)/ccache.backup" ]] && \ rm -rf "${EROOT}/usr/$(get_libdir)/ccache.backup" - if [[ -z ${REPLACING_VERSIONS} ]] ; then - elog "To use ccache with **non-Portage** C compiling, add" - elog "${EPREFIX}/usr/$(get_libdir)/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin." - elog "Portage 2.0.46-r11+ will automatically take advantage of ccache with" - elog "no additional steps." - elog - elog "You might want to set a maximum cache size:" - elog "# ccache -M 2G" - fi - if has_version "<${CATEGORY}/${PN}-3" ; then - elog "If you are upgrading from an older version than 3.x you should clear" - elog "all of your caches like so:" - elog "# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C" - fi - if has_version "<${CATEGORY}/${PN}-3.1.9-r2" ; then - elog "ccache now supports sys-devel/clang and dev-lang/icc, too!" - fi + readme.gentoo_pkg_postinst }