1 |
commit: 4c06333a40da1166407b071e2eebc712b2663c3d |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 13 22:44:04 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 13 22:44:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c06333a |
7 |
|
8 |
games-board/cockatrice: Disable automagic use of ccache with a patch |
9 |
|
10 |
This has been submitted upstream. |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
14 |
|
15 |
games-board/cockatrice/cockatrice-20190304.ebuild | 5 ++++ |
16 |
games-board/cockatrice/files/use-ccache.patch | 33 +++++++++++++++++++++++ |
17 |
2 files changed, 38 insertions(+) |
18 |
|
19 |
diff --git a/games-board/cockatrice/cockatrice-20190304.ebuild b/games-board/cockatrice/cockatrice-20190304.ebuild |
20 |
index bd8edfdaf6b..8d1cd205662 100644 |
21 |
--- a/games-board/cockatrice/cockatrice-20190304.ebuild |
22 |
+++ b/games-board/cockatrice/cockatrice-20190304.ebuild |
23 |
@@ -49,8 +49,13 @@ SHA1='294b433' |
24 |
|
25 |
S="${WORKDIR}/Cockatrice-${MY_PV}" |
26 |
|
27 |
+PATCHES=( |
28 |
+ "${FILESDIR}"/use-ccache.patch |
29 |
+) |
30 |
+ |
31 |
src_configure() { |
32 |
local mycmakeargs=( |
33 |
+ -DUSE_CCACHE=OFF |
34 |
-DWITH_CLIENT=$(usex client) |
35 |
-DWITH_ORACLE=$(usex oracle) |
36 |
-DWITH_SERVER=$(usex server) |
37 |
|
38 |
diff --git a/games-board/cockatrice/files/use-ccache.patch b/games-board/cockatrice/files/use-ccache.patch |
39 |
new file mode 100644 |
40 |
index 00000000000..16deeaf0bb7 |
41 |
--- /dev/null |
42 |
+++ b/games-board/cockatrice/files/use-ccache.patch |
43 |
@@ -0,0 +1,33 @@ |
44 |
+From 494501bbc88d30d9f1ceb6fb3fbd428eeb58ddee Mon Sep 17 00:00:00 2001 |
45 |
+From: James Le Cuirot <chewi@g.o> |
46 |
+Date: Wed, 13 Mar 2019 22:18:45 +0000 |
47 |
+Subject: [PATCH] Add USE_CCACHE option to CMake so that ccache can be forcibly |
48 |
+ disabled |
49 |
+ |
50 |
+--- |
51 |
+ CMakeLists.txt | 15 +++++++++------ |
52 |
+ 1 file changed, 9 insertions(+), 6 deletions(-) |
53 |
+ |
54 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
55 |
+index cc39e77..59eec3d 100644 |
56 |
+--- a/CMakeLists.txt |
57 |
++++ b/CMakeLists.txt |
58 |
+@@ -25,12 +25,15 @@ ELSE() |
59 |
+ ENDIF() |
60 |
+ |
61 |
+ # Early detect ccache |
62 |
++OPTION(USE_CCACHE "Cache the build results with ccache" ON) |
63 |
++if(USE_CCACHE) |
64 |
+ find_program(CCACHE_PROGRAM ccache) |
65 |
+ if(CCACHE_PROGRAM) |
66 |
+ # Support Unix Makefiles and Ninja |
67 |
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") |
68 |
+ MESSAGE(STATUS "Found CCache ${CCACHE_PROGRAM}") |
69 |
+ endif() |
70 |
++endif() |
71 |
+ |
72 |
+ # A project name is needed for CPack |
73 |
+ # Version can be overriden by git tags, see cmake/getversion.cmake |
74 |
+-- |
75 |
+2.20.1 |
76 |
+ |