Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-emulation/m64py: m64py-0.2.0.ebuild ChangeLog m64py-0.1.6.ebuild
Date: Sat, 22 Feb 2014 22:36:42
Message-Id: 20140222223639.305E72004C@flycatcher.gentoo.org
1 mgorny 14/02/22 22:36:39
2
3 Modified: ChangeLog
4 Added: m64py-0.2.0.ebuild
5 Removed: m64py-0.1.6.ebuild
6 Log:
7 Version bump.
8
9 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
10
11 Revision Changes Path
12 1.3 games-emulation/m64py/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/m64py/ChangeLog?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/m64py/ChangeLog?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/m64py/ChangeLog?r1=1.2&r2=1.3
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-emulation/m64py/ChangeLog,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- ChangeLog 11 Jan 2014 13:25:27 -0000 1.2
25 +++ ChangeLog 22 Feb 2014 22:36:38 -0000 1.3
26 @@ -1,6 +1,12 @@
27 # ChangeLog for games-emulation/m64py
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/m64py/ChangeLog,v 1.2 2014/01/11 13:25:27 mgorny Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/m64py/ChangeLog,v 1.3 2014/02/22 22:36:38 mgorny Exp $
31 +
32 +*m64py-0.2.0 (22 Feb 2014)
33 +
34 + 22 Feb 2014; Michał Górny <mgorny@g.o> +m64py-0.2.0.ebuild,
35 + -m64py-0.1.6.ebuild:
36 + Version bump.
37
38 *m64py-0.1.8 (11 Jan 2014)
39
40
41
42
43 1.1 games-emulation/m64py/m64py-0.2.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/m64py/m64py-0.2.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/m64py/m64py-0.2.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: m64py-0.2.0.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-emulation/m64py/m64py-0.2.0.ebuild,v 1.1 2014/02/22 22:36:38 mgorny Exp $
53 EAPI=5
54
55 PYTHON_COMPAT=( python2_7 )
56
57 inherit distutils-r1 games
58
59 DESCRIPTION="A frontend for Mupen64Plus"
60 HOMEPAGE="http://m64py.sourceforge.net/"
61 SRC_URI="mirror://sourceforge/m64py/${P}.tar.gz"
62
63 LICENSE="GPL-3 LGPL-3 public-domain GPL-2 BSD CC-BY-SA-3.0"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE=""
67
68 # SDL & libmupen64plus are through ctypes, so they rely on specific ABI
69 RDEPEND="media-libs/libsdl:0/0[joystick]
70 dev-python/PyQt4[opengl,${PYTHON_USEDEP}]
71 games-emulation/mupen64plus-core:0/2"
72
73 python_prepare_all() {
74 # set the correct search path
75 cat >> src/m64py/platform.py <<-_EOF_
76 SEARCH_DIRS = ["$(games_get_libdir)/mupen64plus"]
77 _EOF_
78
79 # comment out SDL2 support since our mupen64plus uses SDL1
80 sed -e '/from m64py\.SDL2/s:^:#:' \
81 -e '/QT2SDL2\[/s:^:#:' \
82 -e '/KEYCODE2SCANCODE\[/s:^:#:' \
83 -e '/SCANCODE2KEYCODE\[/s:^:#:' \
84 -i src/m64py/frontend/keymap.py || die
85 sed -e '/--sdl2/d' \
86 -e '/SDL2/s:=.*$:= False:' \
87 -i src/m64py/opts.py || die
88
89 distutils-r1_python_prepare_all
90 }
91
92 python_install() {
93 distutils-r1_python_install \
94 --install-scripts="${GAMES_BINDIR}"
95 }
96
97 # games.eclass ABSOLUTELY MUST come last, so we need to clean up the mess
98 src_prepare() { distutils-r1_src_prepare; }
99 src_configure() { distutils-r1_src_configure; }
100 src_compile() { distutils-r1_src_compile; }
101 src_test() { distutils-r1_src_test; }
102
103 src_install() {
104 distutils-r1_src_install
105 prepgamesdirs
106 }
107
108 pkg_postinst() {
109 games_pkg_postinst
110
111 if ! type -P rar >/dev/null && ! type -P unrar >/dev/null; then
112 elog
113 elog "In order to gain RAR archive support, please install either app-arch/rar"
114 elog "or app-arch/unrar."
115 fi
116
117 if ! type -P 7z >/dev/null \
118 && ! has_version "dev-python/pylzma[${PYTHON_USEDEP}]"; then
119 elog
120 elog "In order to gain 7z archive support, please install either app-arch/p7zip"
121 elog "or dev-python/pylzma."
122 fi
123 }