Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/gens/, games-emulation/gens/files/
Date: Sun, 29 Apr 2018 11:26:58
Message-Id: 1525001146.bd0466c872ae5d294fbf42d8f598a00387eba67a.pacho@gentoo
1 commit: bd0466c872ae5d294fbf42d8f598a00387eba67a
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 09:49:23 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 11:25:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd0466c8
7
8 games-emulation/gens: Drop games.eclass, add amd64 support (#441876)
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 .../gens/files/gens-2.15.5-as-needed.patch | 4 +-
13 .../gens/files/gens-2.15.5-ovflfix.patch | 4 +-
14 .../gens/files/gens-2.15.5-romsdir.patch | 4 +-
15 games-emulation/gens/gens-2.15.5-r1.ebuild | 48 ++++++++++++++++++++++
16 4 files changed, 54 insertions(+), 6 deletions(-)
17
18 diff --git a/games-emulation/gens/files/gens-2.15.5-as-needed.patch b/games-emulation/gens/files/gens-2.15.5-as-needed.patch
19 index 02aed32b802..2b58e7f94b3 100644
20 --- a/games-emulation/gens/files/gens-2.15.5-as-needed.patch
21 +++ b/games-emulation/gens/files/gens-2.15.5-as-needed.patch
22 @@ -1,5 +1,5 @@
23 ---- configure.old 2009-02-04 14:41:40.000000000 +0100
24 -+++ configure 2009-02-04 14:48:52.000000000 +0100
25 +--- a/configure.old 2009-02-04 14:41:40.000000000 +0100
26 ++++ b/configure 2009-02-04 14:48:52.000000000 +0100
27 @@ -4929,7 +4929,7 @@
28 { echo "$as_me:$LINENO: result: $with_opengl" >&5
29 echo "${ECHO_T}$with_opengl" >&6; }
30
31 diff --git a/games-emulation/gens/files/gens-2.15.5-ovflfix.patch b/games-emulation/gens/files/gens-2.15.5-ovflfix.patch
32 index f5b98a54245..fdbef69dba0 100644
33 --- a/games-emulation/gens/files/gens-2.15.5-ovflfix.patch
34 +++ b/games-emulation/gens/files/gens-2.15.5-ovflfix.patch
35 @@ -1,5 +1,5 @@
36 ---- src/gens/gens_core/cpu/68k/cpu_68k.c.old 2010-10-28 09:34:52.000000000 +0200
37 -+++ src/gens/gens_core/cpu/68k/cpu_68k.c 2010-10-28 09:35:53.000000000 +0200
38 +--- a/src/gens/gens_core/cpu/68k/cpu_68k.c.old 2010-10-28 09:34:52.000000000 +0200
39 ++++ b/src/gens/gens_core/cpu/68k/cpu_68k.c 2010-10-28 09:35:53.000000000 +0200
40 @@ -239,8 +239,8 @@
41 memset (Ram_Word_2M, 0, 256 * 1024);
42 memset (Ram_Word_1M, 0, 256 * 1024);
43
44 diff --git a/games-emulation/gens/files/gens-2.15.5-romsdir.patch b/games-emulation/gens/files/gens-2.15.5-romsdir.patch
45 index 606efe2dd6f..c885552f12d 100644
46 --- a/games-emulation/gens/files/gens-2.15.5-romsdir.patch
47 +++ b/games-emulation/gens/files/gens-2.15.5-romsdir.patch
48 @@ -1,6 +1,6 @@
49 diff -ruN gens-rc3.5-opengl/src/gens/util/rom.c gens-rc3.5-opengl-patched/src/gens/util/rom.c
50 ---- src/gens/util/file/rom.c 2005-01-10 22:24:01.000000000 +0100
51 -+++ src/gens/util/file/rom.c 2006-10-29 14:58:14.000000000 +0100
52 +--- a/src/gens/util/file/rom.c 2005-01-10 22:24:01.000000000 +0100
53 ++++ b/src/gens/util/file/rom.c 2006-10-29 14:58:14.000000000 +0100
54 @@ -411,6 +411,9 @@
55 create_file_chooser_dialog ("Open Rom", GTK_FILE_CHOOSER_ACTION_OPEN);
56 // fileselection_set_dir (fd.filesel, Rom_Dir);
57
58 diff --git a/games-emulation/gens/gens-2.15.5-r1.ebuild b/games-emulation/gens/gens-2.15.5-r1.ebuild
59 new file mode 100644
60 index 00000000000..de49e5ffa08
61 --- /dev/null
62 +++ b/games-emulation/gens/gens-2.15.5-r1.ebuild
63 @@ -0,0 +1,48 @@
64 +# Copyright 1999-2018 Gentoo Foundation
65 +# Distributed under the terms of the GNU General Public License v2
66 +
67 +EAPI=6
68 +inherit desktop flag-o-matic
69 +
70 +DESCRIPTION="A Sega Genesis/CD/32X emulator"
71 +HOMEPAGE="https://sourceforge.net/projects/gens/"
72 +SRC_URI="mirror://sourceforge/gens/${P}.tar.gz"
73 +
74 +LICENSE="GPL-2"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~x86"
77 +IUSE=""
78 +
79 +RDEPEND="
80 + virtual/opengl
81 + >=media-libs/libsdl-1.2[joystick,video]
82 + x11-libs/gtk+:2
83 +"
84 +DEPEND="${RDEPEND}
85 + >=dev-lang/nasm-0.98
86 +"
87 +
88 +src_prepare() {
89 + default
90 + eapply \
91 + "${FILESDIR}"/${P}-romsdir.patch \
92 + "${FILESDIR}"/${P}-as-needed.patch \
93 + "${FILESDIR}"/${P}-ovflfix.patch \
94 + "${FILESDIR}"/${P}-gcc34.patch
95 + sed -i -e '1i#define OF(x) x' src/gens/util/file/unzip.h || die
96 + append-ldflags -Wl,-z,noexecstack
97 +}
98 +
99 +src_configure() {
100 + use amd64 && multilib_toolchain_setup x86 #441876
101 + econf \
102 + --disable-gtktest \
103 + --disable-sdltest
104 +}
105 +
106 +src_install() {
107 + DOCS="AUTHORS BUGS README gens.txt history.txt" \
108 + default
109 + newicon pixmaps/gens_small.png ${PN}.png
110 + make_desktop_entry "${PN}" "Gens"
111 +}