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/gcube/, games-emulation/gcube/files/
Date: Sun, 29 Apr 2018 11:26:52
Message-Id: 1525001137.9f88f5db5b127935744d3f310f6e1023f3439c69.pacho@gentoo
1 commit: 9f88f5db5b127935744d3f310f6e1023f3439c69
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 09:38:18 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 11:25:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f88f5db
7
8 games-emulation/gcube: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-emulation/gcube/files/gcube-0.4-gcc47.patch | 4 +-
13 .../gcube/files/gcube-0.4-ldflags.patch | 4 +-
14 .../gcube/files/gcube-0.4-underlink.patch | 4 +-
15 games-emulation/gcube/gcube-0.4-r2.ebuild | 50 ++++++++++++++++++++++
16 4 files changed, 56 insertions(+), 6 deletions(-)
17
18 diff --git a/games-emulation/gcube/files/gcube-0.4-gcc47.patch b/games-emulation/gcube/files/gcube-0.4-gcc47.patch
19 index b459a4e2403..48ac167a1f0 100644
20 --- a/games-emulation/gcube/files/gcube-0.4-gcc47.patch
21 +++ b/games-emulation/gcube/files/gcube-0.4-gcc47.patch
22 @@ -1,5 +1,5 @@
23 ---- Makefile.rules.old 2012-10-23 14:06:54.417782365 +0200
24 -+++ Makefile.rules 2012-10-23 14:07:11.516377033 +0200
25 +--- a/Makefile.rules.old 2012-10-23 14:06:54.417782365 +0200
26 ++++ b/Makefile.rules 2012-10-23 14:07:11.516377033 +0200
27 @@ -1,6 +1,6 @@
28
29 SDL_CONFIG=sdl-config
30
31 diff --git a/games-emulation/gcube/files/gcube-0.4-ldflags.patch b/games-emulation/gcube/files/gcube-0.4-ldflags.patch
32 index 169472ee185..b4a64f16aed 100644
33 --- a/games-emulation/gcube/files/gcube-0.4-ldflags.patch
34 +++ b/games-emulation/gcube/files/gcube-0.4-ldflags.patch
35 @@ -1,5 +1,5 @@
36 ---- Makefile.rules.old 2010-10-01 07:16:16.000000000 +0200
37 -+++ Makefile.rules 2010-10-01 07:18:04.000000000 +0200
38 +--- a/Makefile.rules.old 2010-10-01 07:16:16.000000000 +0200
39 ++++ b/Makefile.rules 2010-10-01 07:18:04.000000000 +0200
40 @@ -88,22 +88,22 @@
41 profiler: default
42
43
44 diff --git a/games-emulation/gcube/files/gcube-0.4-underlink.patch b/games-emulation/gcube/files/gcube-0.4-underlink.patch
45 index f1cff91cb15..f4b3d5b6969 100644
46 --- a/games-emulation/gcube/files/gcube-0.4-underlink.patch
47 +++ b/games-emulation/gcube/files/gcube-0.4-underlink.patch
48 @@ -1,5 +1,5 @@
49 ---- Makefile.rules.old 2011-06-10 14:14:08.372105234 +0200
50 -+++ Makefile.rules 2011-06-10 14:14:18.504746649 +0200
51 +--- a/Makefile.rules.old 2011-06-10 14:14:08.372105234 +0200
52 ++++ b/Makefile.rules 2011-06-10 14:14:18.504746649 +0200
53 @@ -1,6 +1,6 @@
54
55 SDL_CONFIG=sdl-config
56
57 diff --git a/games-emulation/gcube/gcube-0.4-r2.ebuild b/games-emulation/gcube/gcube-0.4-r2.ebuild
58 new file mode 100644
59 index 00000000000..6194fc6a210
60 --- /dev/null
61 +++ b/games-emulation/gcube/gcube-0.4-r2.ebuild
62 @@ -0,0 +1,50 @@
63 +# Copyright 1999-2018 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=6
67 +inherit flag-o-matic
68 +
69 +DESCRIPTION="Gamecube emulator"
70 +HOMEPAGE="http://gcube.exemu.net/"
71 +SRC_URI="http://gcube.exemu.net/downloads/${P}-src.tar.bz2"
72 +
73 +LICENSE="GPL-2+"
74 +SLOT="0"
75 +KEYWORDS="~amd64 ~x86"
76 +IUSE=""
77 +
78 +RDEPEND="
79 + virtual/opengl
80 + media-libs/libsdl[joystick,opengl,sound,video]
81 + virtual/jpeg:0
82 + sys-libs/ncurses:0=
83 + sys-libs/zlib
84 +"
85 +DEPEND="${RDEPEND}"
86 +
87 +S="${WORKDIR}/${PV}"
88 +
89 +src_prepare() {
90 + default
91 +
92 + sed -i -e '/^CFLAGS=-g/d' Makefile.rules || die
93 +
94 + eapply "${FILESDIR}"/${P}-ldflags.patch \
95 + "${FILESDIR}"/${P}-underlink.patch \
96 + "${FILESDIR}"/${P}-gcc47.patch
97 +
98 + sed -i -e '/^CC=/d' Makefile || die
99 +
100 + append-cflags -std=gnu89 # build with gcc5 (bug #570504)
101 +}
102 +
103 +src_install() {
104 + local x
105 +
106 + dobin gcmap gcube
107 + for x in bin2dol isopack thpview tplx ; do
108 + newbin ${x} ${PN}-${x}
109 + done
110 +
111 + einstalldocs
112 +}