1 |
commit: 756334db7d87f8a52c2d48302b88c39b613d51f4 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 1 10:19:06 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 1 10:27:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=756334db |
7 |
|
8 |
games-action/teeworlds: Up to speed with 2020: cmake.eclass, py38+39 |
9 |
|
10 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
games-action/teeworlds/teeworlds-0.7.5.ebuild | 15 +++++++-------- |
14 |
1 file changed, 7 insertions(+), 8 deletions(-) |
15 |
|
16 |
diff --git a/games-action/teeworlds/teeworlds-0.7.5.ebuild b/games-action/teeworlds/teeworlds-0.7.5.ebuild |
17 |
index f2e0b2da85e..7e5532fed00 100644 |
18 |
--- a/games-action/teeworlds/teeworlds-0.7.5.ebuild |
19 |
+++ b/games-action/teeworlds/teeworlds-0.7.5.ebuild |
20 |
@@ -3,12 +3,11 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-PYTHON_COMPAT=( python3_{5,6,7} ) |
25 |
- |
26 |
-inherit cmake-utils desktop python-any-r1 xdg-utils |
27 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
28 |
|
29 |
COMMIT_LANG="4ba6f824e9c34565e61340d25bc8c3cc004d40fb" |
30 |
COMMIT_MAPS="1d3401a37a3334e311faf18a22aeff0e0ac9ee65" |
31 |
+inherit cmake desktop python-any-r1 xdg-utils |
32 |
|
33 |
DESCRIPTION="Online multi-player platform 2D shooter" |
34 |
HOMEPAGE="https://www.teeworlds.com/" |
35 |
@@ -17,7 +16,7 @@ SRC_URI=" |
36 |
https://github.com/teeworlds/teeworlds/archive/${PV}.tar.gz -> ${P}.tar.gz |
37 |
https://github.com/teeworlds/teeworlds-maps/archive/${COMMIT_MAPS}.tar.gz -> ${P}-maps.tar.gz |
38 |
https://github.com/teeworlds/teeworlds-translation/archive/${COMMIT_LANG}.tar.gz -> ${P}-translation.tar.gz |
39 |
- " |
40 |
+" |
41 |
|
42 |
LICENSE="ZLIB" |
43 |
SLOT="0" |
44 |
@@ -26,7 +25,7 @@ IUSE="debug dedicated" |
45 |
|
46 |
RDEPEND=" |
47 |
!dedicated? ( |
48 |
- app-arch/bzip2 |
49 |
+ app-arch/bzip2:= |
50 |
media-libs/freetype |
51 |
media-libs/libsdl[X,sound,opengl,video] |
52 |
media-libs/pnglite |
53 |
@@ -41,13 +40,13 @@ RDEPEND=" |
54 |
DEPEND="${RDEPEND} ${PYTHON_DEPS}" |
55 |
|
56 |
src_prepare() { |
57 |
+ cmake_src_prepare |
58 |
rm -r "${S}/datasrc/languages" || die |
59 |
rm -r "${S}/datasrc/maps" || die |
60 |
mv "${WORKDIR}/${PN}-translation-${COMMIT_LANG}" "${S}/datasrc/languages" || die |
61 |
mv "${WORKDIR}/${PN}-maps-${COMMIT_MAPS}" "${S}/datasrc/maps" || die |
62 |
cp "${DISTDIR}/${PN}.png" "${S}/" || die |
63 |
python_fix_shebang scripts/ |
64 |
- cmake-utils_src_prepare |
65 |
} |
66 |
|
67 |
src_configure() { |
68 |
@@ -57,11 +56,11 @@ src_configure() { |
69 |
-DPYTHON_EXECUTABLE="${PYTHON}" |
70 |
) |
71 |
|
72 |
- cmake-utils_src_configure |
73 |
+ cmake_src_configure |
74 |
} |
75 |
|
76 |
src_install() { |
77 |
- cmake-utils_src_install |
78 |
+ cmake_src_install |
79 |
doicon -s 256 "${PN}.png" |
80 |
domenu other/teeworlds.desktop |
81 |
newinitd "${FILESDIR}"/${PN}-init.d ${PN} |