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