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

EAPI="5"

inherit versionator games

MY_PV="$(get_version_component_range 1-2)$(get_version_component_range 3)"
DESCRIPTION="Chinese chess engine (UCCI protocol)"
HOMEPAGE="https://sourceforge.net/projects/xqwizard/"
SRC_URI="mirror://sourceforge/project/xqwizard/4.%20ElephantEye/4-1.%20ElephantEye%20${MY_PV}%20%28UCCI%20Engine%29%20Source/${PN}.tar.gz -> ${P}.tar.gz"

LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

S="${WORKDIR}"

src_prepare() {
	cp "${FILESDIR}"/${P}-makefile ${PN}/Makefile || die
}

src_compile() {
	emake -C ${PN} || die
}

src_install() {
	dogamesbin ${PN}/${PN} || die
	dolib ${PN}/evaluate/libeval.so || die
}