All pastes #586011 Raw Edit

PokertTH 23/06/2007

public text v1 · immutable
#586011 ·published 2007-06-23 16:22 UTC
rendered paste body
Hi the ebuild posted at 

Clear-Text: http://bugs.gentoo.org/show_bug.cgi?id=169238
Secure: https://bugs.gentoo.org/show_bug.cgi?id=169238 

Now updated to http://bugs.gentoo.org/attachment.cgi?id=122808 as of last night (have attached at the end of this post)

works and installs the game but I get lots of warnings while compiling 
and when I run the game the buttons dont display properly
I have tried this install with Boost 1.34 as a dependancy without the "threads" use flag 
and have downgraded Boost to 1.33 with the "threads" use flag and get similar output either way
any advice appreciated in advance

output when emerging

localhost Bearbonez # emerge -pv games-board/pokerth

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] games-board/pokerth-0.5  0 kB [1]

Total: 1 package (1 new), Size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
localhost Bearbonez # emerge games-board/pokerth
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) games-board/pokerth-0.5 to /
 * PokerTH-0.5-src.tar.bz2 MD5 ;-) ...                                                                    [ ok ]
 * PokerTH-0.5-src.tar.bz2 RMD160 ;-) ...                                                                 [ ok ]
 * PokerTH-0.5-src.tar.bz2 SHA1 ;-) ...                                                                   [ ok ]
 * PokerTH-0.5-src.tar.bz2 SHA256 ;-) ...                                                                 [ ok ]
 * PokerTH-0.5-src.tar.bz2 size ;-) ...                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                    [ ok ]
 * checking PokerTH-0.5-src.tar.bz2 ;-) ...                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking PokerTH-0.5-src.tar.bz2 to /var/tmp/portage/games-board/pokerth-0.5/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/games-board/pokerth-0.5/work/PokerTH-0.5 ...
