1 |
commit: b1e9b981d868caa32a59110e89eda03bafcbe155 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 27 21:49:39 2018 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 27 21:49:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1e9b981 |
7 |
|
8 |
games-board/pokerth: Version bump to 1.1.2 |
9 |
|
10 |
Fixes protobuf issue. Some libraries still need unbundling. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/644460 |
13 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
14 |
|
15 |
games-board/pokerth/Manifest | 1 + |
16 |
.../pokerth/files/pokerth-1.1.2-protobuf.patch | 23 +++++++ |
17 |
games-board/pokerth/pokerth-1.1.2.ebuild | 71 ++++++++++++++++++++++ |
18 |
3 files changed, 95 insertions(+) |
19 |
|
20 |
diff --git a/games-board/pokerth/Manifest b/games-board/pokerth/Manifest |
21 |
index bb54b52e704..75c22499163 100644 |
22 |
--- a/games-board/pokerth/Manifest |
23 |
+++ b/games-board/pokerth/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST PokerTH-1.1.1-src.tar.bz2 19326922 BLAKE2B 43c94c1330ca11eaa52e4729e52fed3ee4022b8486b626168933a20658bf0c79028adb39b68433e5ccb7c8618b610366f193720f821039adc0e9a84eff0488b7 SHA512 bd822d15747d94b67657ea2fd0b9c8c1bdad0031a6eae30380217387a702e5f648d6f612b1bff0355c3c301ecaf47ca9d635a526e575f1bc1c5f88e38a7f73c1 |
26 |
+DIST pokerth-1.1.2.tar.gz 21354306 BLAKE2B d8e1ecc46e61d9c16ae3949099f6e72271a5ab2def9799652b0c612980e0c5e96cb2ccf4d659c1a90b9ac6433af95587fa5d44af80c16fb6a34a272751c9fc4a SHA512 d54c84f199636eb5a53580213e5e4ccc828cf565bf4b055797daa82e2ad54d8c52c7a16a781b82c8cc89d184a2b3c4105922394d08c7d2e06383b96963c36b5a |
27 |
|
28 |
diff --git a/games-board/pokerth/files/pokerth-1.1.2-protobuf.patch b/games-board/pokerth/files/pokerth-1.1.2-protobuf.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..0ac2ab0b153 |
31 |
--- /dev/null |
32 |
+++ b/games-board/pokerth/files/pokerth-1.1.2-protobuf.patch |
33 |
@@ -0,0 +1,23 @@ |
34 |
+https://github.com/pokerth/pokerth/issues/339 |
35 |
+--- PokerTH-1.1.1-src/pokerth.proto |
36 |
++++ PokerTH-1.1.1-src.new/pokerth.proto |
37 |
+@@ -701,7 +701,7 @@ |
38 |
+ |
39 |
+ message ErrorMessage { |
40 |
+ enum ErrorReason { |
41 |
+- reserved = 0; |
42 |
++ custReserved = 0; |
43 |
+ initVersionNotSupported = 1; |
44 |
+ initServerFull = 2; |
45 |
+ initAuthFailure = 3; |
46 |
+--- PokerTH-1.1.1-src/src/net/common/netpacket.cpp |
47 |
++++ PokerTH-1.1.1-src.new/src/net/common/netpacket.cpp |
48 |
+@@ -249,7 +249,7 @@ |
49 |
+ retVal = ErrorMessage::sessionTimeout; |
50 |
+ break; |
51 |
+ default : |
52 |
+- retVal = ErrorMessage::reserved; |
53 |
++ retVal = ErrorMessage::custReserved; |
54 |
+ break; |
55 |
+ } |
56 |
+ return retVal; |
57 |
|
58 |
diff --git a/games-board/pokerth/pokerth-1.1.2.ebuild b/games-board/pokerth/pokerth-1.1.2.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..3a84288bbc7 |
61 |
--- /dev/null |
62 |
+++ b/games-board/pokerth/pokerth-1.1.2.ebuild |
63 |
@@ -0,0 +1,71 @@ |
64 |
+# Copyright 1999-2018 Gentoo Foundation |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=6 |
68 |
+ |
69 |
+inherit desktop gnome2-utils qmake-utils |
70 |
+ |
71 |
+DESCRIPTION="Texas Hold'em poker game" |
72 |
+HOMEPAGE="https://www.pokerth.net/" |
73 |
+SRC_URI="mirror://sourceforge/pokerth/${P}.tar.gz" |
74 |
+ |
75 |
+LICENSE="AGPL-3 GPL-1 GPL-2 GPL-3 BitstreamVera public-domain" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~amd64 ~x86" |
78 |
+IUSE="dedicated" |
79 |
+ |
80 |
+RDEPEND="dev-db/sqlite:3 |
81 |
+ dev-libs/boost:0=[threads(+)] |
82 |
+ dev-libs/libgcrypt:0 |
83 |
+ dev-libs/protobuf:0= |
84 |
+ dev-libs/tinyxml[stl] |
85 |
+ dev-qt/qtcore:5 |
86 |
+ dev-qt/qtnetwork:5 |
87 |
+ >=net-libs/libircclient-1.6-r2 |
88 |
+ >=net-misc/curl-7.16 |
89 |
+ virtual/gsasl |
90 |
+ !dedicated? ( |
91 |
+ dev-qt/qtgui:5 |
92 |
+ dev-qt/qtwidgets:5 |
93 |
+ media-libs/libsdl:0 |
94 |
+ media-libs/sdl-mixer[mod,vorbis] |
95 |
+ )" |
96 |
+DEPEND="${RDEPEND} |
97 |
+ !dedicated? ( dev-qt/qtsql:5 ) |
98 |
+ virtual/pkgconfig" |
99 |
+ |
100 |
+S="${WORKDIR}/${P}-rc" |
101 |
+ |
102 |
+PATCHES=( |
103 |
+ "${FILESDIR}"/${PN}-1.1.1-boost-1.65-ambiguous-advance.patch |
104 |
+ "${FILESDIR}"/${PN}-1.1.2-protobuf.patch |
105 |
+) |
106 |
+ |
107 |
+src_prepare() { |
108 |
+ default |
109 |
+ sed -i 's/!client//' *.pro || die |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ eqmake5 pokerth.pro \ |
114 |
+ QMAKE_CFLAGS_ISYSTEM= \ |
115 |
+ CONFIG+="$(use dedicated || echo client)" |
116 |
+} |
117 |
+ |
118 |
+src_install() { |
119 |
+ dobin bin/pokerth_server chatcleaner |
120 |
+ dodoc docs/{gui_styling,server_setup}_howto.txt |
121 |
+ doman docs/pokerth.1 |
122 |
+ |
123 |
+ if ! use dedicated; then |
124 |
+ dobin ${PN} |
125 |
+ insinto /usr/share/${PN} |
126 |
+ doins -r data |
127 |
+ domenu ${PN}.desktop |
128 |
+ doicon -s 128 ${PN}.png |
129 |
+ fi |
130 |
+} |
131 |
+ |
132 |
+pkg_preinst() { gnome2_icon_savelist; } |
133 |
+pkg_postinst() { gnome2_icon_cache_update; } |
134 |
+pkg_postrm() { gnome2_icon_cache_update; } |