1 |
commit: fde5a5b1a939c074227d7e0830991566d7df316e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 27 10:47:34 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 11:55:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fde5a5b1 |
7 |
|
8 |
games-arcade/supertux: Bump to version 0.5.0 |
9 |
|
10 |
Package-Manager: portage-2.3.1 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
games-arcade/supertux/Manifest | 1 + |
14 |
.../supertux/files/supertux-0.4.0-desktop.patch | 4 +- |
15 |
.../supertux/files/supertux-0.4.0-flags.patch | 4 +- |
16 |
.../supertux/files/supertux-0.4.0-icon.patch | 4 +- |
17 |
.../supertux/files/supertux-0.4.0-license.patch | 4 +- |
18 |
.../supertux/files/supertux-0.5.0-obstack.patch | 19 ++++++ |
19 |
.../files/supertux-0.5.0-tinygettext.patch | 30 ++++++++++ |
20 |
games-arcade/supertux/supertux-0.5.0.ebuild | 67 ++++++++++++++++++++++ |
21 |
8 files changed, 125 insertions(+), 8 deletions(-) |
22 |
|
23 |
diff --git a/games-arcade/supertux/Manifest b/games-arcade/supertux/Manifest |
24 |
index 30519d3..d638673 100644 |
25 |
--- a/games-arcade/supertux/Manifest |
26 |
+++ b/games-arcade/supertux/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
+DIST SuperTux-v0.5.0-Source.tar.gz 90564579 SHA256 cfae0da40c41532fb414c3b17891c98396b59471fe583a8fc756b96aea61a73b SHA512 dcd4d361eee34d8ab25e680cec328b0931a001f8ab97d0b40b03291e9214fdb64cc08fbccb81f524e5f6ba9921414bdf58dc29e27ff663a0160f678b6908b783 WHIRLPOOL ffee5ad36bc305e9df5f9e4a31d3ea5bfb6684ee8c91ced44ed072e5262dd2c8e4fff676fd5abc2bdfa6ab942ec5d18b6864ebe0882eb3d0f78213e14fa51eb3 |
29 |
DIST supertux-0.4.0.tar.bz2 79713147 SHA256 d18dde3c415e619b4bb035e694ffc384be16576250c9df16929d9ec38daff782 SHA512 66ca63c982b6076847662c187069eb965211439e5dfc628300f2a9bd0d2b4c0f7b53f6e7c2aed263c098cc9b77fedf132e73b1f3b3eacaf5535cae8300262fb5 WHIRLPOOL 12551b655f0459a37d3b91b1eff058ec383df34c9f3c29c1e8a63c070c12b32ec798b772053cd08b11d32b612bab1188b69678e71585279e94ad380052076f64 |
30 |
|
31 |
diff --git a/games-arcade/supertux/files/supertux-0.4.0-desktop.patch b/games-arcade/supertux/files/supertux-0.4.0-desktop.patch |
32 |
index b0e26e7..74a0872 100644 |
33 |
--- a/games-arcade/supertux/files/supertux-0.4.0-desktop.patch |
34 |
+++ b/games-arcade/supertux/files/supertux-0.4.0-desktop.patch |
35 |
@@ -1,5 +1,5 @@ |
36 |
---- supertux2.desktop.orig |
37 |
-+++ supertux2.desktop |
38 |
+--- a/supertux2.desktop |
39 |
++++ b/supertux2.desktop |
40 |
@@ -35,7 +35,7 @@ |
41 |
Comment[pt]=Joga este clássico de plataformas 2D |
42 |
Comment[pt_BR]=Encarne o pinguin Tux neste jogo inspirado em clássicos de Pular&Correr |
43 |
|
44 |
diff --git a/games-arcade/supertux/files/supertux-0.4.0-flags.patch b/games-arcade/supertux/files/supertux-0.4.0-flags.patch |
45 |
index 97e3e74..a09176c 100644 |
46 |
--- a/games-arcade/supertux/files/supertux-0.4.0-flags.patch |
47 |
+++ b/games-arcade/supertux/files/supertux-0.4.0-flags.patch |
48 |
@@ -1,5 +1,5 @@ |
49 |
---- CMakeLists.txt.orig |
50 |
-+++ CMakeLists.txt |
51 |
+--- a/CMakeLists.txt |
52 |
++++ b/CMakeLists.txt |
53 |
@@ -329,7 +329,7 @@ |
54 |
endif(COMPILER_SUPPORTS_CXX11) |
55 |
|
56 |
|
57 |
diff --git a/games-arcade/supertux/files/supertux-0.4.0-icon.patch b/games-arcade/supertux/files/supertux-0.4.0-icon.patch |
58 |
index 14552f2..66be0eb 100644 |
59 |
--- a/games-arcade/supertux/files/supertux-0.4.0-icon.patch |
60 |
+++ b/games-arcade/supertux/files/supertux-0.4.0-icon.patch |
61 |
@@ -1,5 +1,5 @@ |
62 |
---- CMakeLists.txt.orig |
63 |
-+++ CMakeLists.txt |
64 |
+--- a/CMakeLists.txt |
65 |
++++ b/CMakeLists.txt |
66 |
@@ -571,7 +571,7 @@ |
67 |
|
68 |
SET(APPS "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_SUBDIR_BIN}/supertux2") |
69 |
|
70 |
diff --git a/games-arcade/supertux/files/supertux-0.4.0-license.patch b/games-arcade/supertux/files/supertux-0.4.0-license.patch |
71 |
index 37558aa..e35f85c 100644 |
72 |
--- a/games-arcade/supertux/files/supertux-0.4.0-license.patch |
73 |
+++ b/games-arcade/supertux/files/supertux-0.4.0-license.patch |
74 |
@@ -1,5 +1,5 @@ |
75 |
---- CMakeLists.txt.orig |
76 |
-+++ CMakeLists.txt |
77 |
+--- a/CMakeLists.txt |
78 |
++++ b/CMakeLists.txt |
79 |
@@ -578,7 +578,7 @@ |
80 |
|
81 |
INSTALL(TARGETS supertux2_exe DESTINATION ${INSTALL_SUBDIR_BIN}) |
82 |
|
83 |
diff --git a/games-arcade/supertux/files/supertux-0.5.0-obstack.patch b/games-arcade/supertux/files/supertux-0.5.0-obstack.patch |
84 |
new file mode 100644 |
85 |
index 00000000..1b05369 |
86 |
--- /dev/null |
87 |
+++ b/games-arcade/supertux/files/supertux-0.5.0-obstack.patch |
88 |
@@ -0,0 +1,19 @@ |
89 |
+--- supertux-0.5.0/CMakeLists.txt |
90 |
++++ supertux-0.5.0/CMakeLists.txt |
91 |
+@@ -382,7 +382,6 @@ |
92 |
+ include_directories(${CMAKE_BINARY_DIR}/) |
93 |
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/) |
94 |
+ include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/external/findlocale/) |
95 |
+-include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/external/obstack/) |
96 |
+ include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/external/sexp-cpp/include/) |
97 |
+ |
98 |
+ IF(WIN32) |
99 |
+@@ -392,7 +391,7 @@ |
100 |
+ |
101 |
+ ## Build list of sources for supertux binary |
102 |
+ |
103 |
+-FILE(GLOB SUPERTUX_SOURCES_C RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} external/obstack/*.c external/findlocale/findlocale.c) |
104 |
++FILE(GLOB SUPERTUX_SOURCES_C RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} external/findlocale/findlocale.c) |
105 |
+ |
106 |
+ FILE(GLOB SUPERTUX_SOURCES_CXX RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} src/*/*.cpp src/supertux/menu/*.cpp src/video/sdl/*.cpp) |
107 |
+ FILE(GLOB SUPERTUX_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_BINARY_DIR}/tmp/*.rc") |
108 |
|
109 |
diff --git a/games-arcade/supertux/files/supertux-0.5.0-tinygettext.patch b/games-arcade/supertux/files/supertux-0.5.0-tinygettext.patch |
110 |
new file mode 100644 |
111 |
index 00000000..3bedc38 |
112 |
--- /dev/null |
113 |
+++ b/games-arcade/supertux/files/supertux-0.5.0-tinygettext.patch |
114 |
@@ -0,0 +1,30 @@ |
115 |
+--- SuperTux-v0.5.0-Source/external/tinygettext/CMakeLists.txt |
116 |
++++ SuperTux-v0.5.0-Source/external/tinygettext/CMakeLists.txt |
117 |
+@@ -59,7 +59,7 @@ |
118 |
+ ) |
119 |
+ |
120 |
+ ## Reveal library type choice to users |
121 |
+-option(BUILD_SHARED_LIBS "Produce dynamic library instead of static archive" ON) |
122 |
++option(BUILD_SHARED_LIBS "Produce dynamic library instead of static archive" OFF) |
123 |
+ |
124 |
+ # TinyGetText library compilation |
125 |
+ |
126 |
+@@ -128,17 +128,7 @@ |
127 |
+ ## Debug options |
128 |
+ |
129 |
+ option(WERROR "Stops on first compiler warning in debug mode" OFF) |
130 |
+-option(WARNINGS "Enable long list of warnings for compiler to check" ON) |
131 |
+- |
132 |
+-CHECK_CXX_FLAG(std=c++0x) |
133 |
+-CHECK_CXX_FLAG(O3) |
134 |
+-IF(NOT MSVC) |
135 |
+- #MSVC is excessivly verbose when Wall is activated |
136 |
+- CHECK_CXX_FLAG(Wall) |
137 |
+-ENDIF() |
138 |
+-CHECK_CXX_FLAG(Wextra) |
139 |
+-CHECK_CXX_FLAG(Weffc++) |
140 |
+-CHECK_CXX_FLAG(pedantic) |
141 |
++option(WARNINGS "Enable long list of warnings for compiler to check" OFF) |
142 |
+ |
143 |
+ if(WARNINGS) |
144 |
+ CHECK_CXX_FLAG(Wabi) |
145 |
|
146 |
diff --git a/games-arcade/supertux/supertux-0.5.0.ebuild b/games-arcade/supertux/supertux-0.5.0.ebuild |
147 |
new file mode 100644 |
148 |
index 00000000..88b9484 |
149 |
--- /dev/null |
150 |
+++ b/games-arcade/supertux/supertux-0.5.0.ebuild |
151 |
@@ -0,0 +1,67 @@ |
152 |
+# Copyright 1999-2016 Gentoo Foundation |
153 |
+# Distributed under the terms of the GNU General Public License v2 |
154 |
+# $Id$ |
155 |
+ |
156 |
+EAPI=6 |
157 |
+inherit cmake-utils flag-o-matic |
158 |
+ |
159 |
+MY_P="SuperTux-v${PV}-Source" |
160 |
+ |
161 |
+DESCRIPTION="A game similar to Super Mario Bros." |
162 |
+HOMEPAGE="http://supertuxproject.org/" |
163 |
+SRC_URI="https://github.com/SuperTux/supertux/releases/download/v${PV}/${MY_P}.tar.gz" |
164 |
+ |
165 |
+LICENSE="GPL-2+ GPL-3+ ZLIB MIT CC-BY-SA-2.0 CC-BY-SA-3.0" |
166 |
+SLOT="0" |
167 |
+KEYWORDS="~amd64 ~x86" |
168 |
+IUSE="debug" |
169 |
+ |
170 |
+RDEPEND="dev-games/physfs |
171 |
+ dev-libs/boost:= |
172 |
+ media-libs/glew:= |
173 |
+ virtual/opengl |
174 |
+ media-libs/libvorbis |
175 |
+ media-libs/openal |
176 |
+ >=media-libs/libsdl2-2.0.1[joystick,video] |
177 |
+ >=media-libs/sdl2-image-2.0.0[png,jpeg] |
178 |
+ >=net-misc/curl-7.21.7" |
179 |
+DEPEND="${RDEPEND} |
180 |
+ virtual/pkgconfig" |
181 |
+ |
182 |
+S="${WORKDIR}/${MY_P}" |
183 |
+ |
184 |
+PATCHES=( |
185 |
+ "${FILESDIR}"/${PN}-0.4.0-{desktop,license,icon}.patch |
186 |
+ "${FILESDIR}"/${P}-{obstack,tinygettext}.patch |
187 |
+) |
188 |
+ |
189 |
+src_prepare() { |
190 |
+ default |
191 |
+ |
192 |
+ # This is not a developer release so switch the logo to the non-dev one. |
193 |
+ sed 's@logo_dev@logo@' \ |
194 |
+ -i data/images/objects/logo/logo.sprite || die |
195 |
+} |
196 |
+ |
197 |
+src_configure() { |
198 |
+ append-cxxflags -std=c++11 |
199 |
+ local mycmakeargs=( |
200 |
+ -DWERROR=OFF |
201 |
+ -DINSTALL_SUBDIR_BIN=bin |
202 |
+ -DINSTALL_SUBDIR_DOC=share/doc/${PF} |
203 |
+ -DINSTALL_SUBDIR_SHARE=share/${PN}2 |
204 |
+ -DENABLE_SQDBG="$(usex debug)" |
205 |
+ -DUSE_DEBUG="$(usex debug)" |
206 |
+ -DENABLE_BOOST_STATIC_LIBS=OFF # bug! Should be fixed in next release |
207 |
+ ) |
208 |
+ |
209 |
+ cmake-utils_src_configure |
210 |
+} |
211 |
+ |
212 |
+src_compile() { |
213 |
+ cmake-utils_src_compile |
214 |
+} |
215 |
+ |
216 |
+src_install() { |
217 |
+ cmake-utils_src_install |
218 |
+} |