1 |
commit: 0fdd39540cc956fc98901827058b82ba6b52cee9 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 29 09:35:10 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 11:25:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fdd3954 |
7 |
|
8 |
games-emulation/gambatte: Stop using games.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
.../gambatte/gambatte-0.5.0_p20131102-r2.ebuild | 74 ++++++++++++++++++++++ |
13 |
1 file changed, 74 insertions(+) |
14 |
|
15 |
diff --git a/games-emulation/gambatte/gambatte-0.5.0_p20131102-r2.ebuild b/games-emulation/gambatte/gambatte-0.5.0_p20131102-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..57ce854affa |
18 |
--- /dev/null |
19 |
+++ b/games-emulation/gambatte/gambatte-0.5.0_p20131102-r2.ebuild |
20 |
@@ -0,0 +1,74 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit scons-utils |
26 |
+ |
27 |
+DESCRIPTION="An accuracy-focused Gameboy / Gameboy Color emulator" |
28 |
+HOMEPAGE="https://sourceforge.net/projects/gambatte" |
29 |
+SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz" |
30 |
+ |
31 |
+LICENSE="GPL-2" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~x86" |
34 |
+IUSE="" |
35 |
+ |
36 |
+RDEPEND=" |
37 |
+ media-libs/libsdl[X,sound,joystick,video] |
38 |
+ sys-libs/zlib |
39 |
+" |
40 |
+DEPEND="${RDEPEND}" |
41 |
+ |
42 |
+fix_scons() { |
43 |
+ local i |
44 |
+ for i; do |
45 |
+ cat >> $i << END |
46 |
+import os |
47 |
+import SCons.Util |
48 |
+ |
49 |
+if os.environ.has_key('AR'): |
50 |
+ env['AR'] = os.environ['AR'] |
51 |
+if os.environ.has_key('RANLIB'): |
52 |
+ env['RANLIB'] = os.environ['RANLIB'] |
53 |
+if os.environ.has_key('CC'): |
54 |
+ env['CC'] = os.environ['CC'] |
55 |
+if os.environ.has_key('CFLAGS'): |
56 |
+ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS']) |
57 |
+if os.environ.has_key('CXX'): |
58 |
+ env['CXX'] = os.environ['CXX'] |
59 |
+if os.environ.has_key('CXXFLAGS'): |
60 |
+ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) |
61 |
+if os.environ.has_key('CPPFLAGS'): |
62 |
+ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CPPFLAGS']) |
63 |
+if os.environ.has_key('LDFLAGS'): |
64 |
+ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) |
65 |
+END |
66 |
+ done |
67 |
+} |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ default |
71 |
+ |
72 |
+ # Fix zlib/minizip build error |
73 |
+ sed -i \ |
74 |
+ -e '1i#define OF(x) x' \ |
75 |
+ libgambatte/src/file/unzip/{unzip,ioapi}.h \ |
76 |
+ || die "sed iompi.h failed" |
77 |
+ |
78 |
+ fix_scons {gambatte_sdl,libgambatte}/SConstruct |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ # build core library |
83 |
+ cd "${S}"/libgambatte || die |
84 |
+ escons |
85 |
+ |
86 |
+ # build sdl frontend |
87 |
+ cd "${S}"/gambatte_sdl || die |
88 |
+ escons |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ dobin gambatte_sdl/gambatte_sdl |
93 |
+ einstalldocs |
94 |
+} |