summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-11-13 15:52:11 -0500
committerIonen Wolkens <ionen@gentoo.org>2021-11-13 19:44:13 -0500
commit2e4deb065ed79b756d193414de60cbcf5874408c (patch)
tree592ce0095897f7800b1d67f01f80a949052dcc49 /games-arcade
parentgames-arcade/whichwayisup: enable py3.10 (diff)
downloadgentoo-2e4deb065ed79b756d193414de60cbcf5874408c.tar.gz
gentoo-2e4deb065ed79b756d193414de60cbcf5874408c.tar.bz2
gentoo-2e4deb065ed79b756d193414de60cbcf5874408c.zip
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@gentoo.org>
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/whichwayisup/Manifest1
-rw-r--r--games-arcade/whichwayisup/whichwayisup-0.7.9_p8.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/games-arcade/whichwayisup/Manifest b/games-arcade/whichwayisup/Manifest
index 457e7350e5f4..017edb5d67fa 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 000000000000..814f5785d8c6
--- /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?"
+}