games-emulation/gcube: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Sun, 29 Apr 2018 09:38:18 +0000 (11:38 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 29 Apr 2018 11:25:37 +0000 (13:25 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-emulation/gcube/files/gcube-0.4-gcc47.patch
games-emulation/gcube/files/gcube-0.4-ldflags.patch
games-emulation/gcube/files/gcube-0.4-underlink.patch
games-emulation/gcube/gcube-0.4-r2.ebuild [new file with mode: 0644]

index b459a4e24034b4d45a2e6521473278b230225889..48ac167a1f0da50fe21a7cdd00485570129d9047 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.rules.old 2012-10-23 14:06:54.417782365 +0200
-+++ Makefile.rules     2012-10-23 14:07:11.516377033 +0200
+--- a/Makefile.rules.old       2012-10-23 14:06:54.417782365 +0200
++++ b/Makefile.rules   2012-10-23 14:07:11.516377033 +0200
 @@ -1,6 +1,6 @@
  
  SDL_CONFIG=sdl-config
index 169472ee18512e5bebd79ceff260daac7e16a5d8..b4a64f16aede13f5d2fea18a7f028b000118bcd1 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.rules.old 2010-10-01 07:16:16.000000000 +0200
-+++ Makefile.rules     2010-10-01 07:18:04.000000000 +0200
+--- a/Makefile.rules.old       2010-10-01 07:16:16.000000000 +0200
++++ b/Makefile.rules   2010-10-01 07:18:04.000000000 +0200
 @@ -88,22 +88,22 @@
  profiler:     default
  
index f1cff91cb158c6a5f8c496d940fe25af5d0b4ce6..f4b3d5b6969d96830e351fd17cbda99b64dc999b 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.rules.old 2011-06-10 14:14:08.372105234 +0200
-+++ Makefile.rules     2011-06-10 14:14:18.504746649 +0200
+--- a/Makefile.rules.old       2011-06-10 14:14:08.372105234 +0200
++++ b/Makefile.rules   2011-06-10 14:14:18.504746649 +0200
 @@ -1,6 +1,6 @@
  
  SDL_CONFIG=sdl-config
diff --git a/games-emulation/gcube/gcube-0.4-r2.ebuild b/games-emulation/gcube/gcube-0.4-r2.ebuild
new file mode 100644 (file)
index 0000000..6194fc6
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic
+
+DESCRIPTION="Gamecube emulator"
+HOMEPAGE="http://gcube.exemu.net/"
+SRC_URI="http://gcube.exemu.net/downloads/${P}-src.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+       virtual/opengl
+       media-libs/libsdl[joystick,opengl,sound,video]
+       virtual/jpeg:0
+       sys-libs/ncurses:0=
+       sys-libs/zlib
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PV}"
+
+src_prepare() {
+       default
+
+       sed -i -e '/^CFLAGS=-g/d' Makefile.rules || die
+
+       eapply "${FILESDIR}"/${P}-ldflags.patch \
+               "${FILESDIR}"/${P}-underlink.patch \
+               "${FILESDIR}"/${P}-gcc47.patch
+
+       sed -i -e '/^CC=/d' Makefile || die
+
+       append-cflags -std=gnu89 # build with gcc5 (bug #570504)
+}
+
+src_install() {
+       local x
+
+       dobin gcmap gcube
+       for x in bin2dol isopack thpview tplx ; do
+               newbin ${x} ${PN}-${x}
+       done
+
+       einstalldocs
+}