Gentoo Archives: gentoo-commits

From: "Duje Mihanović" <duje.mihanovic@×××××.hr>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: licenses/, games-fps/openspades/, games-fps/openspades/files/
Date: Mon, 04 Jul 2022 11:05:27
Message-Id: 1656932641.e7e1101521f6a739357c6d46e61a3c9e21444412.duje.mihanovic@gentoo
1 commit: e7e1101521f6a739357c6d46e61a3c9e21444412
2 Author: Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
3 AuthorDate: Mon Jul 4 10:35:56 2022 +0000
4 Commit: Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
5 CommitDate: Mon Jul 4 11:04:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e7e11015
7
8 games-fps/openspades: Initial import
9
10 Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr>
11
12 games-fps/openspades/Manifest | 2 +
13 .../openspades-0.1.3-dont-compress-docs.patch | 35 ++++++++++
14 games-fps/openspades/metadata.xml | 14 ++++
15 games-fps/openspades/openspades-0.1.3.ebuild | 76 ++++++++++++++++++++++
16 licenses/openspades-pak | 34 ++++++++++
17 5 files changed, 161 insertions(+)
18
19 diff --git a/games-fps/openspades/Manifest b/games-fps/openspades/Manifest
20 new file mode 100644
21 index 000000000..d67408cf5
22 --- /dev/null
23 +++ b/games-fps/openspades/Manifest
24 @@ -0,0 +1,2 @@
25 +DIST OpenSpadesDevPackage-r33.zip 4036321 BLAKE2B 7f2caaa6fd52961fc8221e7d7c2bb4312a444e26ad4edf2865d815e5cbadb354592bd5186f0e460a354bd0cf11419e8481b20f9fcba33a1544b74883a1d98ec3 SHA512 eb16dee8adfdd93388eac6309908811af02afdcdd6d009e2ab30b87a6b9bb495e77d3de750af18a3209dcf01ddb8400a6b03c1d570f1b77f8a1d2e5f26eb329e
26 +DIST openspades-0.1.3.tar.gz 7507842 BLAKE2B c9b4d1df2383b35f674d4274703079ca6cda3a5a8d7b3808889411c35e3e5a8d47e0d487ad869d194967a7058f59ffbebb04cf726548cc93d89998e16101bde1 SHA512 227f83980ecd87290a9ccbc625dd59f49b1ac92d9d50a077b5f2660eee7d76a14ff7c2d693ba53873e59ffa57a529078a3c2cc16c311829b76c927792564dcec
27
28 diff --git a/games-fps/openspades/files/openspades-0.1.3-dont-compress-docs.patch b/games-fps/openspades/files/openspades-0.1.3-dont-compress-docs.patch
29 new file mode 100644
30 index 000000000..24cc986ff
31 --- /dev/null
32 +++ b/games-fps/openspades/files/openspades-0.1.3-dont-compress-docs.patch
33 @@ -0,0 +1,35 @@
34 +diff --git a/CMakeLists.txt b/CMakeLists.txt
35 +index a582acd..f66b8e3 100644
36 +--- a/CMakeLists.txt
37 ++++ b/CMakeLists.txt
38 +@@ -215,10 +215,10 @@ if(UNIX AND NOT APPLE)
39 + INSTALL(FILES Resources/Unix/Menu/openspades DESTINATION ${OPENSPADES_INSTALL_MENU}/)
40 +
41 + # man file
42 +- INSTALL(FILES ${CMAKE_BINARY_DIR}/Resources/Unix/Man/openspades.6.gz DESTINATION ${OPENSPADES_INSTALL_MAN}/)
43 ++ INSTALL(FILES ${CMAKE_BINARY_DIR}/Resources/Unix/Man/openspades.6 DESTINATION ${OPENSPADES_INSTALL_MAN}/)
44 +
45 + # changelog file
46 +- INSTALL(FILES ${CMAKE_BINARY_DIR}/Resources/Unix/Debian/changelog.gz DESTINATION ${OPENSPADES_INSTALL_DOC}/)
47 ++ INSTALL(FILES ${CMAKE_BINARY_DIR}/Resources/Unix/Debian/changelog DESTINATION ${OPENSPADES_INSTALL_DOC}/)
48 +
49 + # copyright file
50 + INSTALL(FILES ${CMAKE_BINARY_DIR}/Resources/Unix/Debian/copyright DESTINATION ${OPENSPADES_INSTALL_DOC}/)
51 +diff --git a/Resources/CMakeLists.txt b/Resources/CMakeLists.txt
52 +index 1f9b514..ce892da 100644
53 +--- a/Resources/CMakeLists.txt
54 ++++ b/Resources/CMakeLists.txt
55 +@@ -69,12 +69,7 @@ if(UNIX AND NOT APPLE)
56 +
57 + add_custom_command(
58 + TARGET OpenSpades_Unix
59 +- COMMAND sh -c \"gzip -9 -c ${CMAKE_CURRENT_SOURCE_DIR}/Unix/Debian/changelog > changelog.gz\"
60 ++ COMMAND sh -c \"cp ${CMAKE_CURRENT_SOURCE_DIR}/Unix/Debian/changelog changelog\"
61 + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Unix/Debian
62 + )
63 +- add_custom_command(
64 +- TARGET OpenSpades_Unix
65 +- COMMAND sh -c \"gzip -9 -c ${CMAKE_CURRENT_BINARY_DIR}/Unix/Man/openspades.6 > openspades.6.gz\"
66 +- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Unix/Man
67 +- )
68 + endif(UNIX AND NOT APPLE)
69
70 diff --git a/games-fps/openspades/metadata.xml b/games-fps/openspades/metadata.xml
71 new file mode 100644
72 index 000000000..af0c3ee82
73 --- /dev/null
74 +++ b/games-fps/openspades/metadata.xml
75 @@ -0,0 +1,14 @@
76 +<?xml version="1.0" encoding="UTF-8"?>
77 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
78 +<pkgmetadata>
79 + <maintainer type="person">
80 + <email>duje.mihanovic@×××××.hr</email>
81 + <name>Duje Mihanović</name>
82 + </maintainer>
83 + <longdescription>
84 + OpenSpades is a clone of Ace of Spades 0.75, which is a free online
85 + first-person shooter created by Ben Aksoy, featuring fully destructible
86 + terrain and plenty of game modes (including the well-known Capture the Flag)
87 + created by the community.
88 + </longdescription>
89 +</pkgmetadata>
90
91 diff --git a/games-fps/openspades/openspades-0.1.3.ebuild b/games-fps/openspades/openspades-0.1.3.ebuild
92 new file mode 100644
93 index 000000000..350555864
94 --- /dev/null
95 +++ b/games-fps/openspades/openspades-0.1.3.ebuild
96 @@ -0,0 +1,76 @@
97 +# Copyright 1999-2022 Gentoo Authors
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI=8
101 +
102 +inherit cmake xdg
103 +
104 +PAK_REV=33
105 +
106 +DESCRIPTION="Open-source voxel FPS"
107 +HOMEPAGE="https://openspades.yvt.jp/"
108 +SRC_URI="
109 +https://github.com/yvt/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
110 +https://github.com/yvt/${PN}-paks/releases/download/r${PAK_REV}/OpenSpadesDevPackage-r${PAK_REV}.zip
111 +"
112 +# GPL-2 refers to the bundled Unifont.
113 +LICENSE="GPL-3 GPL-2-with-font-exception OFL openspades-pak"
114 +SLOT="0"
115 +KEYWORDS="~amd64"
116 +RESTRICT="mirror"
117 +RDEPEND="
118 +media-libs/libsdl2
119 +media-libs/sdl2-image[jpeg,png]
120 +media-libs/glew
121 +net-misc/curl
122 +media-libs/freetype
123 +media-libs/opus
124 +media-libs/opusfile
125 +x11-misc/xdg-utils
126 +x11-themes/hicolor-icon-theme
127 +"
128 +DEPEND="${RDEPEND}"
129 +BDEPEND="
130 +virtual/pkgconfig
131 +app-arch/unzip
132 +media-gfx/imagemagick[jpeg,png]
133 +"
134 +PATCHES=(
135 + "${FILESDIR}/${PN}-0.1.3-dont-compress-docs.patch"
136 +)
137 +CMAKE_BUILD_TYPE=release
138 +
139 +src_prepare() {
140 + cmake_src_prepare
141 +
142 + mkdir -p "${BUILD_DIR}/Resources"
143 + mv "${WORKDIR}/Nonfree/pak000-Nonfree.pak" "${BUILD_DIR}/Resources/"
144 + mv "${WORKDIR}/Nonfree/LICENSE.md" "${BUILD_DIR}/Resources/LICENSE.pak000.md"
145 + mv "${WORKDIR}/OfficialMods/font-unifont.pak" "${BUILD_DIR}/Resources/"
146 + mv "${WORKDIR}/OfficialMods/LICENSE" "${BUILD_DIR}/Resources/LICENSE.unifont.txt"
147 +
148 + # Without this, CMake will error out because it will try to download the zip
149 + # during building.
150 + touch "${BUILD_DIR}/Resources/OpenSpadesDevPackage-r${PAK_REV}.zip"
151 +}
152 +
153 +src_configure() {
154 + local mycmakeargs=(
155 + -DOPENSPADES_INSTALL_DOC=share/doc/"${PF}"
156 + -DOPENSPADES_INSTALL_BINARY=bin
157 + -DOPENSPADES_INSTALL_RESOURCES=share/"${PN}"/Resources
158 + # This arg is currently unused, but I'll set it anyway just in case it's
159 + # needed in a later version.
160 + -DOPENSPADES_INSTALL_LIBS=$(get_libdir)
161 + )
162 +
163 + cmake_src_configure
164 +}
165 +
166 +pkg_postinst() {
167 + xdg_pkg_postinst
168 +}
169 +
170 +pkg_postrm() {
171 + xdg_pkg_postrm
172 +}
173
174 diff --git a/licenses/openspades-pak b/licenses/openspades-pak
175 new file mode 100644
176 index 000000000..ac24ec31b
177 --- /dev/null
178 +++ b/licenses/openspades-pak
179 @@ -0,0 +1,34 @@
180 +
181 +OpenSpades Non-GPL Pak License
182 +==============================
183 +
184 +Audio files: Copyright 2016 yvt, all rights reserved.
185 +
186 +Model files: based on Ben Aksoy's Ace of Spades 0.75. (note: OpenSpades is a compatible game client of Ace of Spades 0.75)
187 +
188 +Font files: See below
189 +
190 +You may only redistribute this package in one or more of following means:
191 +
192 +1. As a part of a binary or source distribution of OpenSpades or any derived, free download and free of charge, non-commercial open-source project.
193 +2. As one or more separate packages to be installed on end users' system on the sole purpose to provide necessary game assets to a binary or source distribution of OpenSpades or any derived, free download and free of charge, non-commercial open-source project.
194 +3. For private use.
195 +
196 +You may NOT redistribute any audio files contained within the package separately.
197 +
198 +This license notice shall be included in all copies of the package.
199 +
200 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
201 +
202 +Fonts
203 +-----
204 +
205 +### SquareFont
206 +
207 +SquareFont was created by Agustín Bou and is authorized to use for personal and commercial use.
208 +
209 +### Alte DIN 1451 Mittelschrift Font Family
210 +
211 +Alte DIN 1451 was created by Peter Wiegel, based on DIN 1451 German standard font.
212 +Licensed under the [SIL Open Font License](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL).
213 +