From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2A66113933E for ; Wed, 21 Jul 2021 13:09:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67AC6E09C1; Wed, 21 Jul 2021 13:09:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3D7C0E09C1 for ; Wed, 21 Jul 2021 13:09:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E8131342C09 for ; Wed, 21 Jul 2021 13:08:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 813337DC for ; Wed, 21 Jul 2021 13:08:56 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1626872876.85d77cfc21b16728b93fc76b92dcba52b7fcfa26.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/whichwayisup/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-arcade/whichwayisup/Manifest games-arcade/whichwayisup/whichwayisup-0.7.9-r4.ebuild X-VCS-Directories: games-arcade/whichwayisup/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 85d77cfc21b16728b93fc76b92dcba52b7fcfa26 X-VCS-Branch: master Date: Wed, 21 Jul 2021 13:08:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9a267633-3239-47d5-bf21-4a17f3f14cca X-Archives-Hash: b94fbc19ff279fdbefe16c1cbe322549 commit: 85d77cfc21b16728b93fc76b92dcba52b7fcfa26 Author: Ionen Wolkens gentoo org> AuthorDate: Wed Jul 21 12:26:24 2021 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed Jul 21 13:07:56 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85d77cfc games-arcade/whichwayisup: EAPI 7->8, various fixes - python-r1 -> python-single-r1 wrt bug #710234 - don't call python directly - add missing sdl2 deps - remove homepage, gone with no official replacement could find Also replaced icon from files/, xpm may be text-only but filling the tree with an old uncompressed text image format doesn't sound right. Closes: https://bugs.gentoo.org/710234 Signed-off-by: Ionen Wolkens gentoo.org> games-arcade/whichwayisup/Manifest | 1 + .../whichwayisup/whichwayisup-0.7.9-r4.ebuild | 55 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/games-arcade/whichwayisup/Manifest b/games-arcade/whichwayisup/Manifest index 909f726905b..457e7350e5f 100644 --- a/games-arcade/whichwayisup/Manifest +++ b/games-arcade/whichwayisup/Manifest @@ -1 +1,2 @@ +DIST whichwayisup.png 6720 BLAKE2B 26514e025341ce7d5145d69295a24477ea3575afcfb0a11bbbddb1dd716feadef9a030ec9dc4171b75842fafc78670ed1fc7656dac8dbd6695b9592b73bb1383 SHA512 469b847955a745177c7629dd13f1975191766863bfe263e3818105356d71aaaeb66cbe34846d0bd908bf494e2d7d42b7f33499868da2fa346f96f8080bccc0b2 DIST whichwayisup_b079.zip 1001890 BLAKE2B bfc8f15376ae7c93cc3921a7c0537d44bca44cbfd5e19533912c56151b8811a40e96271e0f3b8634a6fc4625bd32c9668fc3c321f1d2ea0306517067f3d31e24 SHA512 49ac6b8224f3cf7b0711b297c9dd96ff2a0969f7c16fa1da500bef1ea5d793bd900be124a9b9874239c98db6fd2db92917b8ce2ee09b685e184cfd87bf519809 diff --git a/games-arcade/whichwayisup/whichwayisup-0.7.9-r4.ebuild b/games-arcade/whichwayisup/whichwayisup-0.7.9-r4.ebuild new file mode 100644 index 00000000000..f37eff3578b --- /dev/null +++ b/games-arcade/whichwayisup/whichwayisup-0.7.9-r4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit desktop python-single-r1 + +DESCRIPTION="Traditional and challenging 2D platformer game with a slight rotational twist" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI=" + mirror://gentoo/${PN}_b$(ver_rs 1- '').zip + 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=( + "${FILESDIR}"/${P}-check_for_joystick_axes_not_null.patch + "${FILESDIR}"/${P}-initialize_only_required_pygame_modules.patch + "${FILESDIR}"/${P}-python3.patch +) + +src_prepare() { + 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?" +}