Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/m64py/
Date: Wed, 18 May 2022 07:36:21
Message-Id: 1652859371.14ccbe7e9cda6e564a806a8f910966faa184bcc4.mgorny@gentoo
1 commit: 14ccbe7e9cda6e564a806a8f910966faa184bcc4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 18 07:20:05 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 18 07:36:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14ccbe7e
7
8 games-emulation/m64py: Bump to 0.2.5_p20211222
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 games-emulation/m64py/Manifest | 1 +
13 games-emulation/m64py/m64py-0.2.5_p20211222.ebuild | 67 ++++++++++++++++++++++
14 2 files changed, 68 insertions(+)
15
16 diff --git a/games-emulation/m64py/Manifest b/games-emulation/m64py/Manifest
17 index 36736dbfddfb..fc3dfa282a7a 100644
18 --- a/games-emulation/m64py/Manifest
19 +++ b/games-emulation/m64py/Manifest
20 @@ -1 +1,2 @@
21 DIST m64py-0.2.5.tar.gz 201868 BLAKE2B 95cbfe58ae2741caac5e05bcc06af563ee398d2916d07902ba4aaf4213277eea3c6219448db5958e0a2d0ea8ea3f65c88e63cfd2938a8b4ed33231ba57ae724f SHA512 338f5e96dc4657ba2230c32a40cf0e85c5efcccaa0d5fdbe4b4dcef020b910f5d2d88e5c224f8b496ec0378051aaf44358a0438de52fb03b4ece353f55abc61c
22 +DIST mupen64plus-ui-python-e24679436a93e8aae0aa664dc4b2dea40d8236c1.gh.tar.gz 14669412 BLAKE2B 08232599557503d606db9e44bdd6dbb30b3fa125bfd9b9bcc2cbc4b6ea71b567f5af4338d03e7580707db522249d9426ec4d64dc1e941a43076b2d21bc974b67 SHA512 2ba865041827a7f47d5151db6123abd62c964c024c14356aa5434619736b19ce150178d536cff1c84e93d0544823e173c67c0f08054c13e01f085912a9b8c2c6
23
24 diff --git a/games-emulation/m64py/m64py-0.2.5_p20211222.ebuild b/games-emulation/m64py/m64py-0.2.5_p20211222.ebuild
25 new file mode 100644
26 index 000000000000..e4bd1c4b099e
27 --- /dev/null
28 +++ b/games-emulation/m64py/m64py-0.2.5_p20211222.ebuild
29 @@ -0,0 +1,67 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit distutils-r1 qmake-utils xdg-utils
39 +
40 +EGIT_COMMIT="e24679436a93e8aae0aa664dc4b2dea40d8236c1"
41 +MY_P=mupen64plus-ui-python-${EGIT_COMMIT}
42 +
43 +DESCRIPTION="A frontend for Mupen64Plus"
44 +HOMEPAGE="
45 + http://m64py.sourceforge.net/
46 + https://github.com/mupen64plus/mupen64plus-ui-python/
47 +"
48 +SRC_URI="
49 + https://github.com/mupen64plus/mupen64plus-ui-python/archive/${EGIT_COMMIT}.tar.gz
50 + -> ${MY_P}.gh.tar.gz
51 +"
52 +S=${WORKDIR}/${MY_P}
53 +
54 +LICENSE="GPL-3 LGPL-3 public-domain GPL-2 BSD CC-BY-SA-3.0"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~x86"
57 +IUSE="7z rar"
58 +
59 +RDEPEND="
60 + dev-python/PyQt5[gui,opengl,widgets,${PYTHON_USEDEP}]
61 + dev-python/PySDL2[${PYTHON_USEDEP}]
62 + media-libs/libsdl2[joystick,video]
63 + >=games-emulation/mupen64plus-core-2.5:0/2-sdl2
64 + 7z? (
65 + app-arch/p7zip
66 + )
67 + rar? (
68 + || (
69 + dev-python/rarfile[${PYTHON_USEDEP}]
70 + app-arch/unrar
71 + app-arch/rar
72 + )
73 + )
74 +"
75 +
76 +python_prepare_all() {
77 + # set the correct search path
78 + cat >> src/m64py/platform.py <<-_EOF_ || die
79 + SEARCH_DIRS = ["/usr/$(get_libdir)/mupen64plus"]
80 + _EOF_
81 +
82 + distutils-r1_python_prepare_all
83 +}
84 +
85 +python_compile() {
86 + local -x PATH=$(qt5_get_bindir):${PATH}
87 + distutils-r1_python_compile
88 +}
89 +
90 +pkg_postinst() {
91 + xdg_desktop_database_update
92 +}
93 +
94 +pkg_postrm() {
95 + xdg_desktop_database_update
96 +}