public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Pacho Ramos" <pacho@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/gcube/, games-emulation/gcube/files/
Date: Sun, 29 Apr 2018 11:26:47 +0000 (UTC)	[thread overview]
Message-ID: <1525001137.9f88f5db5b127935744d3f310f6e1023f3439c69.pacho@gentoo> (raw)

commit:     9f88f5db5b127935744d3f310f6e1023f3439c69
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 29 09:38:18 2018 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Apr 29 11:25:37 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f88f5db

games-emulation/gcube: Stop using games.eclass

Package-Manager: Portage-2.3.31, Repoman-2.3.9

 games-emulation/gcube/files/gcube-0.4-gcc47.patch  |  4 +-
 .../gcube/files/gcube-0.4-ldflags.patch            |  4 +-
 .../gcube/files/gcube-0.4-underlink.patch          |  4 +-
 games-emulation/gcube/gcube-0.4-r2.ebuild          | 50 ++++++++++++++++++++++
 4 files changed, 56 insertions(+), 6 deletions(-)

diff --git a/games-emulation/gcube/files/gcube-0.4-gcc47.patch b/games-emulation/gcube/files/gcube-0.4-gcc47.patch
index b459a4e2403..48ac167a1f0 100644
--- a/games-emulation/gcube/files/gcube-0.4-gcc47.patch
+++ b/games-emulation/gcube/files/gcube-0.4-gcc47.patch
@@ -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

diff --git a/games-emulation/gcube/files/gcube-0.4-ldflags.patch b/games-emulation/gcube/files/gcube-0.4-ldflags.patch
index 169472ee185..b4a64f16aed 100644
--- a/games-emulation/gcube/files/gcube-0.4-ldflags.patch
+++ b/games-emulation/gcube/files/gcube-0.4-ldflags.patch
@@ -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
  

diff --git a/games-emulation/gcube/files/gcube-0.4-underlink.patch b/games-emulation/gcube/files/gcube-0.4-underlink.patch
index f1cff91cb15..f4b3d5b6969 100644
--- a/games-emulation/gcube/files/gcube-0.4-underlink.patch
+++ b/games-emulation/gcube/files/gcube-0.4-underlink.patch
@@ -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
index 00000000000..6194fc6a210
--- /dev/null
+++ b/games-emulation/gcube/gcube-0.4-r2.ebuild
@@ -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
+}


                 reply	other threads:[~2018-04-29 11:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1525001137.9f88f5db5b127935744d3f310f6e1023f3439c69.pacho@gentoo \
    --to=pacho@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox