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: Mon, 01 Jan 2018 13:47:43
Message-Id: 1514814446.f95a7ce851a178321083e06f748f193af61e7d9b.mgorny@gentoo
1 commit: f95a7ce851a178321083e06f748f193af61e7d9b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 1 13:26:55 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 1 13:47:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f95a7ce8
7
8 games-emulation/m64py: Bump to 0.2.4, with unbundled PySDL2
9
10 Closes: https://bugs.gentoo.org/626488
11
12 games-emulation/m64py/Manifest | 1 +
13 games-emulation/m64py/m64py-0.2.4.ebuild | 62 ++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/games-emulation/m64py/Manifest b/games-emulation/m64py/Manifest
17 index 585477afd53..42bc9ce289d 100644
18 --- a/games-emulation/m64py/Manifest
19 +++ b/games-emulation/m64py/Manifest
20 @@ -1 +1,2 @@
21 DIST m64py-0.2.3.tar.gz 304241 BLAKE2B efd7e4fc9a75d2b9525ad40e67f92ff56e0e932d96ee4ba51fc128d0fa8fb88a0811efada86af580501803f4f9d9e94aee23d6a50704c2e05078cc511825f347 SHA512 5471d2ce96007c5cb5492f7ba3bc2a8843455dfea811b114c68862fa5c06a636e6dd6a4304e60bf2273377330b0eb01f2dcdc0340d02ec498ae44cdd2ccc01ff
22 +DIST m64py-0.2.4.tar.gz 209621 BLAKE2B 05fe7044ec096767ae1eb57aad9f326b157d67ea709ca0bb74cdd68ae16a23eb662a2842bef5e038d1b29cbf0a5252669ff54268d1227390f47e8c9029b63e6a SHA512 ab78565466c6dcfe604cdc00b7e63dee2f0f33514dbf4f9115af646b1f6562042516513d054bd5cb489ad89c9d30431e9ce531f8b27925ecb9c6f7b509836348
23
24 diff --git a/games-emulation/m64py/m64py-0.2.4.ebuild b/games-emulation/m64py/m64py-0.2.4.ebuild
25 new file mode 100644
26 index 00000000000..539d28ed166
27 --- /dev/null
28 +++ b/games-emulation/m64py/m64py-0.2.4.ebuild
29 @@ -0,0 +1,62 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=5
34 +
35 +PYTHON_COMPAT=( python3_{4,5} )
36 +
37 +inherit distutils-r1 versionator
38 +
39 +DESCRIPTION="A frontend for Mupen64Plus"
40 +HOMEPAGE="http://m64py.sourceforge.net/"
41 +SRC_URI="mirror://sourceforge/m64py/${P}.tar.gz"
42 +
43 +LICENSE="GPL-3 LGPL-3 public-domain GPL-2 BSD CC-BY-SA-3.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE=""
47 +
48 +RDEPEND="
49 + dev-python/PyQt5[gui,opengl,widgets,${PYTHON_USEDEP}]
50 + dev-python/PySDL2[${PYTHON_USEDEP}]
51 + media-libs/libsdl2[joystick,video]
52 + >=games-emulation/mupen64plus-core-2.5:0/2-sdl2"
53 +
54 +python_prepare_all() {
55 + # set the correct search path
56 + cat >> src/m64py/platform.py <<-_EOF_
57 + SEARCH_DIRS = ["/usr/$(get_libdir)/mupen64plus"]
58 +_EOF_
59 +
60 + distutils-r1_python_prepare_all
61 +}
62 +
63 +pkg_postinst() {
64 + local vr
65 + for vr in ${REPLACING_VERSIONS}; do
66 + if ! version_is_at_least 0.2.1-r1 ${vr}; then
67 + ewarn
68 + ewarn "Starting with mupen64plus-2.0-r1, the plugin install path has changed."
69 + ewarn "In order for m64py to find mupen64plus, you will either need to set"
70 + ewarn "new paths in configuration dialog or remove your configuration file."
71 + ewarn "The new paths are:"
72 + ewarn
73 + ewarn " Library file: /usr/$(get_libdir)/libmupen64plus.so.2.0.0"
74 + ewarn " Plugins directory: /usr/$(get_libdir)/mupen64plus"
75 + ewarn " Data directory: /usr/share/mupen64plus"
76 + fi
77 + done
78 +
79 + if ! type -P rar >/dev/null && ! type -P unrar >/dev/null; then
80 + elog
81 + elog "In order to gain RAR archive support, please install either app-arch/rar"
82 + elog "or app-arch/unrar."
83 + fi
84 +
85 + if ! type -P 7z >/dev/null \
86 + && ! has_version "dev-python/pylzma[${PYTHON_USEDEP}]"; then
87 + elog
88 + elog "In order to gain 7z archive support, please install either app-arch/p7zip"
89 + elog "or dev-python/pylzma."
90 + fi
91 +}