Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/pingus/, games-puzzle/pingus/files/
Date: Wed, 03 Apr 2019 16:12:03
Message-Id: 1554307912.9dbfbec856f624c499c00f56fc5dd332eeac9d8c.polynomial-c@gentoo
1 commit: 9dbfbec856f624c499c00f56fc5dd332eeac9d8c
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 3 16:09:59 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 3 16:11:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dbfbec8
7
8 games-puzzle/pingus: Revbump to use boost_signals2
9
10 the used upstream patch replaces long deprecated boost_signals with its
11 version 2 successor.
12
13 Package-Manager: Portage-2.3.62, Repoman-2.3.12
14 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
15
16 .../pingus/files/pingus-0.7.6-boost_signals2.patch | 380 +++++++++++++++++++++
17 games-puzzle/pingus/pingus-0.7.6-r2.ebuild | 63 ++++
18 2 files changed, 443 insertions(+)
19
20 diff --git a/games-puzzle/pingus/files/pingus-0.7.6-boost_signals2.patch b/games-puzzle/pingus/files/pingus-0.7.6-boost_signals2.patch
21 new file mode 100644
22 index 00000000000..df4d4494503
23 --- /dev/null
24 +++ b/games-puzzle/pingus/files/pingus-0.7.6-boost_signals2.patch
25 @@ -0,0 +1,380 @@
26 +From 6b5f2eb72359ce9cece7543eebb02f2c1ac0dcf9 Mon Sep 17 00:00:00 2001
27 +From: Ingo Ruhnke <grumbel@×××××.com>
28 +Date: Sat, 26 Jul 2014 20:49:11 +0200
29 +Subject: [PATCH] Switched to boost::signals2
30 +
31 +---
32 + SConscript | 5 ++---
33 + src/editor/button.hpp | 4 ++--
34 + src/editor/checkbox.hpp | 4 ++--
35 + src/editor/combobox.hpp | 4 ++--
36 + src/editor/file_list.hpp | 4 ++--
37 + src/editor/inputbox.hpp | 6 +++---
38 + src/editor/message_box.hpp | 2 +-
39 + src/editor/object_selector.cpp | 4 ++--
40 + src/editor/viewport.hpp | 4 ++--
41 + src/pingus/components/check_box.hpp | 4 ++--
42 + src/pingus/components/choice_box.hpp | 4 ++--
43 + src/pingus/components/slider_box.hpp | 4 ++--
44 + src/pingus/config_manager.hpp | 28 ++++++++++++++--------------
45 + src/pingus/screens/option_menu.hpp | 4 ++--
46 + 14 files changed, 40 insertions(+), 41 deletions(-)
47 +
48 +diff --git a/SConscript b/SConscript
49 +index 54b64680d..9caa931b6 100644
50 +--- a/SConscript
51 ++++ b/SConscript
52 +@@ -187,9 +187,8 @@ class Project:
53 + 'src/engine/input/xinput/xinput_device.cpp'])
54 +
55 + def configure_boost(self):
56 +- if not self.conf.CheckLibWithHeader('boost_signals', 'boost/signals.hpp', 'c++'):
57 +- if not self.conf.CheckLibWithHeader('boost_signals-mt', 'boost/signals.hpp', 'c++'):
58 +- self.fatal_error += " * library 'boost_signals' not found\n"
59 ++ if not self.conf.CheckHeader('boost/signals2.hpp', '<>', 'c++'):
60 ++ self.fatal_error += " * library 'boost_signals2' not found\n"
61 +
62 + def configure_png(self):
63 + if self.conf.CheckMyProgram('pkg-config'):
64 +diff --git a/src/editor/button.hpp b/src/editor/button.hpp
65 +index c85d7da9e..d89dfe669 100644
66 +--- a/src/editor/button.hpp
67 ++++ b/src/editor/button.hpp
68 +@@ -17,7 +17,7 @@
69 + #ifndef HEADER_PINGUS_EDITOR_BUTTON_HPP
70 + #define HEADER_PINGUS_EDITOR_BUTTON_HPP
71 +
72 +-#include <boost/signal.hpp>
73 ++#include <boost/signals2.hpp>
74 +
75 + #include "engine/gui/rect_component.hpp"
76 +
77 +@@ -48,7 +48,7 @@ public:
78 + void enable() { enabled = true; }
79 + void disable() { enabled = false; }
80 +
81 +- boost::signal<void()> on_click;
82 ++ boost::signals2::signal<void()> on_click;
83 +
84 + private:
85 + Button (const Button&);
86 +diff --git a/src/editor/checkbox.hpp b/src/editor/checkbox.hpp
87 +index 7c3bc835f..66382d79b 100644
88 +--- a/src/editor/checkbox.hpp
89 ++++ b/src/editor/checkbox.hpp
90 +@@ -17,7 +17,7 @@
91 + #ifndef HEADER_PINGUS_EDITOR_CHECKBOX_HPP
92 + #define HEADER_PINGUS_EDITOR_CHECKBOX_HPP
93 +
94 +-#include <boost/signal.hpp>
95 ++#include <boost/signals2.hpp>
96 +
97 + #include "engine/gui/rect_component.hpp"
98 +
99 +@@ -40,7 +40,7 @@ public:
100 + bool is_checked() const { return checked; }
101 + void on_primary_button_press(int x, int y);
102 +
103 +- boost::signal<void (bool)> on_change;
104 ++ boost::signals2::signal<void (bool)> on_change;
105 +
106 + private:
107 + Checkbox (const Checkbox&);
108 +diff --git a/src/editor/combobox.hpp b/src/editor/combobox.hpp
109 +index 0ca742593..603556bd9 100644
110 +--- a/src/editor/combobox.hpp
111 ++++ b/src/editor/combobox.hpp
112 +@@ -18,7 +18,7 @@
113 + #ifndef HEADER_PINGUS_EDITOR_COMBOBOX_HPP
114 + #define HEADER_PINGUS_EDITOR_COMBOBOX_HPP
115 +
116 +-#include <boost/signal.hpp>
117 ++#include <boost/signals2.hpp>
118 +
119 + #include "engine/display/sprite.hpp"
120 + #include "engine/gui/rect_component.hpp"
121 +@@ -88,7 +88,7 @@ public:
122 +
123 + void update_layout() {}
124 +
125 +- boost::signal<void (const ComboItem&)> on_select;
126 ++ boost::signals2::signal<void (const ComboItem&)> on_select;
127 +
128 + private:
129 + Combobox();
130 +diff --git a/src/editor/file_list.hpp b/src/editor/file_list.hpp
131 +index cc4bba2de..85efe6aa0 100644
132 +--- a/src/editor/file_list.hpp
133 ++++ b/src/editor/file_list.hpp
134 +@@ -17,7 +17,7 @@
135 + #ifndef HEADER_PINGUS_EDITOR_FILE_LIST_HPP
136 + #define HEADER_PINGUS_EDITOR_FILE_LIST_HPP
137 +
138 +-#include <boost/signal.hpp>
139 ++#include <boost/signals2.hpp>
140 +
141 + #include "engine/display/sprite.hpp"
142 + #include "engine/gui/rect_component.hpp"
143 +@@ -61,7 +61,7 @@ public:
144 + bool has_more_next_pages();
145 + bool has_more_prev_pages();
146 +
147 +- boost::signal<void (const System::DirectoryEntry&)> on_click;
148 ++ boost::signals2::signal<void (const System::DirectoryEntry&)> on_click;
149 +
150 + private:
151 + int items_per_page();
152 +diff --git a/src/editor/inputbox.hpp b/src/editor/inputbox.hpp
153 +index cad9663ec..87321dbba 100644
154 +--- a/src/editor/inputbox.hpp
155 ++++ b/src/editor/inputbox.hpp
156 +@@ -17,7 +17,7 @@
157 + #ifndef HEADER_PINGUS_EDITOR_INPUTBOX_HPP
158 + #define HEADER_PINGUS_EDITOR_INPUTBOX_HPP
159 +
160 +-#include <boost/signal.hpp>
161 ++#include <boost/signals2.hpp>
162 +
163 + #include "engine/gui/rect_component.hpp"
164 +
165 +@@ -40,8 +40,8 @@ public:
166 +
167 + void update_layout() {}
168 +
169 +- boost::signal<void (const std::string&)> on_change;
170 +- boost::signal<void (const std::string&)> on_enter;
171 ++ boost::signals2::signal<void (const std::string&)> on_change;
172 ++ boost::signals2::signal<void (const std::string&)> on_enter;
173 +
174 + private:
175 + Inputbox (const Inputbox&);
176 +diff --git a/src/editor/message_box.hpp b/src/editor/message_box.hpp
177 +index 385387a61..d885767cf 100644
178 +--- a/src/editor/message_box.hpp
179 ++++ b/src/editor/message_box.hpp
180 +@@ -45,7 +45,7 @@ public:
181 + void on_cancel_button();
182 +
183 + public:
184 +- boost::signal<void()> on_ok;
185 ++ boost::signals2::signal<void()> on_ok;
186 +
187 + private:
188 + MessageBox(const MessageBox&);
189 +diff --git a/src/editor/object_selector.cpp b/src/editor/object_selector.cpp
190 +index 28e306826..f3a36b5e8 100644
191 +--- a/src/editor/object_selector.cpp
192 ++++ b/src/editor/object_selector.cpp
193 +@@ -16,7 +16,7 @@
194 +
195 + #include "editor/object_selector.hpp"
196 +
197 +-#include <boost/signal.hpp>
198 ++#include <boost/signals2.hpp>
199 +
200 + #include "editor/generic_level_obj.hpp"
201 + #include "editor/gui_style.hpp"
202 +@@ -47,7 +47,7 @@ private:
203 + std::string tooltip;
204 +
205 + public:
206 +- boost::signal<void()> on_click;
207 ++ boost::signals2::signal<void()> on_click;
208 +
209 + public:
210 + ObjectSelectorButton(ObjectSelectorList* object_list_,
211 +diff --git a/src/editor/viewport.hpp b/src/editor/viewport.hpp
212 +index 1ae9eff7c..18868254d 100644
213 +--- a/src/editor/viewport.hpp
214 ++++ b/src/editor/viewport.hpp
215 +@@ -18,7 +18,7 @@
216 + #ifndef HEADER_PINGUS_EDITOR_VIEWPORT_HPP
217 + #define HEADER_PINGUS_EDITOR_VIEWPORT_HPP
218 +
219 +-#include <boost/signal.hpp>
220 ++#include <boost/signals2.hpp>
221 + #include <set>
222 +
223 + #include "editor/selection.hpp"
224 +@@ -148,7 +148,7 @@ public:
225 +
226 + void clear_selection();
227 +
228 +- boost::signal<void (const Selection&)> selection_changed;
229 ++ boost::signals2::signal<void (const Selection&)> selection_changed;
230 + private:
231 + Viewport();
232 + Viewport (const Viewport&);
233 +diff --git a/src/pingus/components/check_box.hpp b/src/pingus/components/check_box.hpp
234 +index 00e23b764..5bef50f6b 100644
235 +--- a/src/pingus/components/check_box.hpp
236 ++++ b/src/pingus/components/check_box.hpp
237 +@@ -17,7 +17,7 @@
238 + #ifndef HEADER_PINGUS_PINGUS_COMPONENTS_CHECK_BOX_HPP
239 + #define HEADER_PINGUS_PINGUS_COMPONENTS_CHECK_BOX_HPP
240 +
241 +-#include <boost/signal.hpp>
242 ++#include <boost/signals2.hpp>
243 +
244 + #include "engine/display/sprite.hpp"
245 + #include "engine/gui/rect_component.hpp"
246 +@@ -39,7 +39,7 @@ public:
247 +
248 + void set_state(bool v, bool send_signal);
249 +
250 +- boost::signal<void (bool)> on_change;
251 ++ boost::signals2::signal<void (bool)> on_change;
252 +
253 + private:
254 + CheckBox (const CheckBox&);
255 +diff --git a/src/pingus/components/choice_box.hpp b/src/pingus/components/choice_box.hpp
256 +index 49d6e1948..ef51b6dd2 100644
257 +--- a/src/pingus/components/choice_box.hpp
258 ++++ b/src/pingus/components/choice_box.hpp
259 +@@ -17,7 +17,7 @@
260 + #ifndef HEADER_PINGUS_PINGUS_COMPONENTS_CHOICE_BOX_HPP
261 + #define HEADER_PINGUS_PINGUS_COMPONENTS_CHOICE_BOX_HPP
262 +
263 +-#include <boost/signal.hpp>
264 ++#include <boost/signals2.hpp>
265 +
266 + #include "engine/gui/rect_component.hpp"
267 +
268 +@@ -36,7 +36,7 @@ public:
269 + void add_choice(const std::string& str);
270 + void set_current_choice(int choice);
271 +
272 +- boost::signal<void (std::string)> on_change;
273 ++ boost::signals2::signal<void (std::string)> on_change;
274 +
275 + private:
276 + ChoiceBox (const ChoiceBox&);
277 +diff --git a/src/pingus/components/slider_box.hpp b/src/pingus/components/slider_box.hpp
278 +index ae4d92406..75118eac2 100644
279 +--- a/src/pingus/components/slider_box.hpp
280 ++++ b/src/pingus/components/slider_box.hpp
281 +@@ -17,7 +17,7 @@
282 + #ifndef HEADER_PINGUS_PINGUS_COMPONENTS_SLIDER_BOX_HPP
283 + #define HEADER_PINGUS_PINGUS_COMPONENTS_SLIDER_BOX_HPP
284 +
285 +-#include <boost/signal.hpp>
286 ++#include <boost/signals2.hpp>
287 +
288 + #include "engine/gui/rect_component.hpp"
289 +
290 +@@ -39,7 +39,7 @@ public:
291 +
292 + void set_value(int v);
293 +
294 +- boost::signal<void (int)> on_change;
295 ++ boost::signals2::signal<void (int)> on_change;
296 +
297 + private:
298 + SliderBox (const SliderBox&);
299 +diff --git a/src/pingus/config_manager.hpp b/src/pingus/config_manager.hpp
300 +index b07b83e65..4cf08e046 100644
301 +--- a/src/pingus/config_manager.hpp
302 ++++ b/src/pingus/config_manager.hpp
303 +@@ -17,7 +17,7 @@
304 + #ifndef HEADER_PINGUS_PINGUS_CONFIG_MANAGER_HPP
305 + #define HEADER_PINGUS_PINGUS_CONFIG_MANAGER_HPP
306 +
307 +-#include <boost/signal.hpp>
308 ++#include <boost/signals2.hpp>
309 +
310 + #include "math/size.hpp"
311 + #include "pingus/options.hpp"
312 +@@ -39,55 +39,55 @@ public:
313 +
314 + void set_master_volume(int);
315 + int get_master_volume() const;
316 +- boost::signal<void(int)> on_master_volume_change;
317 ++ boost::signals2::signal<void(int)> on_master_volume_change;
318 +
319 + void set_sound_volume(int);
320 + int get_sound_volume() const;
321 +- boost::signal<void(int)> on_sound_volume_change;
322 ++ boost::signals2::signal<void(int)> on_sound_volume_change;
323 +
324 + void set_music_volume(int);
325 + int get_music_volume() const;
326 +- boost::signal<void(int)> on_music_volume_change;
327 ++ boost::signals2::signal<void(int)> on_music_volume_change;
328 +
329 + void set_fullscreen_resolution(const Size& size);
330 + Size get_fullscreen_resolution() const;
331 +- boost::signal<void(Size)> on_fullscreen_resolution_change;
332 ++ boost::signals2::signal<void(Size)> on_fullscreen_resolution_change;
333 +
334 + void set_fullscreen(bool);
335 + bool get_fullscreen() const;
336 +- boost::signal<void(bool)> on_fullscreen_change;
337 ++ boost::signals2::signal<void(bool)> on_fullscreen_change;
338 +
339 + void set_renderer(FramebufferType type);
340 + FramebufferType get_renderer() const;
341 +- boost::signal<void(FramebufferType)> on_renderer_change;
342 ++ boost::signals2::signal<void(FramebufferType)> on_renderer_change;
343 +
344 + void set_resizable(bool);
345 + bool get_resizable() const;
346 +- boost::signal<void(bool)> on_resizable_change;
347 ++ boost::signals2::signal<void(bool)> on_resizable_change;
348 +
349 + void set_mouse_grab(bool);
350 + bool get_mouse_grab() const;
351 +- boost::signal<void(bool)> on_mouse_grab_change;
352 ++ boost::signals2::signal<void(bool)> on_mouse_grab_change;
353 +
354 + void set_print_fps(bool);
355 + bool get_print_fps() const;
356 +- boost::signal<void(bool)> on_print_fps_change;
357 ++ boost::signals2::signal<void(bool)> on_print_fps_change;
358 +
359 + void set_language(const tinygettext::Language&);
360 + tinygettext::Language get_language() const;
361 +- boost::signal<void(const tinygettext::Language&)> on_language_change;
362 ++ boost::signals2::signal<void(const tinygettext::Language&)> on_language_change;
363 +
364 + void set_software_cursor(bool);
365 + bool get_software_cursor() const;
366 +- boost::signal<void(bool)> on_software_cursor_change;
367 ++ boost::signals2::signal<void(bool)> on_software_cursor_change;
368 +
369 + void set_auto_scrolling(bool);
370 + bool get_auto_scrolling() const;
371 +- boost::signal<void(bool)> on_auto_scrolling_change;
372 ++ boost::signals2::signal<void(bool)> on_auto_scrolling_change;
373 +
374 + void set_drag_drop_scrolling(bool);
375 + bool get_drag_drop_scrolling() const;
376 +- boost::signal<void(bool)> on_drag_drop_scrolling_change;
377 ++ boost::signals2::signal<void(bool)> on_drag_drop_scrolling_change;
378 +
379 + private:
380 + ConfigManager (const ConfigManager&);
381 +diff --git a/src/pingus/screens/option_menu.hpp b/src/pingus/screens/option_menu.hpp
382 +index 60b1578d2..154ef0f69 100644
383 +--- a/src/pingus/screens/option_menu.hpp
384 ++++ b/src/pingus/screens/option_menu.hpp
385 +@@ -17,7 +17,7 @@
386 + #ifndef HEADER_PINGUS_PINGUS_SCREENS_OPTION_MENU_HPP
387 + #define HEADER_PINGUS_PINGUS_SCREENS_OPTION_MENU_HPP
388 +
389 +-#include <boost/signals.hpp>
390 ++#include <boost/signals2.hpp>
391 + #include <map>
392 + #include <vector>
393 +
394 +@@ -66,7 +66,7 @@ private:
395 + //Label* defaults_label;
396 + //CheckBox* defaults_box;
397 +
398 +- typedef std::vector<boost::signals::connection> Connections;
399 ++ typedef std::vector<boost::signals2::connection> Connections;
400 + Connections connections;
401 +
402 + tinygettext::Language m_language;
403 +--
404 +2.21.0
405 +
406
407 diff --git a/games-puzzle/pingus/pingus-0.7.6-r2.ebuild b/games-puzzle/pingus/pingus-0.7.6-r2.ebuild
408 new file mode 100644
409 index 00000000000..7a222f34d4f
410 --- /dev/null
411 +++ b/games-puzzle/pingus/pingus-0.7.6-r2.ebuild
412 @@ -0,0 +1,63 @@
413 +# Copyright 1999-2019 Gentoo Authors
414 +# Distributed under the terms of the GNU General Public License v2
415 +
416 +EAPI=6
417 +inherit scons-utils toolchain-funcs flag-o-matic xdg-utils
418 +
419 +DESCRIPTION="free Lemmings clone"
420 +HOMEPAGE="https://pingus.seul.org"
421 +SRC_URI="https://pingus.googlecode.com/files/${P}.tar.bz2"
422 +
423 +LICENSE="GPL-3"
424 +SLOT="0"
425 +KEYWORDS="~amd64 ~x86"
426 +IUSE="opengl music"
427 +
428 +RDEPEND="media-libs/libsdl[joystick,opengl?,video]
429 + media-libs/sdl-image[png]
430 + media-libs/sdl-mixer
431 + music? ( media-libs/sdl-mixer[mod] )
432 + opengl? ( virtual/opengl )
433 + media-libs/libpng:0=
434 + dev-libs/boost:="
435 +DEPEND="${RDEPEND}
436 + virtual/pkgconfig"
437 +
438 +PATCHES=(
439 + "${FILESDIR}"/${P}-noopengl.patch
440 + "${FILESDIR}"/${P}-gcc47.patch
441 + "${FILESDIR}"/${P}-echo-e.patch
442 + "${FILESDIR}"/${P}-gcc7.patch
443 + "${FILESDIR}"/${P}-boost_signals2.patch
444 +)
445 +
446 +src_prepare() {
447 + default
448 + strip-flags
449 +}
450 +
451 +src_compile() {
452 + escons \
453 + CXX="$(tc-getCXX)" \
454 + CCFLAGS="${CXXFLAGS}" \
455 + LINKFLAGS="${LDFLAGS}" \
456 + with_opengl=$(usex opengl 1 0)
457 +}
458 +
459 +src_install() {
460 + emake install-exec install-data \
461 + DESTDIR="${D}" \
462 + PREFIX="/usr"
463 + doman doc/man/pingus.6
464 + doicon data/images/icons/pingus.svg
465 + make_desktop_entry ${PN} Pingus
466 + dodoc AUTHORS NEWS README TODO
467 +}
468 +
469 +pkg_postinst() {
470 + xdg_desktop_database_update
471 +}
472 +
473 +pkg_postrm() {
474 + xdg_desktop_database_update
475 +}