1 |
commit: ab88c21f35e2e2068a601ed51d67e26f8ce7cc62 |
2 |
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Mon Sep 27 20:43:23 2021 +0000 |
4 |
Commit: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
5 |
CommitDate: Mon Sep 27 20:49:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ab88c21f |
7 |
|
8 |
games-board/fairy-stockfish: on allvariants, off optimize -O3, cleanup |
9 |
|
10 |
- Allways enable build 'all' variants option (add Amazons game). |
11 |
- Drop 'optimize' use flag and disable '-O3/-ffast' optimization. |
12 |
- Remove unused 'python' use flag. |
13 |
|
14 |
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> |
15 |
|
16 |
games-board/fairy-stockfish/fairy-stockfish-14.ebuild | 11 ++++++----- |
17 |
games-board/fairy-stockfish/metadata.xml | 2 -- |
18 |
2 files changed, 6 insertions(+), 7 deletions(-) |
19 |
|
20 |
diff --git a/games-board/fairy-stockfish/fairy-stockfish-14.ebuild b/games-board/fairy-stockfish/fairy-stockfish-14.ebuild |
21 |
index 8ea4cb783..32436ce4e 100644 |
22 |
--- a/games-board/fairy-stockfish/fairy-stockfish-14.ebuild |
23 |
+++ b/games-board/fairy-stockfish/fairy-stockfish-14.ebuild |
24 |
@@ -17,8 +17,8 @@ SRC_URI=" |
25 |
LICENSE="GPL-3" |
26 |
SLOT="0" |
27 |
KEYWORDS="~amd64 ~x86" |
28 |
-IUSE="cpu_flags_arm_v7 cpu_flags_x86_avx2 cpu_flags_x86_popcnt cpu_flags_x86_sse allvariants debug |
29 |
- general-32 general-64 largeboards +optimize python test" |
30 |
+IUSE="cpu_flags_arm_v7 cpu_flags_x86_avx2 cpu_flags_x86_popcnt cpu_flags_x86_sse debug |
31 |
+ general-32 general-64 largeboards test" |
32 |
|
33 |
RESTRICT="!test? ( test )" |
34 |
|
35 |
@@ -78,13 +78,14 @@ src_compile() { |
36 |
# a nice hack in the Makefile that overrides the value of CXX with |
37 |
# COMPILER to support Travis CI and we abuse it to make sure that we |
38 |
# build with our compiler of choice. |
39 |
+ # Build all variants (add Amazons game) and disable default optimize (-O3/-ffast) |
40 |
emake all ARCH="${my_arch}" \ |
41 |
COMP=$(tc-getCXX) \ |
42 |
COMPILER=$(tc-getCXX) \ |
43 |
- all=$(usex allvariants "yes" "no") \ |
44 |
+ all=yes \ |
45 |
debug=$(usex debug "yes" "no") \ |
46 |
- largeboards=$(usex largeboards "yes" "no") |
47 |
- optimize=$(usex optimize "yes" "no") |
48 |
+ largeboards=$(usex largeboards "yes" "no") \ |
49 |
+ optimize=no |
50 |
} |
51 |
|
52 |
src_test() { |
53 |
|
54 |
diff --git a/games-board/fairy-stockfish/metadata.xml b/games-board/fairy-stockfish/metadata.xml |
55 |
index 18578fabb..2537e2779 100644 |
56 |
--- a/games-board/fairy-stockfish/metadata.xml |
57 |
+++ b/games-board/fairy-stockfish/metadata.xml |
58 |
@@ -8,9 +8,7 @@ |
59 |
<use> |
60 |
<flag name="general-32">Generic unoptimized 32-bits build</flag> |
61 |
<flag name="general-64">Generic unoptimized 64-bits build</flag> |
62 |
- <flag name="allvariants">Adds Game of the Amazons</flag> |
63 |
<flag name="largeboards">Support for board sizes more than 8x8 (e.g., Xiangqi, Shogi). Engine is slower</flag> |
64 |
- <flag name="optimize">Enable upstream -O3 optimizations (default enabled)</flag> |
65 |
</use> |
66 |
<upstream> |
67 |
<remote-id type="github">ianfab/Fairy-Stockfish</remote-id> |