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

EAPI="1"
inherit eutils games qt4

MY_PN="PokerTH"
S="${WORKDIR}/${MY_PN}-${PV}-src"

DESCRIPTION="Texas Hold'em poker game."
HOMEPAGE="http://www.pokerth.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-src.tar.bz2"

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

DEPEND=">=x11-libs/qt-4.3.2:4
	>=net-misc/curl-7.16
	>=net-libs/gnutls-2.2.2
	>=dev-libs/boost-1.34.1
	media-libs/libsdl
	media-libs/sdl-mixer"
RDEPEND="${DEPEND}"

pkg_setup() {
	if ! built_with_use "media-libs/sdl-mixer" mikmod ; then
		eerror "media-libs/sdl-mixer has to be compiled with USE=mikmod"
		die "Needed USE-flag for sdl-mixer not found."
	fi

	games_pkg_setup
}

src_compile() {
	eqmake4
	emake || die "emake failed."
}

src_install() {
	dogamesbin pokerth || die "dogamesbin failed"
	insinto "${GAMES_DATADIR}/${PN}"
	doins -r data || die "doins failed"

	newicon pokerth.png "${PN}.png"
	make_desktop_entry "${PN}" "PokerTH" "${PN}.png"

	prepgamesdirs
}