1 |
commit: 1f3d6c812f8740d48632aef6b9933a5b596e2443 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 2 16:59:27 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 2 16:59:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f3d6c81 |
7 |
|
8 |
games-board/qgo: 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 |
.../qgo/files/qgo-1.5.4_p20100322-buffer.patch | 4 +- |
17 |
.../qgo/files/qgo-1.5.4_p20100322-gcc45.patch | 24 +++++------ |
18 |
.../qgo/files/qgo-1.5.4_p20100322-qt47.patch | 16 ++++---- |
19 |
games-board/qgo/qgo-1.5.4_p20100322-r1.ebuild | 48 ++++++++++++++++++++++ |
20 |
4 files changed, 70 insertions(+), 22 deletions(-) |
21 |
|
22 |
diff --git a/games-board/qgo/files/qgo-1.5.4_p20100322-buffer.patch b/games-board/qgo/files/qgo-1.5.4_p20100322-buffer.patch |
23 |
index cb0f015..bdf94eb 100644 |
24 |
--- a/games-board/qgo/files/qgo-1.5.4_p20100322-buffer.patch |
25 |
+++ b/games-board/qgo/files/qgo-1.5.4_p20100322-buffer.patch |
26 |
@@ -1,5 +1,5 @@ |
27 |
---- src/network/tygemconnection.cpp.orig 2014-10-29 23:49:21.436929924 -0400 |
28 |
-+++ src/network/tygemconnection.cpp 2014-10-29 23:50:43.481183852 -0400 |
29 |
+--- a/src/network/tygemconnection.cpp 2014-10-29 23:49:21.436929924 -0400 |
30 |
++++ b/src/network/tygemconnection.cpp 2014-10-29 23:50:43.481183852 -0400 |
31 |
@@ -4768,7 +4768,7 @@ |
32 |
unsigned int i; |
33 |
|
34 |
|
35 |
diff --git a/games-board/qgo/files/qgo-1.5.4_p20100322-gcc45.patch b/games-board/qgo/files/qgo-1.5.4_p20100322-gcc45.patch |
36 |
index 53c8509..a02fae6 100644 |
37 |
--- a/games-board/qgo/files/qgo-1.5.4_p20100322-gcc45.patch |
38 |
+++ b/games-board/qgo/files/qgo-1.5.4_p20100322-gcc45.patch |
39 |
@@ -1,5 +1,5 @@ |
40 |
---- src/board/board.cpp.old 2010-06-01 08:20:32.000000000 +0200 |
41 |
-+++ src/board/board.cpp 2010-06-01 08:20:54.000000000 +0200 |
42 |
+--- a/src/board/board.cpp 2010-06-01 08:20:32.000000000 +0200 |
43 |
++++ b/src/board/board.cpp 2010-06-01 08:20:54.000000000 +0200 |
44 |
@@ -347,7 +347,7 @@ |
45 |
} |
46 |
|
47 |
@@ -9,8 +9,8 @@ |
48 |
|
49 |
} |
50 |
|
51 |
---- src/board/clockdisplay.cpp.old 2010-06-01 08:31:10.000000000 +0200 |
52 |
-+++ src/board/clockdisplay.cpp 2010-06-01 08:31:38.000000000 +0200 |
53 |
+--- a/src/board/clockdisplay.cpp 2010-06-01 08:31:10.000000000 +0200 |
54 |
++++ b/src/board/clockdisplay.cpp 2010-06-01 08:31:38.000000000 +0200 |
55 |
@@ -274,13 +274,13 @@ |
56 |
|
57 |
if(b_time > 3600 || w_time > 3600) |
58 |
@@ -29,8 +29,8 @@ |
59 |
} |
60 |
|
61 |
switch(timeSystem) |
62 |
---- src/gtp/qgtp.cpp.old 2010-06-01 08:34:09.000000000 +0200 |
63 |
-+++ src/gtp/qgtp.cpp 2010-06-01 08:34:28.000000000 +0200 |
64 |
+--- a/src/gtp/qgtp.cpp 2010-06-01 08:34:09.000000000 +0200 |
65 |
++++ b/src/gtp/qgtp.cpp 2010-06-01 08:34:28.000000000 +0200 |
66 |
@@ -341,7 +341,7 @@ |
67 |
_cpt++; |
68 |
|
69 |
@@ -40,8 +40,8 @@ |
70 |
|
71 |
// int j= programProcess->waitForBytesWritten ( 100 ); |
72 |
|
73 |
---- src/board/imagehandler.cpp.old 2010-06-01 08:34:55.000000000 +0200 |
74 |
-+++ src/board/imagehandler.cpp 2010-06-01 08:35:17.000000000 +0200 |
75 |
+--- a/src/board/imagehandler.cpp 2010-06-01 08:34:55.000000000 +0200 |
76 |
++++ b/src/board/imagehandler.cpp 2010-06-01 08:35:17.000000000 +0200 |
77 |
@@ -93,8 +93,8 @@ |
78 |
{ |
79 |
altGhostPixmaps = new QList<QPixmap>();//::QList(); |
80 |
@@ -53,8 +53,8 @@ |
81 |
|
82 |
if (alt1.isNull() || alt2.isNull()) |
83 |
qFatal("Could not load alt_ghost pixmaps."); |
84 |
---- src/board/mark.cpp.old 2010-06-01 08:36:39.000000000 +0200 |
85 |
-+++ src/board/mark.cpp 2010-06-01 08:36:51.000000000 +0200 |
86 |
+--- a/src/board/mark.cpp 2010-06-01 08:36:39.000000000 +0200 |
87 |
++++ b/src/board/mark.cpp 2010-06-01 08:36:51.000000000 +0200 |
88 |
@@ -109,7 +109,7 @@ |
89 |
setPen(QPen(col, 2)); |
90 |
// else |
91 |
@@ -64,8 +64,8 @@ |
92 |
|
93 |
// setPen(QPen(col, 1)); |
94 |
setSize(s, s); |
95 |
---- src/network/gamedialog.cpp.old 2010-06-01 08:45:26.000000000 +0200 |
96 |
-+++ src/network/gamedialog.cpp 2010-06-01 08:45:40.000000000 +0200 |
97 |
+--- a/src/network/gamedialog.cpp 2010-06-01 08:45:26.000000000 +0200 |
98 |
++++ b/src/network/gamedialog.cpp 2010-06-01 08:45:40.000000000 +0200 |
99 |
@@ -1123,7 +1123,7 @@ |
100 |
* probably FIXME, I just wonder why its like that in the first place */ |
101 |
|
102 |
|
103 |
diff --git a/games-board/qgo/files/qgo-1.5.4_p20100322-qt47.patch b/games-board/qgo/files/qgo-1.5.4_p20100322-qt47.patch |
104 |
index bf8bfee..203bf48 100644 |
105 |
--- a/games-board/qgo/files/qgo-1.5.4_p20100322-qt47.patch |
106 |
+++ b/games-board/qgo/files/qgo-1.5.4_p20100322-qt47.patch |
107 |
@@ -1,5 +1,5 @@ |
108 |
---- src/network/playergamelistings.h.old 2010-11-08 13:49:25.000000000 +0100 |
109 |
-+++ src/network/playergamelistings.h 2010-11-08 13:52:24.000000000 +0100 |
110 |
+--- a/src/network/playergamelistings.h 2010-11-08 13:49:25.000000000 +0100 |
111 |
++++ b/src/network/playergamelistings.h 2010-11-08 13:52:24.000000000 +0100 |
112 |
@@ -66,21 +66,21 @@ |
113 |
bool hidden; |
114 |
PlayerListing() : id(0), |
115 |
@@ -39,8 +39,8 @@ |
116 |
flags(IN_PROGRESS), |
117 |
rated(0), |
118 |
owner_id(0), |
119 |
---- src/board/board.h.old 2010-11-08 13:57:26.000000000 +0100 |
120 |
-+++ src/board/board.h 2010-11-08 13:58:17.000000000 +0100 |
121 |
+--- a/src/board/board.h 2010-11-08 13:57:26.000000000 +0100 |
122 |
++++ b/src/board/board.h 2010-11-08 13:58:17.000000000 +0100 |
123 |
@@ -50,7 +50,7 @@ |
124 |
|
125 |
void removeGhosts(); |
126 |
@@ -50,8 +50,8 @@ |
127 |
Mark* hasMark(int x, int y); |
128 |
void removeMark(int x, int y, bool update = false); |
129 |
void removeDeadMarks(); |
130 |
---- src/board/boardwindow.h.old 2010-11-08 14:21:19.000000000 +0100 |
131 |
-+++ src/board/boardwindow.h 2010-11-08 14:21:39.000000000 +0100 |
132 |
+--- a/src/board/boardwindow.h 2010-11-08 14:21:19.000000000 +0100 |
133 |
++++ b/src/board/boardwindow.h 2010-11-08 14:21:39.000000000 +0100 |
134 |
@@ -45,7 +45,7 @@ |
135 |
~BoardWindow(); |
136 |
|
137 |
@@ -61,8 +61,8 @@ |
138 |
bool doSave(QString fileName, bool force); |
139 |
QString getCandidateFileName(); |
140 |
|
141 |
---- src/sgf/sgfparser.h.old 2010-11-08 14:29:05.000000000 +0100 |
142 |
-+++ src/sgf/sgfparser.h 2010-11-08 14:29:27.000000000 +0100 |
143 |
+--- a/src/sgf/sgfparser.h 2010-11-08 14:29:05.000000000 +0100 |
144 |
++++ b/src/sgf/sgfparser.h 2010-11-08 14:29:27.000000000 +0100 |
145 |
@@ -51,7 +51,7 @@ |
146 |
*/ |
147 |
protected: |
148 |
|
149 |
diff --git a/games-board/qgo/qgo-1.5.4_p20100322-r1.ebuild b/games-board/qgo/qgo-1.5.4_p20100322-r1.ebuild |
150 |
new file mode 100644 |
151 |
index 0000000..68ec877 |
152 |
--- /dev/null |
153 |
+++ b/games-board/qgo/qgo-1.5.4_p20100322-r1.ebuild |
154 |
@@ -0,0 +1,48 @@ |
155 |
+# Copyright 1999-2016 Gentoo Foundation |
156 |
+# Distributed under the terms of the GNU General Public License v2 |
157 |
+# $Id$ |
158 |
+ |
159 |
+EAPI=6 |
160 |
+inherit eutils qmake-utils |
161 |
+ |
162 |
+DESCRIPTION="An ancient boardgame, very common in Japan, China and Korea" |
163 |
+HOMEPAGE="http://qgo.sourceforge.net/" |
164 |
+SRC_URI="mirror://gentoo/${P}.tar.bz2" |
165 |
+ |
166 |
+LICENSE="GPL-2" |
167 |
+SLOT="0" |
168 |
+KEYWORDS="~amd64 ~x86" |
169 |
+IUSE="" |
170 |
+ |
171 |
+DEPEND=" |
172 |
+ dev-qt/qtcore:4 |
173 |
+ dev-qt/qtgui:4 |
174 |
+ dev-qt/qttest:4 |
175 |
+ media-libs/alsa-lib" |
176 |
+RDEPEND="${DEPEND}" |
177 |
+ |
178 |
+PATCHES=( |
179 |
+ "${FILESDIR}"/${P}-gcc45.patch |
180 |
+ "${FILESDIR}"/${P}-qt47.patch |
181 |
+ "${FILESDIR}"/${P}-buffer.patch |
182 |
+) |
183 |
+ |
184 |
+src_prepare() { |
185 |
+ default |
186 |
+ sed -i \ |
187 |
+ -e 's:$(QTDIR)/bin/lrelease:lrelease:' \ |
188 |
+ src/src.pro || die |
189 |
+} |
190 |
+ |
191 |
+src_configure() { |
192 |
+ eqmake4 qgo2.pro |
193 |
+} |
194 |
+ |
195 |
+src_install() { |
196 |
+ emake install INSTALL_ROOT="${D}" |
197 |
+ |
198 |
+ dodoc AUTHORS |
199 |
+ |
200 |
+ insinto /usr/share/${PN}/languages |
201 |
+ doins src/translations/*.qm |
202 |
+} |