Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-emulation/gambatte: ChangeLog gambatte-0.5.0_p20130601.ebuild
Date: Thu, 06 Jun 2013 09:49:37
Message-Id: 20130606094934.57ABD2171D@flycatcher.gentoo.org
1 hasufell 13/06/06 09:49:34
2
3 Modified: ChangeLog
4 Added: gambatte-0.5.0_p20130601.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
9
10 Revision Changes Path
11 1.3 games-emulation/gambatte/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gambatte/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gambatte/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gambatte/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-emulation/gambatte/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 13 Apr 2013 21:21:52 -0000 1.2
24 +++ ChangeLog 6 Jun 2013 09:49:34 -0000 1.3
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-emulation/gambatte
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/gambatte/ChangeLog,v 1.2 2013/04/13 21:21:52 hasufell Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/gambatte/ChangeLog,v 1.3 2013/06/06 09:49:34 hasufell Exp $
30 +
31 +*gambatte-0.5.0_p20130601 (06 Jun 2013)
32 +
33 + 06 Jun 2013; Julian Ospald <hasufell@g.o>
34 + +gambatte-0.5.0_p20130601.ebuild:
35 + version bump
36
37 *gambatte-0.5.0_p20130413 (13 Apr 2013)
38
39
40
41
42 1.1 games-emulation/gambatte/gambatte-0.5.0_p20130601.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gambatte/gambatte-0.5.0_p20130601.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gambatte/gambatte-0.5.0_p20130601.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gambatte-0.5.0_p20130601.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-emulation/gambatte/gambatte-0.5.0_p20130601.ebuild,v 1.1 2013/06/06 09:49:34 hasufell Exp $
52
53 EAPI=5
54
55 inherit scons-utils qt4-r2 games
56
57 DESCRIPTION="An accuracy-focused Gameboy / Gameboy Color emulator"
58 HOMEPAGE="http://sourceforge.net/projects/gambatte"
59 SRC_URI="mirror://sourceforge/gambatte/gambatte_src-r537.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="qt4 +sdl"
65 REQUIRED_USE="|| ( qt4 sdl )"
66
67 RDEPEND="
68 sys-libs/zlib
69 qt4? (
70 dev-qt/qtcore:4
71 dev-qt/qtgui:4
72 dev-qt/qtopengl:4
73 media-libs/alsa-lib
74 x11-libs/libX11
75 x11-libs/libXext
76 x11-libs/libXrandr
77 x11-libs/libXv
78 )
79 sdl? ( media-libs/libsdl[X,audio,joystick,video] )"
80 DEPEND="${RDEPEND}
81 app-arch/gzip"
82
83 S=${WORKDIR}/${PN}_src-r537
84
85 fix_scons() {
86 local i
87 for i; do
88 cat >> $i << END
89 import os
90 import SCons.Util
91
92 if os.environ.has_key('AR'):
93 env['AR'] = os.environ['AR']
94 if os.environ.has_key('RANLIB'):
95 env['RANLIB'] = os.environ['RANLIB']
96 if os.environ.has_key('CC'):
97 env['CC'] = os.environ['CC']
98 if os.environ.has_key('CFLAGS'):
99 env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
100 if os.environ.has_key('CXX'):
101 env['CXX'] = os.environ['CXX']
102 if os.environ.has_key('CXXFLAGS'):
103 env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
104 if os.environ.has_key('CPPFLAGS'):
105 env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CPPFLAGS'])
106 if os.environ.has_key('LDFLAGS'):
107 env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
108 END
109 done
110 }
111
112 src_prepare() {
113 # Fix zlib/minizip build error
114 sed -i \
115 -e '1i#define OF(x) x' \
116 libgambatte/src/file/unzip/{unzip,ioapi}.h \
117 || die "sed iompi.h failed"
118
119 fix_scons {gambatte_sdl,libgambatte}/SConstruct
120 }
121
122 src_compile() {
123 # build core library
124 cd "${S}"/libgambatte || die
125 escons
126
127 # build sdl frontend
128 if use sdl; then
129 cd "${S}"/gambatte_sdl || die
130 escons
131 fi
132
133 # build qt frontend
134 if use qt4; then
135 cd "${S}"/gambatte_qt || die
136 eqmake4 ${PN}_qt.pro
137 emake
138 fi
139 }
140
141 src_install() {
142 use sdl && dogamesbin gambatte_sdl/gambatte_sdl
143 use qt4 && dogamesbin gambatte_qt/bin/gambatte_qt
144
145 nonfatal dodoc README changelog
146
147 prepgamesdirs
148 }