Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/construo/files/, games-puzzle/construo/
Date: Wed, 07 Jul 2021 17:25:24
Message-Id: 1625678698.34b60e2cbc2aed0c3c1574d83ac640fe88781d47.soap@gentoo
1 commit: 34b60e2cbc2aed0c3c1574d83ac640fe88781d47
2 Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
3 AuthorDate: Wed Jul 7 17:24:58 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 7 17:24:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34b60e2c
7
8 games-puzzle/construo: version 0.2.3
9
10 Closes https://bugs.gentoo.org/739282
11
12 Package-Manager: Portage-3.0.20, Repoman-3.0.2
13 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
14 Signed-off-by: David Seifert <soap <AT> gentoo.org>
15
16 games-puzzle/construo/Manifest | 1 +
17 games-puzzle/construo/construo-0.2.3.ebuild | 38 ++++++++++++++++
18 .../construo/files/construo-0.2.3-clang.patch | 50 ++++++++++++++++++++++
19 3 files changed, 89 insertions(+)
20
21 diff --git a/games-puzzle/construo/Manifest b/games-puzzle/construo/Manifest
22 index c7e527b8015..39aea78122d 100644
23 --- a/games-puzzle/construo/Manifest
24 +++ b/games-puzzle/construo/Manifest
25 @@ -1 +1,2 @@
26 DIST construo-0.2.2.tar.gz 442626 BLAKE2B c6c9c566c8e4014aba1e06d12af2c3c3076d533a9f11513e903a6fff027ecbd3b492c1ca35a50b42dbd0aea5064614147529f2dcfd6b75af2376a7a410fdc470 SHA512 b73854a64aedcb9ddcd8f2c3e809f975ef3d2f63bdefd2e126c808a4154d7ff3d402457f9da5f866e6b9d74c6010ffc58d44b04277976fe1a9aeabc20ea786a9
27 +DIST construo-0.2.3.tar.gz 585891 BLAKE2B 6970d9ce30553a72d59784d0e356705913fceaf8a7cf39873054f8122b29ffcda6757af8ce494fe989253e0e00de54d1d0c543d71403b65580ece6c1e8483be2 SHA512 b3b723e914fa3c08763b73cbd6ec340f70efefd28e2ff79e738cc5d71109304a90d2d0ddbd0277e587e4e134c5bd497dde15aebea2b318e5d3c07f339b769bf3
28
29 diff --git a/games-puzzle/construo/construo-0.2.3.ebuild b/games-puzzle/construo/construo-0.2.3.ebuild
30 new file mode 100644
31 index 00000000000..9e99b41dbdc
32 --- /dev/null
33 +++ b/games-puzzle/construo/construo-0.2.3.ebuild
34 @@ -0,0 +1,38 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +inherit autotools desktop
40 +
41 +DESCRIPTION="2d construction toy with objects that react on physical forces"
42 +HOMEPAGE="http://www.nongnu.org/construo/"
43 +SRC_URI="http://download-mirror.savannah.gnu.org/releases/construo/construo.pkg/${PV}/${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +RDEPEND="
50 + media-libs/freeglut
51 + virtual/glu
52 + virtual/opengl
53 + x11-libs/libXxf86vm
54 +"
55 +DEPEND="${RDEPEND}
56 + x11-base/xorg-proto"
57 +
58 +PATCHES=(
59 + "${FILESDIR}/construo-0.2.3-clang.patch"
60 +)
61 +
62 +src_prepare() {
63 + default
64 + sed -i -e 's/^bindir=.*/bindir=@bindir@/' src/Makefile.am || die
65 + eautoreconf
66 +}
67 +
68 +src_install() {
69 + default
70 + make_desktop_entry "${PN}.glut" "${PN}.glut"
71 + make_desktop_entry "${PN}.x11" "${PN}.x11"
72 +}
73
74 diff --git a/games-puzzle/construo/files/construo-0.2.3-clang.patch b/games-puzzle/construo/files/construo-0.2.3-clang.patch
75 new file mode 100644
76 index 00000000000..abc812e9eb8
77 --- /dev/null
78 +++ b/games-puzzle/construo/files/construo-0.2.3-clang.patch
79 @@ -0,0 +1,50 @@
80 +Fix FTBFS with clang
81 +
82 +diff --git a/src/construo.hpp b/src/construo.hpp
83 +index fb77e3e..41aa650 100644
84 +--- a/src/construo.hpp
85 ++++ b/src/construo.hpp
86 +@@ -19,7 +19,7 @@
87 +
88 + #include <config.h>
89 +
90 +-#define CONSTRUO_DATADIR DATADIR"/games/"PACKAGE
91 ++#define CONSTRUO_DATADIR DATADIR "/games/" PACKAGE
92 +
93 + class SystemContext;
94 + class InputContext;
95 +diff --git a/src/command_line.cpp b/src/command_line.cpp
96 +index df4669b..824a947 100644
97 +--- a/src/command_line.cpp
98 ++++ b/src/command_line.cpp
99 +@@ -118,7 +118,7 @@ CommandLine::parse (int argc, char** argv)
100 + void
101 + CommandLine::print_help ()
102 + {
103 +- std::cout << "Construo "VERSION"\n\n"
104 ++ std::cout << "Construo " VERSION "\n\n"
105 + << "Usage: construo [OPTIONS] [FILENAME]\n\n"
106 + << " -h, --help display this help text\n"
107 + << " -v,--version Print version number of the programm\n"
108 +@@ -135,7 +135,7 @@ CommandLine::print_help ()
109 + void
110 + CommandLine::print_version ()
111 + {
112 +- std::cout << "Construo "VERSION"\n"
113 ++ std::cout << "Construo " VERSION "\n"
114 + << "Written by Ingo Ruhnke <grumbel@×××.de>\n\n"
115 + << "Copyright (C) 2002 Ingo Ruhnke <grumbel@×××.de>\n"
116 + << "This is free software; see the source for copying conditions. There is NO\n"
117 +diff --git a/src/world_gui_manager.cpp b/src/world_gui_manager.cpp
118 +index 9c6a5f4..4a7cef0 100644
119 +--- a/src/world_gui_manager.cpp
120 ++++ b/src/world_gui_manager.cpp
121 +@@ -273,7 +273,7 @@ WorldGUIManager::draw_overlay ()
122 + graphic_context->draw_string (410, bottom_line, "Zoom: ");
123 + graphic_context->draw_string (480, bottom_line, to_string(WorldViewComponent::instance()->get_zoom()));
124 +
125 +- graphic_context->draw_string (610, bottom_line, "..:: Construo V"VERSION" ::..");
126 ++ graphic_context->draw_string (610, bottom_line, "..:: Construo V" VERSION " ::..");
127 + //graphic_context->draw_string (680, bottom_line, to_string(WorldViewComponent::instance()->get_zoom()));
128 + }
129 +