1 |
commit: c4ed27dd4826f929a4e19fb4cc1f60f5bb63d230 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 29 07:34:30 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 29 08:33:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4ed27dd |
7 |
|
8 |
games-arcade/tuxanci: fix install paths and opengl, tidy |
9 |
|
10 |
bug #804642: ebuild itself been passing /usr/{pixmaps,applications} |
11 |
since games.eclass removal and this went unnoticed for 4 years. |
12 |
|
13 |
bug #798651: As a "fix" to bug #715132, it was made to search for |
14 |
GLU instead of GL and unsurprisingly failing to find GL symbols. |
15 |
This does not use GLU at all, so only remove version check. |
16 |
|
17 |
Removed ipv6,nls,sound IUSE, enable by default. |
18 |
USE=-sound was also installing ogg files either way. |
19 |
|
20 |
Also removed debug IUSE because all it does is override user CFLAGS. |
21 |
|
22 |
Closes: https://bugs.gentoo.org/798651 |
23 |
Closes: https://bugs.gentoo.org/804642 |
24 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
25 |
|
26 |
.../tuxanci/files/tuxanci-20110429-no-glver.patch | 9 +++++ |
27 |
games-arcade/tuxanci/tuxanci-20110429-r2.ebuild | 45 ++++++++++++++++++++++ |
28 |
2 files changed, 54 insertions(+) |
29 |
|
30 |
diff --git a/games-arcade/tuxanci/files/tuxanci-20110429-no-glver.patch b/games-arcade/tuxanci/files/tuxanci-20110429-no-glver.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..210e55d1199 |
33 |
--- /dev/null |
34 |
+++ b/games-arcade/tuxanci/files/tuxanci-20110429-no-glver.patch |
35 |
@@ -0,0 +1,9 @@ |
36 |
+https://bugs.gentoo.org/715132 |
37 |
+https://bugs.gentoo.org/798651 |
38 |
+--- a/CMakeLists.txt |
39 |
++++ b/CMakeLists.txt |
40 |
+@@ -189,3 +189,3 @@ |
41 |
+ IF ( WITH_OPENGL ) |
42 |
+- pkg_check_modules(OPENGL REQUIRED gl>=7.5) |
43 |
++ pkg_check_modules(OPENGL REQUIRED gl) |
44 |
+ INCLUDE_DIRECTORIES ( ${OPENGL_INCLUDE_DIRS} ) |
45 |
|
46 |
diff --git a/games-arcade/tuxanci/tuxanci-20110429-r2.ebuild b/games-arcade/tuxanci/tuxanci-20110429-r2.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..4428d33da87 |
49 |
--- /dev/null |
50 |
+++ b/games-arcade/tuxanci/tuxanci-20110429-r2.ebuild |
51 |
@@ -0,0 +1,45 @@ |
52 |
+# Copyright 1999-2021 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+inherit cmake |
58 |
+ |
59 |
+DESCRIPTION="First Tux shooter multi-player network game inspired by Bulanci" |
60 |
+HOMEPAGE="https://repo.or.cz/w/tuxanci.git" |
61 |
+SRC_URI="mirror://gentoo/${P}.tar.xz" |
62 |
+ |
63 |
+LICENSE="GPL-2" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~ppc64 ~x86" |
66 |
+IUSE="dedicated opengl physfs" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ !dedicated? ( |
70 |
+ media-libs/fontconfig |
71 |
+ media-libs/libsdl[opengl?,sound,video] |
72 |
+ media-libs/sdl-image[png] |
73 |
+ media-libs/sdl-mixer[vorbis] |
74 |
+ media-libs/sdl-ttf |
75 |
+ opengl? ( virtual/opengl ) |
76 |
+ ) |
77 |
+ physfs? ( dev-games/physfs[zip] ) |
78 |
+ !physfs? ( dev-libs/libzip:= )" |
79 |
+DEPEND="${RDEPEND}" |
80 |
+BDEPEND="sys-devel/gettext" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}"/${P}-no-glver.patch |
84 |
+) |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local mycmakeargs=( |
88 |
+ -DBUILD_SERVER=$(usex dedicated) |
89 |
+ -DCMAKE_CONF_PATH="${EPREFIX}"/etc |
90 |
+ -DCMAKE_DOC_PATH="${EPREFIX}"/usr/share/doc/${PF} |
91 |
+ -DENABLE_DEBUG=no |
92 |
+ -DWITH_OPENGL=$(usex opengl) |
93 |
+ -DWITH_PHYSFS=$(usex physfs) |
94 |
+ ) |
95 |
+ cmake_src_configure |
96 |
+} |