commit: 2e4deb065ed79b756d193414de60cbcf5874408c
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 13 20:52:11 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Nov 14 00:44:13 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e4deb06
games-arcade/whichwayisup: add 0.7.9_p8, switch to debian uptream
Carries the same 3 patches allowing to remove from files/,
especially the python3 19kB patch.
Also update HOMEPAGE/SRC_URI to the newer working links.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-arcade/whichwayisup/Manifest | 1 +
.../whichwayisup/whichwayisup-0.7.9_p8.ebuild | 57 ++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/games-arcade/whichwayisup/Manifest
b/games-arcade/whichwayisup/Manifest
index 457e7350e5f..017edb5d67f 100644
--- a/games-arcade/whichwayisup/Manifest
+++ b/games-arcade/whichwayisup/Manifest
@@ -1,2 +1,3 @@
DIST whichwayisup.png 6720 BLAKE2B
26514e025341ce7d5145d69295a24477ea3575afcfb0a11bbbddb1dd716feadef9a030ec9dc4171b75842fafc78670ed1fc7656dac8dbd6695b9592b73bb1383
SHA512
469b847955a745177c7629dd13f1975191766863bfe263e3818105356d71aaaeb66cbe34846d0bd908bf494e2d7d42b7f33499868da2fa346f96f8080bccc0b2
+DIST whichwayisup_0.7.9-8.debian.tar.xz 17196 BLAKE2B
8b2cb1933a6c5480edb1091a824b2a61d9c41ed1a4a3b534a11a28163f9db3a3790d89faa1eb1995b459bb3c03515c154ca2714bfcf63c2c43669c60abf4d75f
SHA512
cb1402f0210c0457dbeb5a1151679c755b10b022c20cbb8a0bdc23bf7b463a7e0db4e92141906e3995a894fd3d0aeb21b48358b3e2c221f37deec4c008128edc
DIST whichwayisup_b079.zip 1001890 BLAKE2B
bfc8f15376ae7c93cc3921a7c0537d44bca44cbfd5e19533912c56151b8811a40e96271e0f3b8634a6fc4625bd32c9668fc3c321f1d2ea0306517067f3d31e24
SHA512
49ac6b8224f3cf7b0711b297c9dd96ff2a0969f7c16fa1da500bef1ea5d793bd900be124a9b9874239c98db6fd2db92917b8ce2ee09b685e184cfd87bf519809
diff --git a/games-arcade/whichwayisup/whichwayisup-0.7.9_p8.ebuild
b/games-arcade/whichwayisup/whichwayisup-0.7.9_p8.ebuild
new file mode 100644
index 00000000000..814f5785d8c
--- /dev/null
+++ b/games-arcade/whichwayisup/whichwayisup-0.7.9_p8.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit desktop python-single-r1
+
+DESCRIPTION="Traditional and challenging 2D platformer game with a slight
rotational twist"
+HOMEPAGE="https://www.oletus.fi/static/whichwayisup/"
+SRC_URI="
+ https://www.oletus.fi/static/whichwayisup/${PN}_b079.zip
+
mirror://debian/pool/main/${P::1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz
+ https://dev.gentoo.org/~ionen/distfiles/${PN}.png"
+S="${WORKDIR}/${PN}"
+
+LICENSE="BitstreamVera CC-BY-3.0 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep 'dev-python/pygame[${PYTHON_USEDEP}]')
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-mixer[vorbis]"
+BDEPEND="
+ ${PYTHON_DEPS}
+ app-arch/unzip"
+
+PATCHES=(
+ "${WORKDIR}"/debian/patches
+)
+
+src_prepare() {
+ # drop Debian specific patch
+ rm "${WORKDIR}"/debian/patches/font_path.patch || die
+
+ default
+
+ sed -i "/libdir =/s|= .*|= \"${EPREFIX}/usr/share/${PN}/lib\"|"
run_game.py || die
+ python_fix_shebang run_game.py
+
+ rm data/pictures/Thumbs.db || die
+}
+
+src_install() {
+ newbin run_game.py ${PN}
+
+ insinto /usr/share/${PN}
+ doins -r data lib
+
+ dodoc README.txt changelog.txt
+
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} "Which Way Is Up?"
+}