Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/supertuxkart/files/, games-action/supertuxkart/
Date: Fri, 10 May 2019 21:16:32
Message-Id: 1557522964.489d69eb9937af74bd248ef1574c37849de75453.chewi@gentoo
1 commit: 489d69eb9937af74bd248ef1574c37849de75453
2 Author: François-Xavier Carton <fx.carton91 <AT> gmail <DOT> com>
3 AuthorDate: Mon Apr 29 23:06:16 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri May 10 21:16:04 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=489d69eb
7
8 games-action/supertuxkart: bump to 1.0
9
10 - Unbundle angelscript
11 - New deps nettle || openssl
12
13 Package-Manager: Portage-2.3.62, Repoman-2.3.11
14 Closes: https://bugs.gentoo.org/683930
15 Signed-off-by: François-Xavier Carton <fx.carton91 <AT> gmail.com>
16 Closes: https://github.com/gentoo/gentoo/pull/11865
17 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
18
19 games-action/supertuxkart/Manifest | 1 +
20 .../files/supertuxkart-1.0-fix-buildsystem.patch | 20 +++++
21 games-action/supertuxkart/metadata.xml | 1 +
22 games-action/supertuxkart/supertuxkart-1.0.ebuild | 96 ++++++++++++++++++++++
23 4 files changed, 118 insertions(+)
24
25 diff --git a/games-action/supertuxkart/Manifest b/games-action/supertuxkart/Manifest
26 index cd3817a2848..d64bb151b7d 100644
27 --- a/games-action/supertuxkart/Manifest
28 +++ b/games-action/supertuxkart/Manifest
29 @@ -1,2 +1,3 @@
30 DIST supertuxkart-0.9.3-src.tar.xz 544517772 BLAKE2B 84ab64371a59bf302905181ad98dd12542a9ffda18b9081ecfa6fcbb61d89c6b1f76f3598184459bbb40a42a1c968767837e76bbd0c9b2ade6b4c18831bc61fb SHA512 29eb1d8fb8e336453e590273089af09eac9a563f82c0bc797d43d5e21d5c9d1274a84ea7ee46487b3d127c47e55e3d233ad7e0e8c502c15dbafc1cc0f5c861c9
31 +DIST supertuxkart-1.0-src.tar.xz 597012504 BLAKE2B ed1b851bad8696b4593c54f215b115528afc29bde237f67627e2918c4a9fab09eddc204d0c879fa85c6b10b5544dba5fa5fc1b437cb83e6d884ac717e3369c28 SHA512 182754610abd09545630fa1f7fda858ba1731bbacb078bc71597e143f9cb2a1cfcedd3038720760d0471a89b79cc3bb1eb292d38fcd53be05aad7cb17c474ca9
32 DIST supertuxkart.png 4435 BLAKE2B b48b95e1cdebe930837cc784c4c5e9a089a69077e2fcfed15fe5e8c4d649a0f8024769b2f2102bbaea3a94eb21f4b58b5d291b97493266c3c5c8d7335cf69a80 SHA512 a180332f79220431922fa8b351cb476ebc5d9d1df09f20707eb3bdd7002fd264cb027b8190c73c5221050e6e8601beb6758a5809d05aedfb18f0bdb426f47eda
33
34 diff --git a/games-action/supertuxkart/files/supertuxkart-1.0-fix-buildsystem.patch b/games-action/supertuxkart/files/supertuxkart-1.0-fix-buildsystem.patch
35 new file mode 100644
36 index 00000000000..23e8280a18f
37 --- /dev/null
38 +++ b/games-action/supertuxkart/files/supertuxkart-1.0-fix-buildsystem.patch
39 @@ -0,0 +1,20 @@
40 +diff --git a/lib/irrlicht/CMakeLists.txt b/lib/irrlicht/CMakeLists.txt
41 +index 92a881c81..1371fdf11 100644
42 +--- a/lib/irrlicht/CMakeLists.txt
43 ++++ b/lib/irrlicht/CMakeLists.txt
44 +@@ -96,15 +96,6 @@ endif()
45 + if(WIN32)
46 + add_definitions(-D_IRR_STATIC_LIB_)
47 + add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff
48 +-else()
49 +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing")
50 +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing")
51 +- if(CMAKE_COMPILER_IS_GNUCC)
52 +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexpensive-optimizations")
53 +- endif()
54 +- if(CMAKE_COMPILER_IS_GNUCXX)
55 +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexpensive-optimizations")
56 +- endif()
57 + endif()
58 +
59 + if(USE_GLES2)
60
61 diff --git a/games-action/supertuxkart/metadata.xml b/games-action/supertuxkart/metadata.xml
62 index a5ee3731025..ced8e3e6ee9 100644
63 --- a/games-action/supertuxkart/metadata.xml
64 +++ b/games-action/supertuxkart/metadata.xml
65 @@ -7,6 +7,7 @@
66 </maintainer>
67 <use>
68 <flag name="fribidi">Support for right-to-left languages</flag>
69 + <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> crypto backend</flag>
70 <flag name="recorder">Enable recording with <pkg>media-libs/libopenglrecorder</pkg></flag>
71 <flag name="wiimote">Support for wiimote input devices</flag>
72 </use>
73
74 diff --git a/games-action/supertuxkart/supertuxkart-1.0.ebuild b/games-action/supertuxkart/supertuxkart-1.0.ebuild
75 new file mode 100644
76 index 00000000000..f6d84df9613
77 --- /dev/null
78 +++ b/games-action/supertuxkart/supertuxkart-1.0.ebuild
79 @@ -0,0 +1,96 @@
80 +# Copyright 1999-2019 Gentoo Authors
81 +# Distributed under the terms of the GNU General Public License v2
82 +
83 +EAPI=6
84 +
85 +inherit cmake-utils desktop gnome2-utils
86 +
87 +DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
88 +HOMEPAGE="https://supertuxkart.net/"
89 +SRC_URI="mirror://sourceforge/${PN}/SuperTuxKart/${PV}/${P}-src.tar.xz
90 + mirror://gentoo/${PN}.png"
91 +
92 +LICENSE="GPL-2 GPL-3 CC-BY-SA-3.0 CC-BY-2.0 public-domain ZLIB"
93 +SLOT="0"
94 +KEYWORDS="~amd64 ~x86"
95 +IUSE="debug fribidi libressl nettle recorder wiimote"
96 +
97 +# don't unbundle irrlicht and bullet
98 +# both are modified and system versions will break the game
99 +# https://sourceforge.net/p/irrlicht/feature-requests/138/
100 +
101 +RDEPEND="
102 + dev-libs/angelscript:=
103 + media-libs/glew:0=
104 + media-libs/libpng:0=
105 + media-libs/libvorbis
106 + media-libs/openal
107 + net-libs/enet:1.3=
108 + net-misc/curl
109 + sys-libs/zlib
110 + virtual/glu
111 + virtual/jpeg:0
112 + virtual/libintl
113 + virtual/opengl
114 + x11-libs/libX11
115 + x11-libs/libXxf86vm
116 + fribidi? ( dev-libs/fribidi )
117 + nettle? ( dev-libs/nettle:= )
118 + !nettle? (
119 + libressl? ( dev-libs/libressl:= )
120 + !libressl? ( >=dev-libs/openssl-1.0.1d:0= )
121 + )
122 + recorder? ( media-libs/libopenglrecorder )
123 + wiimote? ( net-wireless/bluez )"
124 +DEPEND="${RDEPEND}
125 + sys-devel/gettext
126 + virtual/pkgconfig"
127 +
128 +PATCHES=(
129 + "${FILESDIR}"/${PN}-0.9.3-irrlicht-arch-support.patch
130 + "${FILESDIR}"/${PN}-0.9.3-irrlicht-system-libs.patch
131 + "${FILESDIR}"/${PN}-1.0-fix-buildsystem.patch
132 +)
133 +
134 +src_prepare() {
135 + cmake-utils_src_prepare
136 +
137 + # remove bundled libraries, just to be sure
138 + rm -r lib/{angelscript,enet,glew,jpeglib,libpng,zlib} || die
139 +}
140 +
141 +src_configure() {
142 + local mycmakeargs=(
143 + -DUSE_SYSTEM_ANGELSCRIPT=ON
144 + -DUSE_SYSTEM_ENET=ON
145 + -DUSE_SYSTEM_GLEW=ON
146 + -DUSE_SYSTEM_WIIUSE=OFF
147 + -DUSE_CRYPTO_OPENSSL=$(usex nettle no yes)
148 + -DENABLE_WAYLAND_DEVICE=OFF
149 + -DUSE_FRIBIDI=$(usex fribidi)
150 + -DBUILD_RECORDER=$(usex recorder)
151 + -DUSE_WIIUSE=$(usex wiimote)
152 + -DSTK_INSTALL_BINARY_DIR=bin
153 + -DSTK_INSTALL_DATA_DIR=share/${PN}
154 + )
155 + cmake-utils_src_configure
156 +}
157 +
158 +src_install() {
159 + cmake-utils_src_install
160 + dodoc CHANGELOG.md
161 +
162 + doicon -s 64 "${DISTDIR}"/${PN}.png
163 +}
164 +
165 +pkg_preinst() {
166 + gnome2_icon_savelist
167 +}
168 +
169 +pkg_postinst() {
170 + gnome2_icon_cache_update
171 +}
172 +
173 +pkg_postrm() {
174 + gnome2_icon_cache_update
175 +}