1 |
commit: bbfaabe4a1ed7fb66220b22424490763ab214d80 |
2 |
Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 31 22:31:18 2016 +0000 |
4 |
Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 31 22:32:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbfaabe4 |
7 |
|
8 |
games-board/pokerth: rev bump to move to qt5 (bug #572678) |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
games-board/pokerth/files/pokerth-1.1.1-qt5.patch | 19 +++++++ |
13 |
games-board/pokerth/pokerth-1.1.1-r1.ebuild | 66 +++++++++++++++++++++++ |
14 |
2 files changed, 85 insertions(+) |
15 |
|
16 |
diff --git a/games-board/pokerth/files/pokerth-1.1.1-qt5.patch b/games-board/pokerth/files/pokerth-1.1.1-qt5.patch |
17 |
new file mode 100644 |
18 |
index 0000000..1d3dd63 |
19 |
--- /dev/null |
20 |
+++ b/games-board/pokerth/files/pokerth-1.1.1-qt5.patch |
21 |
@@ -0,0 +1,19 @@ |
22 |
+From 731f5f05f54065a67fa7c9f9bc8fe992390cb979 Mon Sep 17 00:00:00 2001 |
23 |
+From: Felix Hammer <f.hammer@×××.de> |
24 |
+Date: Fri, 7 Aug 2015 00:57:51 +0200 |
25 |
+Subject: [PATCH] Qt 5.5.0 patch for qtsingleapplication |
26 |
+ |
27 |
+--- |
28 |
+ src/third_party/qtsingleapplication/qtlocalpeer.cpp | 1 + |
29 |
+ 1 file changed, 1 insertion(+) |
30 |
+ |
31 |
+--- a/src/third_party/qtsingleapplication/qtlocalpeer.cpp |
32 |
++++ b/src/third_party/qtsingleapplication/qtlocalpeer.cpp |
33 |
+@@ -31,6 +31,7 @@ |
34 |
+ |
35 |
+ #include <QCoreApplication> |
36 |
+ #include <QTime> |
37 |
++#include <QDataStream> |
38 |
+ |
39 |
+ #if defined(Q_OS_WIN) |
40 |
+ #include <QLibrary> |
41 |
|
42 |
diff --git a/games-board/pokerth/pokerth-1.1.1-r1.ebuild b/games-board/pokerth/pokerth-1.1.1-r1.ebuild |
43 |
new file mode 100644 |
44 |
index 0000000..977229d |
45 |
--- /dev/null |
46 |
+++ b/games-board/pokerth/pokerth-1.1.1-r1.ebuild |
47 |
@@ -0,0 +1,66 @@ |
48 |
+# Copyright 1999-2016 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Id$ |
51 |
+ |
52 |
+EAPI=5 |
53 |
+inherit flag-o-matic eutils qmake-utils games |
54 |
+ |
55 |
+MY_P="PokerTH-${PV}-src" |
56 |
+DESCRIPTION="Texas Hold'em poker game" |
57 |
+HOMEPAGE="http://www.pokerth.net/" |
58 |
+SRC_URI="mirror://sourceforge/pokerth/${MY_P}.tar.bz2" |
59 |
+ |
60 |
+LICENSE="AGPL-3 GPL-1 GPL-2 GPL-3 BitstreamVera public-domain" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~x86" |
63 |
+IUSE="dedicated" |
64 |
+ |
65 |
+RDEPEND="dev-db/sqlite:3 |
66 |
+ dev-libs/boost:=[threads(+)] |
67 |
+ dev-libs/protobuf |
68 |
+ dev-libs/libgcrypt:0 |
69 |
+ dev-libs/tinyxml[stl] |
70 |
+ >=net-libs/libircclient-1.6-r2 |
71 |
+ >=net-misc/curl-7.16 |
72 |
+ dev-qt/qtcore:5 |
73 |
+ virtual/gsasl |
74 |
+ !dedicated? ( |
75 |
+ media-libs/libsdl:0 |
76 |
+ media-libs/sdl-mixer[mod,vorbis] |
77 |
+ dev-qt/qtgui:5 |
78 |
+ dev-qt/qtwidgets:5 |
79 |
+ dev-qt/qtnetwork:5 |
80 |
+ )" |
81 |
+DEPEND="${RDEPEND} |
82 |
+ !dedicated? ( dev-qt/qtsql:5 ) |
83 |
+ virtual/pkgconfig" |
84 |
+ |
85 |
+S=${WORKDIR}/${MY_P} |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ if use dedicated ; then |
89 |
+ sed -i -e 's/pokerth_game.pro//' pokerth.pro || die |
90 |
+ fi |
91 |
+ |
92 |
+ sed -i -e '/no_dead_strip_inits_and_terms/d' *pro || die |
93 |
+ |
94 |
+ epatch "${FILESDIR}"/${P}-qt5.patch |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ eqmake5 pokerth.pro |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ dogamesbin bin/pokerth_server |
103 |
+ if ! use dedicated ; then |
104 |
+ dogamesbin ${PN} |
105 |
+ insinto "${GAMES_DATADIR}/${PN}" |
106 |
+ doins -r data |
107 |
+ domenu ${PN}.desktop |
108 |
+ doicon ${PN}.png |
109 |
+ fi |
110 |
+ doman docs/pokerth.1 |
111 |
+ dodoc ChangeLog TODO docs/{gui_styling,server_setup}_howto.txt |
112 |
+ prepgamesdirs |
113 |
+} |