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

EAPI="2"

inherit games qt4-r2 subversion

DESCRIPTION="KBang is an open source implementation of the popular card game Bang!"
HOMEPAGE="http://code.google.com/p/kbang/"
SRC_URI=""
ESVN_REPO_URI="http://${PN}.googlecode.com/svn/trunk/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="server"

DEPEND=">x11-libs/qt-gui-4.4"
RDEPEND="${DEPEND}"

src_prepare() {
	esvn_clean
}
	
src_compile() {
	eqmake4

	emake || die "emake failed"
}

src_install() {
	exeinto "${GAMES_DATADIR}/${PN}"

	doexe "${PN}-client" || die "doexe failed"
	dosym "${GAMES_DATADIR}/${PN}/${PN}-client" "${GAMES_BINDIR}/${PN}"

	if use server; then
		doexe "${PN}-server" || die "doexe failed"
		dosym "${GAMES_DATADIR}/${PN}/${PN}-server" "${GAMES_BINDIR}/${PN}-server"
	fi

	insinto "${GAMES_DATADIR}/${PN}"
	doins -r data || die "doins failed"
}