src/core/tinyxml/tinystr.cpp:39: warning: missing braces around initializer for ‘char [1]’
src/engine/network_engine/clientplayer.cpp:168: warning: unused parameter ‘blind’
src/engine/network_engine/clientplayer.cpp:424: warning: unused parameter ‘bet’
src/engine/network_engine/clientplayer.cpp:424: warning: unused parameter ‘raise’
src/engine/network_engine/clientplayer.cpp:430: warning: unused parameter ‘cards’
src/engine/network_engine/clientplayer.cpp:437: warning: unused parameter ‘cards’
src/engine/network_engine/clientplayer.cpp:449: warning: unused parameter ‘cards’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/net/common/clientstate.cpp: In member function ‘virtual int ClientStateWaitGame::InternalProcess(ClientThread&, boost::shared_ptr<NetPacket>)’:
src/net/common/clientstate.cpp:482: warning: unused variable ‘context’
src/net/common/clientstate.cpp: In member function ‘virtual int ClientStateWaitHand::InternalProcess(ClientThread&, boost::shared_ptr<NetPacket>)’:
src/net/common/clientstate.cpp:532: warning: unused variable ‘context’
src/net/common/clientstate.cpp: In member function ‘virtual int ClientStateRunHand::InternalProcess(ClientThread&, boost::shared_ptr<NetPacket>)’:
src/net/common/clientstate.cpp:596: warning: unused variable ‘context’
src/net/common/clientstate.cpp: At global scope:
src/net/common/clientstate.cpp:974: warning: unused parameter ‘client’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/net/common/clientthread.cpp: At global scope:
src/net/common/clientthread.cpp:42: warning: unused parameter ‘sock’
src/net/common/clientthread.cpp: In member function ‘virtual void ClientThread::Main()’:
src/net/common/clientthread.cpp:163: warning: comparison between signed and unsigned integer expressions
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/net/common/serverrecvthread.cpp: At global scope:
src/net/common/serverrecvthread.cpp:44: warning: unused parameter ‘sock’
src/net/common/serverrecvthread.cpp:44: warning: unused parameter ‘errorID’
src/net/common/serverrecvthread.cpp:44: warning: unused parameter ‘osErrorID’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/net/common/serverrecvstate.cpp: At global scope:
src/net/common/serverrecvstate.cpp:911: warning: unused parameter ‘server’
src/net/common/serverrecvstate.cpp:911: warning: unused parameter ‘session’
src/net/common/serverrecvstate.cpp:911: warning: unused parameter ‘packet’
src/net/common/serverrecvstate.cpp:951: warning: unused parameter ‘server’
src/net/common/serverrecvstate.cpp:951: warning: unused parameter ‘session’
src/net/common/serverrecvstate.cpp:951: warning: unused parameter ‘packet’
src/net/common/serverrecvstate.cpp:985: warning: unused parameter ‘server’
src/net/common/serverrecvstate.cpp:985: warning: unused parameter ‘session’
src/net/common/serverrecvstate.cpp:985: warning: unused parameter ‘packet’
src/net/common/serverrecvstate.cpp:1043: warning: unused parameter ‘server’
src/net/common/serverrecvstate.cpp:1043: warning: unused parameter ‘session’
src/net/common/serverrecvstate.cpp:1043: warning: unused parameter ‘packet’
src/net/common/serverrecvstate.cpp:1066: warning: unused parameter ‘server’
src/net/common/serverrecvstate.cpp:1066: warning: unused parameter ‘session’
src/net/common/serverrecvstate.cpp:1066: warning: unused parameter ‘packet’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/gui/qt/guiwrapper.cpp: At global scope:
src/gui/qt/guiwrapper.cpp:121: warning: unused parameter ‘actionID’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/gui/qt/mainwindow/mainwindowimpl.cpp: At global scope:
src/gui/qt/mainwindow/mainwindowimpl.cpp:2392: warning: unused parameter ‘osErrorID’
src/gui/qt/mainwindow/mainwindowimpl.cpp:2645: warning: unused parameter ‘event’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/gui/qt/mainwindow/startsplash/startsplash.cpp: At global scope:
src/gui/qt/mainwindow/startsplash/startsplash.cpp:48: warning: unused parameter ‘event’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp: In member function ‘void joinNetworkGameDialogImpl::fillServerProfileList()’:
src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp:124: warning: statement has no effect
src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp: At global scope:
src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp:154: warning: unused parameter ‘column’
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp:109: warning: unused parameter ‘toogleState’
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp:111: warning: unused parameter ‘toogleState’
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.cpp:47: warning: unused parameter ‘event’
src/gui/qt/qttools/qthelper/qthelper.cpp:31:94: warning: no newline at end of file
src/net/linux/socket_helper.cpp:27: warning: unused parameter ‘addrLen’
src/gui/generic/serverguiwrapper.cpp:36: warning: unused parameter ‘speed’
src/gui/generic/serverguiwrapper.cpp:53: warning: unused parameter ‘playerID’
src/gui/generic/serverguiwrapper.cpp:53: warning: unused parameter ‘playerAction’
src/gui/generic/serverguiwrapper.cpp:60: warning: unused parameter ‘playerID’
src/gui/generic/serverguiwrapper.cpp:60: warning: unused parameter ‘status’
src/gui/generic/serverguiwrapper.cpp:63: warning: unused parameter ‘state’
src/gui/generic/serverguiwrapper.cpp:95: warning: unused parameter ‘playerId’
src/gui/generic/serverguiwrapper.cpp:95: warning: unused parameter ‘timeoutSec’
src/gui/generic/serverguiwrapper.cpp:96: warning: unused parameter ‘playerId’
src/gui/generic/serverguiwrapper.cpp:98: warning: unused parameter ‘playerName’
src/gui/generic/serverguiwrapper.cpp:98: warning: unused parameter ‘action’
src/gui/generic/serverguiwrapper.cpp:98: warning: unused parameter ‘setValue’
src/gui/generic/serverguiwrapper.cpp:99: warning: unused parameter ‘gameID’
src/gui/generic/serverguiwrapper.cpp:99: warning: unused parameter ‘handID’
src/gui/generic/serverguiwrapper.cpp:100: warning: unused parameter ‘playerID’
src/gui/generic/serverguiwrapper.cpp:100: warning: unused parameter ‘pot’
src/gui/generic/serverguiwrapper.cpp:101: warning: unused parameter ‘roundID’
src/gui/generic/serverguiwrapper.cpp:101: warning: unused parameter ‘card1’
src/gui/generic/serverguiwrapper.cpp:101: warning: unused parameter ‘card2’
src/gui/generic/serverguiwrapper.cpp:101: warning: unused parameter ‘card3’
src/gui/generic/serverguiwrapper.cpp:101: warning: unused parameter ‘card4’
src/gui/generic/serverguiwrapper.cpp:101: warning: unused parameter ‘card5’
src/gui/generic/serverguiwrapper.cpp:102: warning: unused parameter ‘playerName’
src/gui/generic/serverguiwrapper.cpp:102: warning: unused parameter ‘card1’
src/gui/generic/serverguiwrapper.cpp:102: warning: unused parameter ‘card2’
src/gui/generic/serverguiwrapper.cpp:102: warning: unused parameter ‘cardsValueInt’
src/gui/generic/serverguiwrapper.cpp:102: warning: unused parameter ‘showHas’
src/gui/generic/serverguiwrapper.cpp:103: warning: unused parameter ‘playerName’
src/gui/generic/serverguiwrapper.cpp:103: warning: unused parameter ‘gameID’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/clock.hpp: In member function ‘const boost::posix_time::time_duration& boost::clock_device::elapsed() const’:
src/core/boost/timer/devices/clock.hpp:63: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
src/core/boost/timer/devices/gettimeofday.hpp: In member function ‘const boost::posix_time::time_duration& boost::gtod_device::elapsed() const’:
src/core/boost/timer/devices/gettimeofday.hpp:69: warning: passing ‘double’ for argument 1 to ‘boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration, long long int frac_of_second = 1000ll]’
>>> Source compiled.
>>> Test phase [not enabled]: games-board/pokerth-0.5

