blob: dbee91130b0ca004262694673b3d7ce305f8d954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop
DESCRIPTION="Japanese version of chess (commandline + X-Version)"
HOMEPAGE="https://www.gnu.org/software/gnushogi/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="X"
RDEPEND="
sys-libs/ncurses:0=
X? ( x11-libs/libXaw )"
DEPEND="${RDEPEND}"
BDEPEND="
>=sys-devel/bison-1.34
app-alternatives/lex"
PATCHES=( "${FILESDIR}"/${PN}-1.4.1-fno-common.patch )
src_prepare() {
default
sed -i \
-e '/^bbk:/s/$/ gnushogi_compile pat2inc sizetest/' \
Makefile.in || die
sed -i \
-e "/^LIBDIR/s:=.*:=\"$(get_libdir)\":" \
gnushogi/Makefile.in || die
}
src_configure() {
econf \
$(use_with X x) \
$(use_enable X xshogi)
}
src_install() {
dobin gnushogi/gnushogi
doman doc/gnushogi.6
doinfo doc/gnushogi.info
if use X; then
dobin xshogi/xshogi
doman doc/xshogi.6
make_desktop_entry xshogi XShogi
fi
dolib.a gnushogi/gnushogi.bbk
dodoc README NEWS CONTRIB doc/gnushogi/*.html
}
|