# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games qt4 subversion ESVN_REPO_URI="http://pokerth.svn.sourceforge.net/svnroot/pokerth/trunk/pokerth" DESCRIPTION="Texas Hold'em poker game." HOMEPAGE="http://www.pokerth.net/" LICENSE="GPL-2" SLOT="0" IUSE="" KEYWORDS="~amd64 ~x86" DEPEND="$(qt4_min_version 4.2.3) >=dev-libs/boost-1.34 >=dev-libs/openssl-0.9.7 media-libs/libsdl media-libs/libmikmod media-libs/sdl-mixer" RDEPEND="${DEPEND}" pkg_setup() { if ! built_with_use ">=x11-libs/qt-4*" qt3support ; then eerror "x11-libs/qt has to be compiled with USE=qt3support" die "Needed USE-flag for x11-libs/qt-4 not found." fi games_pkg_setup } S="${WORKDIR}/${PN}" src_unpack() { subversion_src_unpack cd "${S}" sed -i -e "/targets.path/s:/usr/bin:${GAMES_BINDIR}:" pokerth_game.pro || die "sed failed." sed -i -e "/data.path/s:/usr/share:${GAMES_DATADIR}:" pokerth_game.pro || die "sed failed." } src_compile() { eqmake4 emake || die "emake failed." } src_install() { dogamesbin ${PN} || die "dogamesbin failed." insinto "${GAMES_DATADIR}/${PN}/data" doins -r data/* || die "doins data failed." doicon pokerth.png "${PN}.png" || "doicon failed." make_desktop_entry "${PN}" "PokerTH" "${PN}.png" || die "make_desktop_entry failed." prepgamesdirs }