1 |
commit: 46e0a674839ad03bf82cf6f5af270439e15e3004 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 15 21:54:22 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 15 22:11:35 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46e0a674 |
7 |
|
8 |
dev-util/ccache: bump up to 3.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.55, Repoman-2.3.12 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-util/ccache/Manifest | 1 + |
14 |
dev-util/ccache/ccache-3.6.ebuild | 83 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 84 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/ccache/Manifest b/dev-util/ccache/Manifest |
18 |
index a317bc0c7bb..90c9e12b9d0 100644 |
19 |
--- a/dev-util/ccache/Manifest |
20 |
+++ b/dev-util/ccache/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST ccache-3.2.4.tar.xz 302548 BLAKE2B 7d642dc3f944183660e79cfdfd68948528aa3ea4 |
22 |
DIST ccache-3.3.4.tar.xz 314468 BLAKE2B 6e465598df428979a2c821a698afef25c05d09045cbb54ec54cc3b65b8ce6416b6eb46fae0cf5d60f766129cef11eb01410b522318c67416fdf47f6e8fceae66 SHA512 891bcf11b27fa20a250bc86d182663e46af450a3a807b6cab502f202cd57123ce93bcb1fe5e48866feecda76912a5f742efa5869df9117d81624ba185dd4e02c |
23 |
DIST ccache-3.5.1a.tar.xz 335888 BLAKE2B 66c044b39dd42c91327e02528a4d6c917ac012c2d08190f7dbc2029ed6d1525aa3a6262fb7528f1721cec510306baa59b498a5afbcf955bb6aaf13594c00d178 SHA512 8a2e9eb06ba21fcf92084afd94fc221168693de545e0448f4da2098bef2bcbfdb017117c325b0bab4931b9e346dd8c1a9d1ebaed0cdc36496d9452985cdd1b43 |
24 |
DIST ccache-3.5.tar.xz 334668 BLAKE2B e3e2b63e8c4c8074514fb3a5794325fa05a4d52f48fc436ab0ad21b643ca4d1a1502c989cb47ed68972b105d4f1642e4fadc5ecef1235fe2bd3be5d218094a79 SHA512 92181fb794f06dc231baa4193c37e8f1d844c9281fd64bcb8f4b35c87b4a88dfc9bf36b810b37151ee85699778fcd3783818949a7010e619aeca7e3b33b7a2e3 |
25 |
+DIST ccache-3.6.tar.xz 340608 BLAKE2B fa92180f53612f84b71c68da4acccefee129e5bfc9b269caa45a9c16219ed835ccf034d61ff938a54f3673fa23410d960475cc37cf5d27d7be641e7518a43f0a SHA512 13ce4c9084983ce77617cf005235987715cd6b630dac13a17cb9badce24aab71bff505e63da4206878e32d337cc674f05fbf78540711ec5b33a0b8384c47fa0d |
26 |
|
27 |
diff --git a/dev-util/ccache/ccache-3.6.ebuild b/dev-util/ccache/ccache-3.6.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..105a8bada3e |
30 |
--- /dev/null |
31 |
+++ b/dev-util/ccache/ccache-3.6.ebuild |
32 |
@@ -0,0 +1,83 @@ |
33 |
+# Copyright 1999-2019 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 |
+ "${FILESDIR}"/${PN}-3.5-nvcc-test.patch |
58 |
+) |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ |
63 |
+ # make sure we always use system zlib |
64 |
+ rm -rf src/zlib || die |
65 |
+ sed \ |
66 |
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \ |
67 |
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ emake V=1 |
72 |
+} |
73 |
+ |
74 |
+src_test() { |
75 |
+ emake check V=1 |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ DOCS=( doc/{AUTHORS,MANUAL,NEWS}.adoc CONTRIBUTING.md README.md ) |
80 |
+ default |
81 |
+ |
82 |
+ dobin ccache-config |
83 |
+ insinto /usr/share/shadowman/tools |
84 |
+ newins - ccache <<<'/usr/lib/ccache/bin' |
85 |
+ |
86 |
+ DOC_CONTENTS=" |
87 |
+To use ccache with **non-Portage** C compiling, add |
88 |
+'${EPREFIX}/usr/lib/ccache/bin' to the beginning of your path, before |
89 |
+'${EPREFIX}/usr/bin'. Portage will automatically take advantage of ccache with |
90 |
+no additional steps. If this is your first install of ccache, type |
91 |
+something like this to set a maximum cache size of 2GB:\\n |
92 |
+# ccache -M 2G\\n |
93 |
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n |
94 |
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n |
95 |
+ccache now supports sys-devel/clang and dev-lang/icc, too!" |
96 |
+ |
97 |
+ readme.gentoo_create_doc |
98 |
+} |
99 |
+ |
100 |
+pkg_prerm() { |
101 |
+ if [[ -z ${REPLACED_BY_VERSION} && ${ROOT:-/} == / ]] ; then |
102 |
+ eselect compiler-shadow remove ccache |
103 |
+ fi |
104 |
+} |
105 |
+ |
106 |
+pkg_postinst() { |
107 |
+ if [[ ${ROOT:-/} == / ]]; then |
108 |
+ eselect compiler-shadow update ccache |
109 |
+ fi |
110 |
+ |
111 |
+ # nuke broken symlinks from previous versions that shouldn't exist |
112 |
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die |
113 |
+ |
114 |
+ readme.gentoo_print_elog |
115 |
+} |