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