Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/
Date: Mon, 15 Oct 2018 21:13:46
Message-Id: 1539638009.482a8f5f0eb3edc6195817819a87652c95f08c15.slyfox@gentoo
1 commit: 482a8f5f0eb3edc6195817819a87652c95f08c15
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 15 20:50:31 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 15 21:13:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=482a8f5f
7
8 dev-util/ccache: bump up to 3.5
9
10 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-util/ccache/Manifest | 1 +
14 dev-util/ccache/ccache-3.5.ebuild | 82 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 83 insertions(+)
16
17 diff --git a/dev-util/ccache/Manifest b/dev-util/ccache/Manifest
18 index 538e0523710..bcff8ea031f 100644
19 --- a/dev-util/ccache/Manifest
20 +++ b/dev-util/ccache/Manifest
21 @@ -1,3 +1,4 @@
22 DIST ccache-3.2.4.tar.xz 302548 BLAKE2B 7d642dc3f944183660e79cfdfd68948528aa3ea4ef8162a4d04837c85ccace35107e663ec81a15438dab133fca2e8bf100fecd483f33c9b0aa52c68989ae8122 SHA512 d048b70804c81dece97f3ba511b3c109ec0d14e7dca69bc68faeeb61a4a7b5639c03e3e5ad7dad4e42b4bd198d7a7fffa4e3b7ef99590dfd4df0805db6c25db7
23 DIST ccache-3.3.4.tar.xz 314468 BLAKE2B 6e465598df428979a2c821a698afef25c05d09045cbb54ec54cc3b65b8ce6416b6eb46fae0cf5d60f766129cef11eb01410b522318c67416fdf47f6e8fceae66 SHA512 891bcf11b27fa20a250bc86d182663e46af450a3a807b6cab502f202cd57123ce93bcb1fe5e48866feecda76912a5f742efa5869df9117d81624ba185dd4e02c
24 DIST ccache-3.4.3.tar.xz 328824 BLAKE2B f2ff3276cbadde642a362400b32291f59f60c274861c4c706f0bced801aec7aeeafeeb611331bc23e96fc8790a1d1ffd39df58f24f6a5384d8ddda0da54c9339 SHA512 8a92ef3f3b3688bb4c0b39106bea387ec3065a074327c1fa793e511192acd5cf9aeb5c0065ee8868a944ec63463c2b59fb84edd952102468cd12fcbb1ee16c49
25 +DIST ccache-3.5.tar.xz 334668 BLAKE2B e3e2b63e8c4c8074514fb3a5794325fa05a4d52f48fc436ab0ad21b643ca4d1a1502c989cb47ed68972b105d4f1642e4fadc5ecef1235fe2bd3be5d218094a79 SHA512 92181fb794f06dc231baa4193c37e8f1d844c9281fd64bcb8f4b35c87b4a88dfc9bf36b810b37151ee85699778fcd3783818949a7010e619aeca7e3b33b7a2e3
26
27 diff --git a/dev-util/ccache/ccache-3.5.ebuild b/dev-util/ccache/ccache-3.5.ebuild
28 new file mode 100644
29 index 00000000000..ea736149c66
30 --- /dev/null
31 +++ b/dev-util/ccache/ccache-3.5.ebuild
32 @@ -0,0 +1,82 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit readme.gentoo-r1
39 +
40 +DESCRIPTION="fast compiler cache"
41 +HOMEPAGE="https://ccache.samba.org/"
42 +SRC_URI="https://www.samba.org/ftp/ccache/${P}.tar.xz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
47 +IUSE=""
48 +
49 +DEPEND="app-arch/xz-utils
50 + sys-libs/zlib"
51 +RDEPEND="${DEPEND}
52 + dev-util/shadowman
53 + sys-apps/gentoo-functions"
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/${PN}-3.4-size-on-disk.patch #456178
57 +)
58 +
59 +src_prepare() {
60 + default
61 +
62 + # make sure we always use system zlib
63 + rm -rf src/zlib || die
64 + sed \
65 + -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
66 + "${FILESDIR}"/ccache-config-3 > ccache-config || die
67 +}
68 +
69 +src_compile() {
70 + emake V=1
71 +}
72 +
73 +src_test() {
74 + emake check V=1
75 +}
76 +
77 +src_install() {
78 + DOCS=( doc/{AUTHORS,MANUAL,NEWS}.adoc CONTRIBUTING.md README.md )
79 + default
80 +
81 + dobin ccache-config
82 + insinto /usr/share/shadowman/tools
83 + newins - ccache <<<'/usr/lib/ccache/bin'
84 +
85 + DOC_CONTENTS="
86 +To use ccache with **non-Portage** C compiling, add
87 +${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
88 +Portage 2.0.46-r11+ will automatically take advantage of ccache with
89 +no additional steps. If this is your first install of ccache, type
90 +something like this to set a maximum cache size of 2GB:\\n
91 +# ccache -M 2G\\n
92 +If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
93 +# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
94 +ccache now supports sys-devel/clang and dev-lang/icc, too!"
95 +
96 + readme.gentoo_create_doc
97 +}
98 +
99 +pkg_prerm() {
100 + if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]] ; then
101 + eselect compiler-shadow remove ccache
102 + fi
103 +}
104 +
105 +pkg_postinst() {
106 + if [[ ${ROOT} == / ]]; then
107 + eselect compiler-shadow update ccache
108 + fi
109 +
110 + # nuke broken symlinks from previous versions that shouldn't exist
111 + rm -rf "${EROOT}"/usr/lib/ccache.backup || die
112 +
113 + readme.gentoo_print_elog
114 +}