1 |
commit: c381fd611fb42f52876775b7479978e100ac1726 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 2 21:04:28 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 2 21:33:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c381fd61 |
7 |
|
8 |
games-board/pokerth: remove deprecated games eclass |
9 |
|
10 |
Also update to EAPI 6 |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/574082 |
13 |
|
14 |
Package-Manager: portage-2.3.0 |
15 |
|
16 |
games-board/pokerth/pokerth-1.1.1-r2.ebuild | 70 +++++++++++++++++++++++++++++ |
17 |
1 file changed, 70 insertions(+) |
18 |
|
19 |
diff --git a/games-board/pokerth/pokerth-1.1.1-r2.ebuild b/games-board/pokerth/pokerth-1.1.1-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 0000000..32febcd |
22 |
--- /dev/null |
23 |
+++ b/games-board/pokerth/pokerth-1.1.1-r2.ebuild |
24 |
@@ -0,0 +1,70 @@ |
25 |
+# Copyright 1999-2016 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+# $Id$ |
28 |
+ |
29 |
+EAPI=6 |
30 |
+inherit flag-o-matic eutils qmake-utils |
31 |
+ |
32 |
+MY_P="PokerTH-${PV}-src" |
33 |
+DESCRIPTION="Texas Hold'em poker game" |
34 |
+HOMEPAGE="http://www.pokerth.net/" |
35 |
+SRC_URI="mirror://sourceforge/pokerth/${MY_P}.tar.bz2" |
36 |
+ |
37 |
+LICENSE="AGPL-3 GPL-1 GPL-2 GPL-3 BitstreamVera public-domain" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="dedicated" |
41 |
+ |
42 |
+RDEPEND="dev-db/sqlite:3 |
43 |
+ dev-libs/boost:=[threads(+)] |
44 |
+ dev-libs/libgcrypt:0 |
45 |
+ dev-libs/protobuf |
46 |
+ dev-libs/tinyxml[stl] |
47 |
+ dev-qt/qtcore:5 |
48 |
+ dev-qt/qtnetwork:5 |
49 |
+ >=net-libs/libircclient-1.6-r2 |
50 |
+ >=net-misc/curl-7.16 |
51 |
+ virtual/gsasl |
52 |
+ !dedicated? ( |
53 |
+ dev-qt/qtgui:5 |
54 |
+ dev-qt/qtwidgets:5 |
55 |
+ media-libs/libsdl:0 |
56 |
+ media-libs/sdl-mixer[mod,vorbis] |
57 |
+ )" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ !dedicated? ( dev-qt/qtsql:5 ) |
60 |
+ virtual/pkgconfig" |
61 |
+ |
62 |
+S=${WORKDIR}/${MY_P} |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${P}-qt5.patch" |
66 |
+ "${FILESDIR}/${P}-boost-1.60.patch" |
67 |
+) |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ default |
71 |
+ |
72 |
+ if use dedicated ; then |
73 |
+ sed -i -e 's/pokerth_game.pro//' pokerth.pro || die |
74 |
+ fi |
75 |
+ |
76 |
+ sed -i -e '/no_dead_strip_inits_and_terms/d' *pro || die |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ eqmake5 pokerth.pro |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ dobin bin/pokerth_server |
85 |
+ if ! use dedicated ; then |
86 |
+ dobin ${PN} |
87 |
+ insinto /usr/share/${PN} |
88 |
+ doins -r data |
89 |
+ domenu ${PN}.desktop |
90 |
+ doicon ${PN}.png |
91 |
+ fi |
92 |
+ doman docs/pokerth.1 |
93 |
+ dodoc ChangeLog TODO docs/{gui_styling,server_setup}_howto.txt |
94 |
+} |