Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/gnushogi/, games-board/gnushogi/files/
Date: Thu, 29 Oct 2020 22:09:46
Message-Id: 1604009347.5b788753c95e798530545d65475ea36c7cb450e6.soap@gentoo
1 commit: 5b788753c95e798530545d65475ea36c7cb450e6
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 29 22:09:07 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 29 22:09:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b788753
7
8 games-board/gnushogi: Fix -fno-common
9
10 * Also port to EAPI 7
11
12 Closes: https://bugs.gentoo.org/707590
13 Package-Manager: Portage-3.0.8, Repoman-3.0.2
14 Signed-off-by: David Seifert <soap <AT> gentoo.org>
15
16 .../gnushogi/files/gnushogi-1.4.1-fno-common.patch | 20 ++++++++++++++++++++
17 games-board/gnushogi/gnushogi-1.4.1-r1.ebuild | 21 ++++++++++++++-------
18 2 files changed, 34 insertions(+), 7 deletions(-)
19
20 diff --git a/games-board/gnushogi/files/gnushogi-1.4.1-fno-common.patch b/games-board/gnushogi/files/gnushogi-1.4.1-fno-common.patch
21 new file mode 100644
22 index 00000000000..510590b82c0
23 --- /dev/null
24 +++ b/games-board/gnushogi/files/gnushogi-1.4.1-fno-common.patch
25 @@ -0,0 +1,20 @@
26 +--- a/gnushogi/cursesdsp.c
27 ++++ b/gnushogi/cursesdsp.c
28 +@@ -71,7 +71,6 @@
29 +
30 + unsigned short MV[MAXDEPTH];
31 + int MSCORE;
32 +-char *DRAW;
33 +
34 + /* Forward declarations. */
35 + /* FIXME: change this name, puh-leeze! */
36 +--- a/gnushogi/rawdsp.c
37 ++++ b/gnushogi/rawdsp.c
38 +@@ -48,7 +48,6 @@
39 + int MSCORE;
40 +
41 + int mycnt1, mycnt2;
42 +-char *DRAW;
43 + extern char *InPtr;
44 + extern short pscore[];
45 +
46
47 diff --git a/games-board/gnushogi/gnushogi-1.4.1-r1.ebuild b/games-board/gnushogi/gnushogi-1.4.1-r1.ebuild
48 index ebef0138a0f..7d1bde2639a 100644
49 --- a/games-board/gnushogi/gnushogi-1.4.1-r1.ebuild
50 +++ b/games-board/gnushogi/gnushogi-1.4.1-r1.ebuild
51 @@ -1,8 +1,9 @@
52 -# Copyright 1999-2016 Gentoo Foundation
53 +# Copyright 1999-2020 Gentoo Authors
54 # Distributed under the terms of the GNU General Public License v2
55
56 -EAPI=6
57 -inherit eutils
58 +EAPI=7
59 +
60 +inherit desktop
61
62 DESCRIPTION="Japanese version of chess (commandline + X-Version)"
63 HOMEPAGE="https://www.gnu.org/software/gnushogi/"
64 @@ -13,12 +14,16 @@ SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="X"
67
68 -RDEPEND="sys-libs/ncurses:0
69 +RDEPEND="
70 + sys-libs/ncurses:0=
71 X? ( x11-libs/libXaw )"
72 -DEPEND="${RDEPEND}
73 +DEPEND="${RDEPEND}"
74 +BDEPEND="
75 >=sys-devel/bison-1.34
76 >=sys-devel/flex-2.5"
77
78 +PATCHES=( "${FILESDIR}"/${PN}-1.4.1-fno-common.patch )
79 +
80 src_prepare() {
81 default
82
83 @@ -40,11 +45,13 @@ src_install() {
84 dobin gnushogi/gnushogi
85 doman doc/gnushogi.6
86 doinfo doc/gnushogi.info
87 - if use X ; then
88 +
89 + if use X; then
90 dobin xshogi/xshogi
91 doman doc/xshogi.6
92 make_desktop_entry xshogi XShogi
93 fi
94 - dolib gnushogi/gnushogi.bbk
95 +
96 + dolib.a gnushogi/gnushogi.bbk
97 dodoc README NEWS CONTRIB doc/gnushogi/*.html
98 }