Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/snes9x/, games-emulation/snes9x/files/
Date: Mon, 11 Jun 2018 09:59:55
Message-Id: 1528711187.b6d3d2086a5b76724da73489e794a89743b5b65d.polynomial-c@gentoo
1 commit: b6d3d2086a5b76724da73489e794a89743b5b65d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 11 09:21:09 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 11 09:59:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6d3d208
7
8 games-emulation/snes9x: Removed old.
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 games-emulation/snes9x/Manifest | 1 -
13 .../snes9x/files/snes9x-1.54.1-build.patch | 55 ----
14 .../snes9x/files/snes9x-1.54.1-system-zlib.patch | 307 ---------------------
15 games-emulation/snes9x/snes9x-1.54.1.ebuild | 121 --------
16 4 files changed, 484 deletions(-)
17
18 diff --git a/games-emulation/snes9x/Manifest b/games-emulation/snes9x/Manifest
19 index 17a4640040d..d4e447cdd89 100644
20 --- a/games-emulation/snes9x/Manifest
21 +++ b/games-emulation/snes9x/Manifest
22 @@ -1,3 +1,2 @@
23 -DIST snes9x-1.54.1.tar.gz 2186737 BLAKE2B b433a167035577ab785901acb65b9df289218fa214f664494e7f0559a1a843c9211f81bfea3add73c64c6f87e974b0964a86fa43433fa1b5c6e20a724d3aa320 SHA512 2a8fddc0b9044c0b7e10711b35c06555e280c93ddde3c101c4084f859079947acb209f2632ca08937fa2ca47932094040c4a7a60b6188354fd92f72dbdf854ed
24 DIST snes9x-1.55.tar.gz 2252841 BLAKE2B 52b2e3d5539d95df63ef6f90c974895bc3a3dbe1e89b3a9513a8504eab308d4827f116ebc13fd89ac9c01f7394067eeddf7fd6f640fd071ee8558a6a79f2b56c SHA512 61d1d6f9c1fc4fbf6253ac7a7d214c771563d7d60238197b2f1525a58f8f9011446f400767d39ec464c69d80574a7dcd78557c8f47605df992af28cb107c0f6e
25 DIST snes9x-1.56.tar.gz 2876904 BLAKE2B b58dd5c31627cbb374183adb5fe0328739bbebda8c6907ab7f9153085c45d612e51c91ad3223cc10694c9c36a00f69c303c5865d3b022f2769353884056a91b2 SHA512 b8c9438a451ed9a52a66dc04e2bea841aaa9403a2fd266e7042555f93a159ced76061233220eb6fac0f106cea08835c13ef008b2432f6d658689e0fa8ee563e6
26
27 diff --git a/games-emulation/snes9x/files/snes9x-1.54.1-build.patch b/games-emulation/snes9x/files/snes9x-1.54.1-build.patch
28 deleted file mode 100644
29 index 945b5f1890b..00000000000
30 --- a/games-emulation/snes9x/files/snes9x-1.54.1-build.patch
31 +++ /dev/null
32 @@ -1,55 +0,0 @@
33 ---- snes9x-1.54.1/gtk/configure.ac
34 -+++ snes9x-1.54.1/gtk/configure.ac
35 -@@ -33,7 +33,7 @@
36 -
37 - AM_GLIB_GNU_GETTEXT
38 -
39 --snes9xlocaledir='${prefix}/${DATADIRNAME}/locale'
40 -+snes9xlocaledir='/usr/share/locale'
41 - AC_SUBST(snes9xlocaledir)
42 -
43 - AC_ARG_WITH(debug,
44 ---- snes9x-1.54.1/unix/configure.ac
45 -+++ snes9x-1.54.1/unix/configure.ac
46 -@@ -56,20 +56,6 @@
47 - # *** Execution begins here ***
48 - # *****************************
49 -
50 --# Remove -g and -O2 flags manually.
51 --
52 --if test "x$CFLAGS" != "x"; then
53 -- CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-g//'`"
54 -- CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-O2//'`"
55 --fi
56 --
57 --if test "x$CXXFLAGS" != "x"; then
58 -- CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-g//'`"
59 -- CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-O2//'`"
60 --fi
61 --
62 --# Test what compiler flags we should use.
63 --
64 - AC_ARG_ENABLE([debug],
65 - [AS_HELP_STRING([--enable-debug],
66 - [leave debug information in the final binary (default: no)])],
67 -@@ -79,9 +65,6 @@
68 - AC_S9X_COMPILER_FLAG([-g], [g])
69 - AC_S9X_COMPILER_FLAG([-O0], [o0])
70 - else
71 -- AC_S9X_COMPILER_FLAG([-O3], [o3], [
72 -- AC_S9X_COMPILER_FLAG([-O2], [o2], [
73 -- AC_S9X_COMPILER_FLAG([-O1], [o1])])])
74 - AC_S9X_COMPILER_FLAG([-fomit-frame-pointer], [omit_frame_pointer])
75 - fi
76 -
77 ---- snes9x-1.54.1/unix/Makefile.in
78 -+++ snes9x-1.54.1/unix/Makefile.in
79 -@@ -47,7 +47,7 @@
80 - exit 1
81 -
82 - snes9x: $(OBJECTS)
83 -- $(CCC) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@
84 -+ $(CCC) $(LDFLAGS) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@
85 -
86 - ../jma/s9x-jma.o: ../jma/s9x-jma.cpp
87 - $(CCC) $(INCLUDES) -c $(CCFLAGS) -fexceptions $*.cpp -o $@
88
89 diff --git a/games-emulation/snes9x/files/snes9x-1.54.1-system-zlib.patch b/games-emulation/snes9x/files/snes9x-1.54.1-system-zlib.patch
90 deleted file mode 100644
91 index 26025829442..00000000000
92 --- a/games-emulation/snes9x/files/snes9x-1.54.1-system-zlib.patch
93 +++ /dev/null
94 @@ -1,307 +0,0 @@
95 -From def3936a5353924fb7b9ffa30b8c1c96c9175ca7 Mon Sep 17 00:00:00 2001
96 -From: Lars Wendler <polynomial-c@g.o>
97 -Date: Fri, 11 Nov 2016 17:52:07 +0100
98 -Subject: [PATCH] Introduce --with-system-zip configure flag to use system zip
99 - (minizip)
100 -
101 -if available.
102 ----
103 - conffile.h | 6 +++++-
104 - gtk/Makefile.am | 6 +++++-
105 - gtk/configure.ac | 28 +++++++++++++++++++++++++++-
106 - loadzip.cpp | 4 ++++
107 - memmap.cpp | 6 +++++-
108 - stream.cpp | 6 +++++-
109 - stream.h | 7 +++++--
110 - unix/Makefile.in | 9 +++++++--
111 - unix/configure.ac | 47 +++++++++++++++++++++++++++++++++++++++--------
112 - 9 files changed, 102 insertions(+), 17 deletions(-)
113 -
114 -diff --git a/conffile.h b/conffile.h
115 -index ed8a13b..366706f 100644
116 ---- a/conffile.h
117 -+++ b/conffile.h
118 -@@ -197,7 +197,11 @@
119 - #include <string>
120 -
121 - #ifdef UNZIP_SUPPORT
122 --#include "unzip/unzip.h"
123 -+# ifdef SYSTEM_ZIP
124 -+# include <minizip/unzip.h>
125 -+# else
126 -+# include "unzip/unzip.h"
127 -+# endif
128 - #endif
129 - #include "snes9x.h"
130 -
131 -diff --git a/gtk/Makefile.am b/gtk/Makefile.am
132 -index fad1cf2..57f00fb 100644
133 ---- a/gtk/Makefile.am
134 -+++ b/gtk/Makefile.am
135 -@@ -196,12 +196,16 @@ snes9x_gtk_SOURCES += \
136 - ../server.cpp
137 - endif
138 -
139 -+
140 - # Zip support is nonconfigurable.
141 - snes9x_gtk_SOURCES += \
142 -- ../loadzip.cpp \
143 -+ ../loadzip.cpp
144 -+if ! SYSTEM_ZIP
145 -+snes9x_gtk_SOURCES += \
146 - ../unzip/unzip.c \
147 - ../unzip/ioapi.c \
148 - ../unzip/zip.c
149 -+endif
150 - UNZIPDEFINES=-DUNZIP_SUPPORT
151 -
152 - if JMA
153 -diff --git a/gtk/configure.ac b/gtk/configure.ac
154 -index 4d21792..e3bab4e 100644
155 ---- a/gtk/configure.ac
156 -+++ b/gtk/configure.ac
157 -@@ -138,6 +138,12 @@ AC_ARG_WITH(zlib,
158 - [],
159 - [with_zlib=yes])
160 -
161 -+AC_ARG_WITH(system-zip,
162 -+ [AS_HELP_STRING([--with(out)-system-zip],
163 -+ [Use system zip])],
164 -+ [],
165 -+ [system_zip=check])
166 -+
167 - AC_ARG_WITH(screenshot,
168 - [AS_HELP_STRING([--with(out)-screenshot],
169 - [Screenshot support through libpng if available (default: with)])],
170 -@@ -313,6 +319,25 @@ if test yes = "$with_screenshot"; then
171 - ])
172 - fi
173 -
174 -+SYSTEM_ZIP=0
175 -+SYSTEM_ZIP_CFLAGS=""
176 -+SYSTEM_ZIP_LIBS=""
177 -+ZIP_CFLAGS="-I../unzip"
178 -+if test no != "$with_system_zip" && test yes = "$with_zlib" ; then
179 -+ PKG_CHECK_MODULES([SYSTEM_ZIP],[minizip],[
180 -+ ZIP_CFLAGS=""
181 -+ SYSTEM_ZIP=yes
182 -+ CFLAGS="$CFLAGS $SYSTEM_ZIP_CFLAGS -DSYSTEM_ZIP"
183 -+ LIBS="$LIBS $SYSTEM_ZIP_LIBS"
184 -+ ],[
185 -+ if test check = "$with_system_zip"; then
186 -+ AC_MSG_WARN(Cannot find SYSTEM_ZIP)
187 -+ else
188 -+ AC_MSG_ERROR(--with-system-zip given but cannot find proper zlib)
189 -+ fi
190 -+ ])
191 -+fi
192 -+
193 - if test yes = "$with_hq2x" ; then
194 - HQ2X=yes
195 - CFLAGS="$CFLAGS -DUSE_HQ2X"
196 -@@ -440,7 +465,7 @@ if test $ac_cv_my_sar_int8 = yes && \
197 - CFLAGS="$CFLAGS -DRIGHTSHIFT_IS_SAR"
198 - fi
199 -
200 --CFLAGS="$CFLAGS -DUNZIP_SUPPORT -DSPC700_C -I. -I.. -I../unzip"
201 -+CFLAGS="$CFLAGS -DUNZIP_SUPPORT -DSPC700_C -I. -I.. $ZIP_CFLAGS"
202 -
203 - CXXFLAGS="$CFLAGS"
204 -
205 -@@ -462,6 +487,7 @@ AM_CONDITIONAL(ALSA, [test yes = "$ALSA"])
206 - AM_CONDITIONAL(PULSEAUDIO, [test yes = "$PULSEAUDIO"])
207 - AM_CONDITIONAL(HQ2X, [test yes = "$HQ2X"])
208 - AM_CONDITIONAL(XBRZ, [test yes = "$XBRZ"])
209 -+AM_CONDITIONAL(SYSTEM_ZIP, [test yes = "$SYSTEM_ZIP"])
210 -
211 - AC_SUBST(NASM)
212 - AC_SUBST(NASM_FLAGS)
213 -diff --git a/loadzip.cpp b/loadzip.cpp
214 -index 024bc79..dab2504 100644
215 ---- a/loadzip.cpp
216 -+++ b/loadzip.cpp
217 -@@ -192,7 +192,11 @@
218 -
219 - #include <assert.h>
220 - #include <ctype.h>
221 -+#ifdef SYSTEM_ZIP
222 -+#include <minizip/unzip.h>
223 -+#else
224 - #include "unzip/unzip.h"
225 -+#endif
226 - #include "snes9x.h"
227 - #include "memmap.h"
228 -
229 -diff --git a/memmap.cpp b/memmap.cpp
230 -index 19df95c..98de319 100644
231 ---- a/memmap.cpp
232 -+++ b/memmap.cpp
233 -@@ -193,7 +193,11 @@
234 - #include <assert.h>
235 -
236 - #ifdef UNZIP_SUPPORT
237 --#include "unzip/unzip.h"
238 -+# ifdef SYSTEM_ZIP
239 -+# include <minizip/unzip.h>
240 -+# else
241 -+# include "unzip/unzip.h"
242 -+# endif
243 - #endif
244 -
245 - #ifdef JMA_SUPPORT
246 -diff --git a/stream.cpp b/stream.cpp
247 -index 37051c3..bb64113 100644
248 ---- a/stream.cpp
249 -+++ b/stream.cpp
250 -@@ -192,7 +192,11 @@
251 -
252 - #include <string>
253 - #ifdef UNZIP_SUPPORT
254 --#include "unzip.h"
255 -+# ifdef SYSTEM_ZIP
256 -+# include <minizip/unzip.h>
257 -+# else
258 -+# include "unzip.h"
259 -+# endif
260 - #endif
261 - #include "snes9x.h"
262 - #include "stream.h"
263 -diff --git a/stream.h b/stream.h
264 -index b03dea9..ea22df0 100644
265 ---- a/stream.h
266 -+++ b/stream.h
267 -@@ -229,8 +229,11 @@ class fStream : public Stream
268 - };
269 -
270 - #ifdef UNZIP_SUPPORT
271 --
272 --#include "unzip.h"
273 -+# ifdef SYSTEM_ZIP
274 -+# include <minizip/unzip.h>
275 -+# else
276 -+# include "unzip.h"
277 -+# endif
278 -
279 - #define unz_BUFFSIZ 1024
280 -
281 -diff --git a/unix/Makefile.in b/unix/Makefile.in
282 -index 5849568..aecad31 100644
283 ---- a/unix/Makefile.in
284 -+++ b/unix/Makefile.in
285 -@@ -2,6 +2,7 @@
286 - @S9XNETPLAY@
287 - @S9XZIP@
288 - @S9XJMA@
289 -+@S9X_SYSTEM_ZIP@
290 -
291 - # Fairly good and special-char-safe descriptor of the os being built on.
292 - OS = `uname -s -r -m|sed \"s/ /-/g\"|tr \"[A-Z]\" \"[a-z]\"|tr \"/()\" \"___\"`
293 -@@ -19,7 +20,11 @@ OBJECTS += ../netplay.o ../server.o
294 - endif
295 -
296 - ifdef S9XZIP
297 --OBJECTS += ../loadzip.o ../unzip/ioapi.o ../unzip/unzip.o
298 -+OBJECTS += ../loadzip.o
299 -+ifndef SYSTEM_ZIP
300 -+OBJECTS += ../unzip/ioapi.o ../unzip/unzip.o
301 -+INCLUDES = -I../unzip/
302 -+endif
303 - endif
304 -
305 - ifdef S9XJMA
306 -@@ -29,7 +34,7 @@ endif
307 - CCC = @CXX@
308 - CC = @CC@
309 - GASM = @CXX@
310 --INCLUDES = -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/
311 -+INCLUDES += -I. -I.. -I../apu/ -I../apu/bapu -I../jma/ -I../filter/
312 -
313 - CCFLAGS = @S9XFLGS@ @S9XDEFS@ $(DEFS)
314 - CFLAGS = $(CCFLAGS)
315 -diff --git a/unix/configure.ac b/unix/configure.ac
316 -index 3c851dc..47f3780 100644
317 ---- a/unix/configure.ac
318 -+++ b/unix/configure.ac
319 -@@ -201,16 +201,43 @@ AC_ARG_ENABLE([zip],
320 - [enable ZIP support through zlib (default: yes)])],
321 - [], [enable_zip="yes"])
322 -
323 -+S9X_SYSTEM_ZIP="#SYSTEM_ZIP=1"
324 -+
325 -+AC_ARG_WITH([system-zip],
326 -+ [AS_HELP_STRING([--with-system-zip],
327 -+ [Use system zip (default: check)])],
328 -+ [], [with_system_zip="check"])
329 -+
330 - if test "x$enable_zip" = "xyes"; then
331 -- if test "x$snes9x_cv_zlib" = "xyes"; then
332 -- S9XZIP="S9XZIP=1"
333 -- S9XDEFS="$S9XDEFS -DUNZIP_SUPPORT"
334 -- if test "x$enable_gzip" = "xno"; then
335 -- S9XLIBS="$S9XLIBS -lz"
336 -- fi
337 -+ if test "x$with_system_zip" != "xno"; then
338 -+ PKG_CHECK_MODULES(
339 -+ SYSTEM_ZIP,
340 -+ minizip,
341 -+ S9XZIP="S9XZIP=1"
342 -+ S9XDEFS="$S9XDEFS -DUNZIP_SUPPORT"
343 -+ S9X_SYSTEM_ZIP="SYSTEM_ZIP=1"
344 -+ S9XLIBS="$S9XLIBS $SYSTEM_ZIP_LIBS"
345 -+ if test "x$enable_gzip" = "xno"; then
346 -+ S9XLIBS="$S9XLIBS -lz"
347 -+ fi
348 -+ S9XDEFS="$S9XDEFS -DSYSTEM_ZIP",
349 -+ if test "x${with_system_zip}" != "xcheck"; then
350 -+ AC_MSG_ERROR([--with-system-zip requested but no proper zlib found.])
351 -+ else
352 -+ AC_MSG_WARN([zlib not found. Build without SYSTEM_ZIP support.])
353 -+ fi
354 -+ )
355 - else
356 -- AC_MSG_WARN([zlib not found. Build without ZIP support.])
357 -- enable_zip="no"
358 -+ if test "x$snes9x_cv_zlib" = "xyes"; then
359 -+ S9XZIP="S9XZIP=1"
360 -+ S9XDEFS="$S9XDEFS -DUNZIP_SUPPORT"
361 -+ if test "x$enable_gzip" = "xno"; then
362 -+ S9XLIBS="$S9XLIBS -lz"
363 -+ fi
364 -+ else
365 -+ AC_MSG_WARN([zlib not found. Build without ZIP support.])
366 -+ enable_zip="no"
367 -+ fi
368 - fi
369 - fi
370 -
371 -@@ -427,9 +454,11 @@ S9XLIBS="$LIBS $S9XLIBS"
372 - S9XFLGS="`echo \"$S9XFLGS\" | sed -e 's/ */ /g'`"
373 - S9XDEFS="`echo \"$S9XDEFS\" | sed -e 's/ */ /g'`"
374 - S9XLIBS="`echo \"$S9XLIBS\" | sed -e 's/ */ /g'`"
375 -+S9X_SYSTEM_ZIP="`echo \"$S9X_SYSTEM_ZIP\" | sed -e 's/ */ /g'`"
376 - S9XFLGS="`echo \"$S9XFLGS\" | sed -e 's/^ *//'`"
377 - S9XDEFS="`echo \"$S9XDEFS\" | sed -e 's/^ *//'`"
378 - S9XLIBS="`echo \"$S9XLIBS\" | sed -e 's/^ *//'`"
379 -+S9X_SYSTEM_ZIP="`echo \"$S9X_SYSTEM_ZIP\" | sed -e 's/^ *//'`"
380 -
381 - AC_SUBST(S9XFLGS)
382 - AC_SUBST(S9XDEFS)
383 -@@ -439,6 +468,7 @@ AC_SUBST(S9XDEBUGGER)
384 - AC_SUBST(S9XNETPLAY)
385 - AC_SUBST(S9XZIP)
386 - AC_SUBST(S9XJMA)
387 -+AC_SUBST(S9X_SYSTEM_ZIP)
388 -
389 - rm config.info 2>/dev/null
390 -
391 -@@ -459,6 +489,7 @@ netplay support...... $enable_netplay
392 - gamepad support...... $enable_gamepad
393 - GZIP support......... $enable_gzip
394 - ZIP support.......... $enable_zip
395 -+SYSTEM_ZIP........... $with_system_zip
396 - JMA support.......... $enable_jma
397 - debugger............. $enable_debugger
398 -
399 ---
400 -2.10.2
401 -
402
403 diff --git a/games-emulation/snes9x/snes9x-1.54.1.ebuild b/games-emulation/snes9x/snes9x-1.54.1.ebuild
404 deleted file mode 100644
405 index 972c9db684b..00000000000
406 --- a/games-emulation/snes9x/snes9x-1.54.1.ebuild
407 +++ /dev/null
408 @@ -1,121 +0,0 @@
409 -# Copyright 1999-2018 Gentoo Foundation
410 -# Distributed under the terms of the GNU General Public License v2
411 -
412 -EAPI=6
413 -inherit autotools eutils flag-o-matic multilib gnome2-utils
414 -
415 -DESCRIPTION="Super Nintendo Entertainment System (SNES) emulator"
416 -HOMEPAGE="https://github.com/snes9xgit/snes9x"
417 -SRC_URI="https://github.com/snes9xgit/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
418 -
419 -LICENSE="Snes9x GPL-2 GPL-2+ LGPL-2.1 LGPL-2.1+ ISC MIT ZLIB Info-ZIP"
420 -SLOT="0"
421 -KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd"
422 -IUSE="alsa debug gtk joystick multilib netplay nls opengl oss png pulseaudio portaudio +xv +xrandr"
423 -RESTRICT="bindist"
424 -
425 -RDEPEND="
426 - sys-libs/zlib[minizip]
427 - x11-libs/libX11
428 - x11-libs/libXext
429 - png? ( >=media-libs/libpng-1.2.43:0 )
430 - gtk? ( >=x11-libs/gtk+-2.10:2
431 - x11-misc/xdg-utils
432 - portaudio? ( >=media-libs/portaudio-19_pre )
433 - joystick? ( >=media-libs/libsdl-1.2.12[joystick] )
434 - opengl? ( virtual/opengl )
435 - xv? ( x11-libs/libXv )
436 - xrandr? ( x11-libs/libXrandr )
437 - alsa? ( media-libs/alsa-lib )
438 - pulseaudio? ( media-sound/pulseaudio ) )
439 -"
440 -DEPEND="${RDEPEND}
441 - virtual/pkgconfig
442 - x11-base/xorg-proto
443 - nls? ( dev-util/intltool )"
444 -
445 -S="${WORKDIR}/${P}/unix"
446 -
447 -PATCHES=(
448 - "${FILESDIR}"/${PN}-1.54.1-build.patch
449 - "${FILESDIR}"/${PN}-1.53-cross-compile.patch
450 - "${FILESDIR}"/${PN}-1.54.1-system-zlib.patch
451 -)
452 -
453 -src_prepare() {
454 - cd "${WORKDIR}"/${P} || die
455 - rm -r unzip || die
456 - default
457 - cd unix
458 - eautoreconf
459 - if use gtk; then
460 - cd ../gtk || die
461 - eautoreconf
462 - fi
463 -}
464 -
465 -src_configure() {
466 - append-ldflags -Wl,-z,noexecstack
467 -
468 - # build breaks when zlib/zip support is disabled
469 - econf \
470 - --enable-gzip \
471 - --enable-zip \
472 - --with-system-zip \
473 - $(use_enable joystick gamepad) \
474 - $(use_enable debug debugger) \
475 - $(use_enable netplay) \
476 - $(use_enable png screenshot)
477 -
478 - if use gtk; then
479 - cd ../gtk || die
480 - econf \
481 - --datadir=/usr/share \
482 - --with-zlib \
483 - --with-system-zip \
484 - $(use_enable nls) \
485 - $(use_with opengl) \
486 - $(use_with joystick) \
487 - $(use_with xv) \
488 - $(use_with xrandr) \
489 - $(use_with netplay) \
490 - $(use_with alsa) \
491 - $(use_with oss) \
492 - $(use_with pulseaudio) \
493 - $(use_with portaudio) \
494 - $(use_with png screenshot)
495 - fi
496 -}
497 -
498 -src_compile() {
499 - emake
500 - if use gtk; then
501 - emake -C ../gtk
502 - fi
503 -}
504 -
505 -src_install() {
506 - dobin ${PN}
507 -
508 - dodoc ../docs/{snes9x.conf.default,{changes,control-inputs,controls,snapshots}.txt}
509 -
510 - if use gtk; then
511 - emake -C ../gtk DESTDIR="${D}" install
512 - dodoc ../gtk/{AUTHORS,doc/README}
513 - fi
514 -
515 - docinto html
516 - dodoc {.,..}/docs/*.html
517 -}
518 -
519 -pkg_preinst() {
520 - use gtk && gnome2_icon_savelist
521 -}
522 -
523 -pkg_postinst() {
524 - use gtk && gnome2_icon_cache_update
525 -}
526 -
527 -pkg_postrm() {
528 - use gtk && gnome2_icon_cache_update
529 -}