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/generator/, games-emulation/generator/files/
Date: Sun, 29 Apr 2018 11:26:53
Message-Id: 1525001141.5d1e26892212ffbdcae528cd2e38efc4f3230515.pacho@gentoo
1 commit: 5d1e26892212ffbdcae528cd2e38efc4f3230515
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 09:42:39 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 11:25:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d1e2689
7
8 games-emulation/generator: Drop games.eclass, fix compilation (#650574)
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 .../files/generator-0.35_p4-configure.patch | 4 +-
13 .../generator/files/generator-0.35_p4-inline.patch | 12 +++++
14 .../files/generator-0.35_p4-underlink.patch | 4 +-
15 .../generator/generator-0.35_p4-r1.ebuild | 54 ++++++++++++++++++++++
16 4 files changed, 70 insertions(+), 4 deletions(-)
17
18 diff --git a/games-emulation/generator/files/generator-0.35_p4-configure.patch b/games-emulation/generator/files/generator-0.35_p4-configure.patch
19 index 72ed087bd29..a918c4a9711 100644
20 --- a/games-emulation/generator/files/generator-0.35_p4-configure.patch
21 +++ b/games-emulation/generator/files/generator-0.35_p4-configure.patch
22 @@ -1,5 +1,5 @@
23 ---- configure.ac.original 2008-03-17 13:07:48.000000000 -0400
24 -+++ configure.ac 2008-03-17 13:08:03.000000000 -0400
25 +--- a/configure.ac.original 2008-03-17 13:07:48.000000000 -0400
26 ++++ b/configure.ac 2008-03-17 13:08:03.000000000 -0400
27 @@ -28,15 +28,12 @@
28 AC_ARG_WITH(tcltk,
29 AS_HELP_STRING(--with-tcltk,Create tcltk version),
30
31 diff --git a/games-emulation/generator/files/generator-0.35_p4-inline.patch b/games-emulation/generator/files/generator-0.35_p4-inline.patch
32 new file mode 100644
33 index 00000000000..e7f09fa3689
34 --- /dev/null
35 +++ b/games-emulation/generator/files/generator-0.35_p4-inline.patch
36 @@ -0,0 +1,12 @@
37 +diff -aur generator-0.35-cbiere-r4/ym2612/support.h generator-0.35-cbiere-r4-patched/ym2612/support.h
38 +--- generator-0.35-cbiere-r4/ym2612/support.h 2005-08-27 05:12:29.000000000 -0400
39 ++++ generator-0.35-cbiere-r4-patched/ym2612/support.h 2018-03-26 11:49:36.000000000 -0400
40 +@@ -3,7 +3,7 @@
41 + #include "config.h"
42 +
43 + #define errorlog 0
44 +-#define INLINE inline
45 ++#define INLINE
46 + #define HAS_YM2612 1
47 + #define YM2612UpdateRequest(x)
48 + #define AY8910_set_clock(chip,clock)
49
50 diff --git a/games-emulation/generator/files/generator-0.35_p4-underlink.patch b/games-emulation/generator/files/generator-0.35_p4-underlink.patch
51 index 964a6bea088..b350e8b8a33 100644
52 --- a/games-emulation/generator/files/generator-0.35_p4-underlink.patch
53 +++ b/games-emulation/generator/files/generator-0.35_p4-underlink.patch
54 @@ -1,5 +1,5 @@
55 ---- main/Makefile.am.old 2011-06-20 21:35:25.832460030 +0200
56 -+++ main/Makefile.am 2011-06-20 21:36:29.490503981 +0200
57 +--- a/main/Makefile.am.old 2011-06-20 21:35:25.832460030 +0200
58 ++++ b/main/Makefile.am 2011-06-20 21:36:29.490503981 +0200
59 @@ -7,7 +7,7 @@
60 bin_PROGRAMS = @PROGRAM@
61 EXTRA_PROGRAMS = generator-svgalib generator-tcltk generator-allegro \
62
63 diff --git a/games-emulation/generator/generator-0.35_p4-r1.ebuild b/games-emulation/generator/generator-0.35_p4-r1.ebuild
64 new file mode 100644
65 index 00000000000..14ef210d58a
66 --- /dev/null
67 +++ b/games-emulation/generator/generator-0.35_p4-r1.ebuild
68 @@ -0,0 +1,54 @@
69 +# Copyright 1999-2018 Gentoo Foundation
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=6
73 +inherit autotools toolchain-funcs
74 +
75 +MY_P="${PN}-${PV/_p/-cbiere-r}"
76 +DESCRIPTION="Sega Genesis / Mega Drive emulator"
77 +HOMEPAGE="http://www.squish.net/generator/"
78 +SRC_URI="http://www.squish.net/generator/cbiere/generator/${MY_P}.tar.bz2"
79 +
80 +LICENSE="GPL-2"
81 +SLOT="0"
82 +KEYWORDS="~amd64 ~x86"
83 +IUSE="+sdlaudio"
84 +
85 +RDEPEND="
86 + virtual/jpeg:0
87 + media-libs/libsdl[joystick,video]
88 + sdlaudio? ( media-libs/libsdl[sound] )
89 +"
90 +RDEPEND="${DEPEND}"
91 +
92 +S="${WORKDIR}/${MY_P}"
93 +
94 +src_prepare() {
95 + default
96 + eapply \
97 + "${FILESDIR}"/${P}-configure.patch \
98 + "${FILESDIR}"/${P}-underlink.patch \
99 + "${FILESDIR}"/${P}-inline.patch
100 +
101 + sed -i -e 's/@GTK_CFLAGS@//g' main/Makefile.am || die
102 + eautoreconf
103 +}
104 +
105 +src_configure() {
106 + econf \
107 + --with-cmz80 \
108 + --with-sdl \
109 + --without-tcltk \
110 + --with-gcc=$(gcc-major-version) \
111 + $(use_with sdlaudio sdl-audio)
112 +}
113 +
114 +src_compile() {
115 + [[ -f Makefile ]] && emake clean
116 + emake -j1
117 +}
118 +
119 +src_install() {
120 + dobin main/generator-sdl
121 + dodoc AUTHORS ChangeLog NEWS README TODO docs/*
122 +}