1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils games qt4
10 DESCRIPTION
="Texas Hold'em poker game."
11 HOMEPAGE
="http://www.pokerth.net/"
12 SRC_URI
="mirror://sourceforge/${PN}/${MY_P}-src.tar.bz2"
17 KEYWORDS
="~amd64 ~x86"
20 DEPEND
="|| ( x11-libs/qt-gui:4 =x11-libs/qt-4.3* )
21 >=dev-libs/boost-1.34.1
22 >=net-libs/gnutls-2.2.2
30 S
="${WORKDIR}/${MY_P}-src"
33 if ! built_with_use
"media-libs/sdl-mixer" mikmod
; then
35 eerror
"media-libs/sdl-mixer has to be compiled with USE=\"mikmod\""
37 die
"Needed USE flag for sdl-mixer not found."
44 if ! use dedicated
; then
45 sed -i -e '/SUBDIRS/s/pokerth_server\.pro//' pokerth.pro || die
49 emake || die
"emake failed"
53 dogamesbin
${PN} || die
"failed to install pokerth binary"
55 insinto
"${GAMES_DATADIR}/${PN}"
56 doins
-r data || die
"doins failed"
57 dodoc ChangeLog TODO docs
/{net_protocol
,server_setup_howto
}.txt
60 make_desktop_entry
${PN} "PokerTH"
62 if use dedicated
; then
63 dogamesbin bin
/pokerth_server || die
"failed to install pokerth_server binary"