1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop qmake-utils xdg
8 DESCRIPTION="Texas Hold'em poker game"
9 HOMEPAGE="https://www.pokerth.net/"
10 SRC_URI="mirror://sourceforge/pokerth/${P}.tar.gz"
12 LICENSE="AGPL-3 GPL-1 GPL-2 GPL-3 BitstreamVera public-domain"
14 KEYWORDS="~amd64 ~x86"
17 RDEPEND="dev-db/sqlite:3
18 dev-libs/boost:0=[threads(+)]
24 >=net-libs/libircclient-1.6-r2
31 media-libs/sdl-mixer[mod,vorbis]
35 !dedicated? ( dev-qt/qtsql:5 )"
36 BDEPEND="virtual/pkgconfig"
38 S="${WORKDIR}/${P}-rc"
41 "${FILESDIR}"/${PN}-1.1.1-boost-1.65-ambiguous-advance.patch
42 "${FILESDIR}"/${PN}-1.1.2-protobuf.patch
43 "${FILESDIR}"/${PN}-1.1.2-boost-1.66.patch
44 "${FILESDIR}"/${PN}-1.1.2-fix-includes.patch
45 # unbundle dev-cpp/websocketpp
46 "${FILESDIR}"/${PN}-1.1.2-system-websockets.patch
51 sed -i 's/!client//' *.pro || die
53 # delete bundled dev-cpp/websocketpp to be safe
54 rm -r src/third_party/websocketpp || die
59 QMAKE_CFLAGS_ISYSTEM= \
60 CONFIG+="$(use dedicated || echo client)"
64 dobin bin/pokerth_server chatcleaner
65 dodoc docs/{gui_styling,server_setup}_howto.txt
68 if ! use dedicated; then
70 insinto /usr/share/${PN}
73 doicon -s 128 ${PN}.png