>>> Install pokerth-0.5 into /var/tmp/portage/games-board/pokerth-0.5/image/ category games-board
>>> Completed installing pokerth-0.5 into /var/tmp/portage/games-board/pokerth-0.5/image/



 * QA Notice: Pre-stripped files found:
 * /var/tmp/portage/games-board/pokerth-0.5/image/usr/games/bin/pokerth
>>> Merging games-board/pokerth-0.5 to /
--- /usr/
--- /usr/games/
--- /usr/games/bin/
>>> /usr/games/bin/pokerth
--- /usr/share/
--- /usr/share/applications/
>>> /usr/share/applications/pokerth-pokerth.desktop
--- /usr/share/pixmaps/
>>> /usr/share/pixmaps/pokerth.png
 * Remember, in order to play games, you have to
 * be in the 'games' group.

 * Just run 'gpasswd -a <USER> games', then have <USER> re-login.

 * For more info about Gentoo gaming in general, see our website:
 *    http://games.gentoo.org/

>>> games-board/pokerth-0.5 merged.
>>> Recording games-board/pokerth in "world" favorites file...

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
 * GNU info directory index is up-to-date.
localhost Bearbonez # gpasswd -a Bearbonez games
Adding user Bearbonez to group games


updated ebuild :-

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils games qt4

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

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="$(qt4_min_version 4.2.3)
dev-libs/boost
dev-libs/openssl
media-libs/libsdl
media-libs/sdl-mixer"
RDEPEND="${DEPEND}"

pkg_setup() {
	if ! built_with_use x11-libs/qt qt3support ; then
		eerror "x11-libs/qt has to be compiled with 'qt3support' USE-flag enabled." 
		die "Needed USE-flag for x11-libs/qt not found." 
	fi
	if has_version "<dev-libs/boost-1.34" && ! built_with_use dev-libs/boost threads ; then
		eerror "dev-libs/boost has to be compiled with 'threads' USE-flag enabled." 
		die "Needed USE-flag for dev-libs/boost not found." 
	fi

	games_pkg_setup
}

src_compile() {
	qmake || die "Couldn't create Makefiles."
	emake || die "emake failed."
}

src_install() {
	dogamesbin bin/pokerth
	newicon pokerth.png ${PN}.png
	make_desktop_entry ${PN} "PokerTH" ${PN}.png

	prepgamesdirs
}