# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit confutils eutils qt4 DESCRIPTION="Texas Hold'em style poker" HOMEPAGE="http://www.pokerth.net/" SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" DEPEND="$(qt4_min_version 4.2)" RDEPEND="${DEPEND}" pkg_setup() { if ! (built_with_use x11-libs/qt qt3support); then eerror "In order to compile pokerth, you will need to recompile" eerror "Qt4 with qt3support USE-flag enabled." die "Recompile qt4 with qt3support use flag enabled" fi; } src_compile() { qmake ${PN}.pro || die "couldn't create fresh Makefiles" emake || die "make failed" } src_install() { dobin bin/pokerth || die "installation failed" }