summaryrefslogtreecommitdiff
blob: 24bf536c154d158693f6c373ba98d7cc91fe7608 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="5"

inherit eutils games

MY_PN=xiangqi
DESCRIPTION="SDL-base Chinese chess program"
HOMEPAGE="https://www.iit.bme.hu/~salvi/archive/index.html"
SRC_URI="https://www.iit.bme.hu/~salvi/archive/${MY_PN}/${MY_PN}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="
	dev-scheme/guile
	media-libs/libsdl
	media-libs/sdl-image
	"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_prepare() {
	epatch "${FILESDIR}"/${P}-chdir.patch
}

src_install() {
	insinto "${GAMES_DATADIR}"/${PN}
	doins -r data scripts
	make_desktop_entry ${PN} 'XiangQi (SDL, Peter Salvi)' '' 'Game'
	newgamesbin xiangqi ${PN}
}