1 |
commit: 349bf1b7cc36b5ad2b4febe87f16ada708205c79 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 1 19:02:14 2015 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 1 19:04:47 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=349bf1b7 |
7 |
|
8 |
games-emulation/m64py: Version bump to 0.2.3. |
9 |
|
10 |
The new version uses Python 3, and PyQt5. It is also thoroughly broken and |
11 |
throws uncatched exceptions that result in segmentation faults. |
12 |
|
13 |
Package-Manager: portage-2.2.20 |
14 |
|
15 |
games-emulation/m64py/Manifest | 1 + |
16 |
games-emulation/m64py/m64py-0.2.3.ebuild | 72 ++++++++++++++++++++++++++++++++ |
17 |
profiles/package.mask | 5 +++ |
18 |
3 files changed, 78 insertions(+) |
19 |
|
20 |
diff --git a/games-emulation/m64py/Manifest b/games-emulation/m64py/Manifest |
21 |
index ece95c8..6e4466e 100644 |
22 |
--- a/games-emulation/m64py/Manifest |
23 |
+++ b/games-emulation/m64py/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST m64py-0.2.1.tar.gz 304897 SHA256 6461b494291f22c10ccd60cda4d4750da3c1514e1d5bc2354bad95a9f4cc1525 SHA512 02d5bc4a501f3c9a5851f242119ad6436be9a59b832f27483591353cfad6975da677a124e61330a4430f1813259f5a423bc8413423ee43a3570d74239e33b487 WHIRLPOOL 5998dd86de565e09c392cef6a9bb94978c6ebbfb3169fc30ae075d291ded187efc16fcf0d380c3ae7a85ae74f3b333de786a202a17320348a0d75595f7e5c024 |
26 |
+DIST m64py-0.2.3.tar.gz 304241 SHA256 87dccbad9f27ab1eae3fb9957ef039e23379d264e68f8ef7470ec38a523ef020 SHA512 5471d2ce96007c5cb5492f7ba3bc2a8843455dfea811b114c68862fa5c06a636e6dd6a4304e60bf2273377330b0eb01f2dcdc0340d02ec498ae44cdd2ccc01ff WHIRLPOOL 2d7727c56a67f6ca3901eb846d46dea881cf6361fe1bbcec6ef2d10247320d92d42d2ea9e75f247faef482f715b051a2c6394e814b83fa5f0c71bd5d1aabf8ba |
27 |
|
28 |
diff --git a/games-emulation/m64py/m64py-0.2.3.ebuild b/games-emulation/m64py/m64py-0.2.3.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..1837140 |
31 |
--- /dev/null |
32 |
+++ b/games-emulation/m64py/m64py-0.2.3.ebuild |
33 |
@@ -0,0 +1,72 @@ |
34 |
+# Copyright 1999-2014 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=5 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python3_4 ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="A frontend for Mupen64Plus" |
45 |
+HOMEPAGE="http://m64py.sourceforge.net/" |
46 |
+SRC_URI="mirror://sourceforge/m64py/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-3 LGPL-3 public-domain GPL-2 BSD CC-BY-SA-3.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="" |
52 |
+ |
53 |
+# SDL & libmupen64plus are through ctypes, so they rely on specific ABI |
54 |
+RDEPEND="media-libs/libsdl:0/0[joystick] |
55 |
+ dev-python/PyQt5[opengl,${PYTHON_USEDEP}] |
56 |
+ >=games-emulation/mupen64plus-core-2.0-r1:0/2" |
57 |
+ |
58 |
+python_prepare_all() { |
59 |
+ # set the correct search path |
60 |
+ cat >> src/m64py/platform.py <<-_EOF_ |
61 |
+ SEARCH_DIRS = ["/usr/$(get_libdir)/mupen64plus"] |
62 |
+_EOF_ |
63 |
+ |
64 |
+ # comment out SDL2 support since our mupen64plus uses SDL1 |
65 |
+ sed -e '/from m64py\.SDL2/s:^:#:' \ |
66 |
+ -e '/QT2SDL2\[/s:^:#:' \ |
67 |
+ -e '/KEYCODE2SCANCODE\[/s:^:#:' \ |
68 |
+ -e '/SCANCODE2KEYCODE\[/s:^:#:' \ |
69 |
+ -i src/m64py/frontend/keymap.py || die |
70 |
+ sed -e '/--sdl2/d' \ |
71 |
+ -e '/SDL2/s:=.*$:= False:' \ |
72 |
+ -i src/m64py/opts.py || die |
73 |
+ |
74 |
+ distutils-r1_python_prepare_all |
75 |
+} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ local vr |
79 |
+ for vr in ${REPLACING_VERSIONS}; do |
80 |
+ if ! version_is_at_least 0.2.1-r1 ${vr}; then |
81 |
+ ewarn |
82 |
+ ewarn "Starting with mupen64plus-2.0-r1, the plugin install path has changed." |
83 |
+ ewarn "In order for m64py to find mupen64plus, you will either need to set" |
84 |
+ ewarn "new paths in configuration dialog or remove your configuration file." |
85 |
+ ewarn "The new paths are:" |
86 |
+ ewarn |
87 |
+ ewarn " Library file: /usr/$(get_libdir)/libmupen64plus.so.2.0.0" |
88 |
+ ewarn " Plugins directory: /usr/$(get_libdir)/mupen64plus" |
89 |
+ ewarn " Data directory: /usr/share/mupen64plus" |
90 |
+ fi |
91 |
+ done |
92 |
+ |
93 |
+ if ! type -P rar >/dev/null && ! type -P unrar >/dev/null; then |
94 |
+ elog |
95 |
+ elog "In order to gain RAR archive support, please install either app-arch/rar" |
96 |
+ elog "or app-arch/unrar." |
97 |
+ fi |
98 |
+ |
99 |
+ if ! type -P 7z >/dev/null \ |
100 |
+ && ! has_version "dev-python/pylzma[${PYTHON_USEDEP}]"; then |
101 |
+ elog |
102 |
+ elog "In order to gain 7z archive support, please install either app-arch/p7zip" |
103 |
+ elog "or dev-python/pylzma." |
104 |
+ fi |
105 |
+} |
106 |
|
107 |
diff --git a/profiles/package.mask b/profiles/package.mask |
108 |
index 90e036e..25d9a65 100644 |
109 |
--- a/profiles/package.mask |
110 |
+++ b/profiles/package.mask |
111 |
@@ -30,6 +30,11 @@ |
112 |
|
113 |
#--- END OF EXAMPLES --- |
114 |
|
115 |
+# Michał Górny <mgorny@g.o> (1 Oct 2015) |
116 |
+# Thoroughly broken for me since the switch to Python 3 / PyQt5. Masking |
117 |
+# to account for opt-in testing. |
118 |
+=games-emulation/m64py-0.2.3 |
119 |
+ |
120 |
# Patrice Clement <monsieurp@g.o> (1 Oct 2015) |
121 |
# Project is over 10 years old and seems to have stalled. |
122 |
# Masked for removal in 30 days. See bug 561954. |