1 |
commit: d312d6ee5684543057c01f6880d5cf85d7c04c9b |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 3 18:43:14 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 3 18:45:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d312d6ee |
7 |
|
8 |
dev-util/ccache: bump up to 3.5.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.53, 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.5.1.ebuild | 84 ++++++++++++++++++++++ |
15 |
dev-util/ccache/files/ccache-3.5.1-configure.patch | 19 +++++ |
16 |
3 files changed, 104 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/ccache/Manifest b/dev-util/ccache/Manifest |
19 |
index bcff8ea031f..fd20b0190a1 100644 |
20 |
--- a/dev-util/ccache/Manifest |
21 |
+++ b/dev-util/ccache/Manifest |
22 |
@@ -1,4 +1,5 @@ |
23 |
DIST ccache-3.2.4.tar.xz 302548 BLAKE2B 7d642dc3f944183660e79cfdfd68948528aa3ea4ef8162a4d04837c85ccace35107e663ec81a15438dab133fca2e8bf100fecd483f33c9b0aa52c68989ae8122 SHA512 d048b70804c81dece97f3ba511b3c109ec0d14e7dca69bc68faeeb61a4a7b5639c03e3e5ad7dad4e42b4bd198d7a7fffa4e3b7ef99590dfd4df0805db6c25db7 |
24 |
DIST ccache-3.3.4.tar.xz 314468 BLAKE2B 6e465598df428979a2c821a698afef25c05d09045cbb54ec54cc3b65b8ce6416b6eb46fae0cf5d60f766129cef11eb01410b522318c67416fdf47f6e8fceae66 SHA512 891bcf11b27fa20a250bc86d182663e46af450a3a807b6cab502f202cd57123ce93bcb1fe5e48866feecda76912a5f742efa5869df9117d81624ba185dd4e02c |
25 |
DIST ccache-3.4.3.tar.xz 328824 BLAKE2B f2ff3276cbadde642a362400b32291f59f60c274861c4c706f0bced801aec7aeeafeeb611331bc23e96fc8790a1d1ffd39df58f24f6a5384d8ddda0da54c9339 SHA512 8a92ef3f3b3688bb4c0b39106bea387ec3065a074327c1fa793e511192acd5cf9aeb5c0065ee8868a944ec63463c2b59fb84edd952102468cd12fcbb1ee16c49 |
26 |
+DIST ccache-3.5.1.tar.xz 335988 BLAKE2B f9cb8d48b16ebf48a409af6e69f16606e543144781b9988f25f5031dd7c4137709e32f76f6ae8879aef425064e6dce112195849008f2dcc9b6deb39d2726cae5 SHA512 25956ac68f24b3a443d9cf74fe759d9d5946e2f2188d40538a31d383550c6674c22f7e9290ceb71f1ee3987ed8f2802343a5a137b2f68692008ead3a347761af |
27 |
DIST ccache-3.5.tar.xz 334668 BLAKE2B e3e2b63e8c4c8074514fb3a5794325fa05a4d52f48fc436ab0ad21b643ca4d1a1502c989cb47ed68972b105d4f1642e4fadc5ecef1235fe2bd3be5d218094a79 SHA512 92181fb794f06dc231baa4193c37e8f1d844c9281fd64bcb8f4b35c87b4a88dfc9bf36b810b37151ee85699778fcd3783818949a7010e619aeca7e3b33b7a2e3 |
28 |
|
29 |
diff --git a/dev-util/ccache/ccache-3.5.1.ebuild b/dev-util/ccache/ccache-3.5.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..b57ecc61aab |
32 |
--- /dev/null |
33 |
+++ b/dev-util/ccache/ccache-3.5.1.ebuild |
34 |
@@ -0,0 +1,84 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit readme.gentoo-r1 |
41 |
+ |
42 |
+DESCRIPTION="fast compiler cache" |
43 |
+HOMEPAGE="https://ccache.samba.org/" |
44 |
+SRC_URI="https://www.samba.org/ftp/ccache/${P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" |
49 |
+IUSE="" |
50 |
+ |
51 |
+DEPEND="app-arch/xz-utils |
52 |
+ sys-libs/zlib" |
53 |
+RDEPEND="${DEPEND} |
54 |
+ dev-util/shadowman |
55 |
+ sys-apps/gentoo-functions" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}"/${PN}-3.4-size-on-disk.patch #456178 |
59 |
+ "${FILESDIR}"/${PN}-3.5-nvcc-test.patch |
60 |
+ "${FILESDIR}"/${PN}-3.5.1-configure.patch |
61 |
+) |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ |
66 |
+ # make sure we always use system zlib |
67 |
+ rm -rf src/zlib || die |
68 |
+ sed \ |
69 |
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \ |
70 |
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ emake V=1 |
75 |
+} |
76 |
+ |
77 |
+src_test() { |
78 |
+ emake check V=1 |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ DOCS=( doc/{AUTHORS,MANUAL,NEWS}.adoc CONTRIBUTING.md README.md ) |
83 |
+ default |
84 |
+ |
85 |
+ dobin ccache-config |
86 |
+ insinto /usr/share/shadowman/tools |
87 |
+ newins - ccache <<<'/usr/lib/ccache/bin' |
88 |
+ |
89 |
+ DOC_CONTENTS=" |
90 |
+To use ccache with **non-Portage** C compiling, add |
91 |
+${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin. |
92 |
+Portage 2.0.46-r11+ will automatically take advantage of ccache with |
93 |
+no additional steps. If this is your first install of ccache, type |
94 |
+something like this to set a maximum cache size of 2GB:\\n |
95 |
+# ccache -M 2G\\n |
96 |
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n |
97 |
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n |
98 |
+ccache now supports sys-devel/clang and dev-lang/icc, too!" |
99 |
+ |
100 |
+ readme.gentoo_create_doc |
101 |
+} |
102 |
+ |
103 |
+pkg_prerm() { |
104 |
+ if [[ -z ${REPLACED_BY_VERSION} && ${ROOT:-/} == / ]] ; then |
105 |
+ eselect compiler-shadow remove ccache |
106 |
+ fi |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ if [[ ${ROOT:-/} == / ]]; then |
111 |
+ eselect compiler-shadow update ccache |
112 |
+ fi |
113 |
+ |
114 |
+ # nuke broken symlinks from previous versions that shouldn't exist |
115 |
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die |
116 |
+ |
117 |
+ readme.gentoo_print_elog |
118 |
+} |
119 |
|
120 |
diff --git a/dev-util/ccache/files/ccache-3.5.1-configure.patch b/dev-util/ccache/files/ccache-3.5.1-configure.patch |
121 |
new file mode 100644 |
122 |
index 00000000000..b3e1a29670a |
123 |
--- /dev/null |
124 |
+++ b/dev-util/ccache/files/ccache-3.5.1-configure.patch |
125 |
@@ -0,0 +1,19 @@ |
126 |
+https://github.com/ccache/ccache/issues/344 |
127 |
+ |
128 |
+--- a/configure |
129 |
++++ b/configure |
130 |
+@@ -642,4 +642,5 @@ no_implicit_fallthrough_warning |
131 |
+ more_warnings |
132 |
+ include_dev_mk |
133 |
++getopt_long_c |
134 |
+ extra_libs |
135 |
+ disable_man |
136 |
+@@ -4724,4 +4725,8 @@ done |
137 |
+ |
138 |
+ |
139 |
++if test x"$ac_cv_func_getopt_long" != x"yes"; then |
140 |
++ getopt_long_c="src/getopt_long.c" |
141 |
++fi |
142 |
++ |
143 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compar_fn_t in stdlib.h" >&5 |
144 |
+ $as_echo_n "checking for compar_fn_t in stdlib.h... " >&6; } |