* [gentoo-commits] repo/gentoo:master commit in: games-emulation/gnuboy/, games-emulation/gnuboy/files/
@ 2018-04-29 11:26 Pacho Ramos
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2018-04-29 11:26 UTC (permalink / raw
To: gentoo-commits
commit: 1c7f47eda719bb43499bec5dffc3f3e7d3ca95a1
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 29 10:12:28 2018 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Apr 29 11:26:01 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c7f47ed
games-emulation/gnuboy: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
.../gnuboy/files/gnuboy-1.0.3-exec-stack.patch | 12 ++---
| 36 ++++++-------
games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild | 62 ++++++++++++++++++++++
3 files changed, 86 insertions(+), 24 deletions(-)
diff --git a/games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch b/games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch
index b8059f915f6..a263ee49599 100644
--- a/games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch
+++ b/games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch
@@ -1,5 +1,5 @@
---- asm/i386/cpu.s
-+++ asm/i386/cpu.s
+--- a/asm/i386/cpu.s
++++ b/asm/i386/cpu.s
@@ -2428,3 +2428,6 @@
@@ -7,8 +7,8 @@
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
---- asm/i386/lcd.s
-+++ asm/i386/lcd.s
+--- a/asm/i386/lcd.s
++++ b/asm/i386/lcd.s
@@ -288,3 +288,6 @@
@@ -16,8 +16,8 @@
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
---- asm/i386/refresh.s
-+++ asm/i386/refresh.s
+--- a/asm/i386/refresh.s
++++ b/asm/i386/refresh.s
@@ -283,3 +283,6 @@
--git a/games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch b/games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch
index b0dd24a8e50..543bd2434ee 100644
--- a/games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch
+++ b/games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch
@@ -1,7 +1,7 @@
# -ansi breaks <linux/joystick.h>
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
@@ -133,7 +133,7 @@
if test "$enable_warnings" = yes ; then
case "$CC" in *gcc*)
@@ -11,8 +11,8 @@
*)
AC_MSG_RESULT(disabling warnings for non-gcc compiler) ;;
esac
---- loader.c
-+++ loader.c
+--- a/loader.c
++++ b/loader.c
@@ -11,7 +11,6 @@
#include <stdlib.h>
#include <string.h>
@@ -21,8 +21,8 @@
static int mbc_table[256] =
{
---- main.c
-+++ main.c
+--- a/main.c
++++ b/main.c
@@ -8,7 +8,6 @@
#include <stdlib.h>
#include <string.h>
@@ -31,8 +31,8 @@
#include <stdarg.h>
#include <signal.h>
---- path.c
-+++ path.c
+--- a/path.c
++++ b/path.c
@@ -5,7 +5,6 @@
#include <stdlib.h>
#include <string.h>
@@ -41,8 +41,8 @@
#ifdef ALT_PATH_SEP
#define SEP ';'
---- rckeys.c
-+++ rckeys.c
+--- a/rckeys.c
++++ b/rckeys.c
@@ -4,7 +4,6 @@
#include <stdlib.h>
#include <string.h>
@@ -51,8 +51,8 @@
#include "defs.h"
#include "rc.h"
---- rcvars.c
-+++ rcvars.c
+--- a/rcvars.c
++++ b/rcvars.c
@@ -5,7 +5,6 @@
#include <stdlib.h>
#include <string.h>
@@ -61,8 +61,8 @@
#include "defs.h"
#include "rc.h"
---- sys/linux/fbdev.c
-+++ sys/linux/fbdev.c
+--- a/sys/linux/fbdev.c
++++ b/sys/linux/fbdev.c
@@ -10,7 +10,6 @@
#include <stdlib.h>
@@ -71,8 +71,8 @@
#include <unistd.h>
#include <sys/mman.h>
#include <linux/fb.h>
---- sys/linux/joy.c
-+++ sys/linux/joy.c
+--- a/sys/linux/joy.c
++++ b/sys/linux/joy.c
@@ -2,7 +2,6 @@
#include <stdio.h>
#include <stdlib.h>
@@ -81,8 +81,8 @@
#include <linux/joystick.h>
#include <sys/types.h>
#include <sys/stat.h>
---- sys/oss/oss.c
-+++ sys/oss/oss.c
+--- a/sys/oss/oss.c
++++ b/sys/oss/oss.c
@@ -2,7 +2,6 @@
#include <stdlib.h>
diff --git a/games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild b/games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild
new file mode 100644
index 00000000000..3c4e37c0783
--- /dev/null
+++ b/games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Gameboy emulator with multiple renderers"
+HOMEPAGE="https://sourceforge.net/projects/gnuboy/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X sdl"
+
+RDEPEND="
+ sdl? ( media-libs/libsdl )
+ !X? ( media-libs/libsdl )
+ X? ( x11-libs/libXext )
+"
+DEPEND="${RDEPEND}
+ X? (
+ x11-proto/xextproto
+ x11-proto/xproto )
+"
+
+src_prepare() {
+ default
+ eapply \
+ "${FILESDIR}"/${P}-exec-stack.patch \
+ "${FILESDIR}"/${P}-linux-headers.patch \
+ "${FILESDIR}"/${P}-include.patch
+
+ mv configure.in configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if ! use X ; then
+ myconf="--with-sdl"
+ fi
+
+ econf \
+ $(use_with X x) \
+ $(use_with sdl) \
+ $(use_enable x86 asm) \
+ ${myconf} \
+ --disable-arch \
+ --disable-optimize
+}
+
+src_install() {
+ for f in sdlgnuboy xgnuboy
+ do
+ if [[ -f ${f} ]] ; then
+ dobin ${f}
+ fi
+ done
+ dodoc README docs/{CHANGES,CONFIG,CREDITS,FAQ,HACKING,WHATSNEW}
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-emulation/gnuboy/, games-emulation/gnuboy/files/
@ 2021-08-19 0:39 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-08-19 0:39 UTC (permalink / raw
To: gentoo-commits
commit: 91aff97f2dac6a7897dff1da831d3d9243955307
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 19 00:17:59 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 19 00:39:00 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91aff97f
games-emulation/gnuboy: update EAPI 6 -> 7, add libsdl[joystick]
Closes: https://bugs.gentoo.org/743100
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../gnuboy/files/gnuboy-1.0.3-include.patch | 5 ++---
games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild | 25 +++++++++++-----------
2 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch b/games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch
index 15573000511..61b776f0008 100644
--- a/games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch
+++ b/games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch
@@ -1,6 +1,5 @@
-diff -ru gnuboy-1.0.3.orig/defs.h gnuboy-1.0.3/defs.h
---- gnuboy-1.0.3.orig/defs.h 2001-01-23 07:04:22.000000000 -0500
-+++ gnuboy-1.0.3/defs.h 2014-07-04 03:56:46.685149736 -0400
+--- a/defs.h
++++ b/defs.h
@@ -4,6 +4,10 @@
#ifndef __DEFS_H__
#define __DEFS_H__
diff --git a/games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild b/games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild
index 177799b9c23..f48d05c9305 100644
--- a/games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild
+++ b/games-emulation/gnuboy/gnuboy-1.0.3-r2.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
+
inherit autotools
DESCRIPTION="Gameboy emulator with multiple renderers"
@@ -12,22 +13,24 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="X sdl"
+REQUIRED_USE="!X? ( sdl )"
RDEPEND="
sdl? ( media-libs/libsdl )
- !X? ( media-libs/libsdl )
X? ( x11-libs/libXext )
"
DEPEND="${RDEPEND}
X? ( x11-base/xorg-proto )
"
+PATCHES=(
+ "${FILESDIR}"/${P}-exec-stack.patch
+ "${FILESDIR}"/${P}-linux-headers.patch
+ "${FILESDIR}"/${P}-include.patch
+)
+
src_prepare() {
default
- eapply \
- "${FILESDIR}"/${P}-exec-stack.patch \
- "${FILESDIR}"/${P}-linux-headers.patch \
- "${FILESDIR}"/${P}-include.patch
mv configure.in configure.ac || die
eautoreconf
@@ -36,10 +39,6 @@ src_prepare() {
src_configure() {
local myconf
- if ! use X ; then
- myconf="--with-sdl"
- fi
-
econf \
$(use_with X x) \
$(use_with sdl) \
@@ -50,11 +49,11 @@ src_configure() {
}
src_install() {
- for f in sdlgnuboy xgnuboy
- do
+ for f in sdlgnuboy xgnuboy; do
if [[ -f ${f} ]] ; then
dobin ${f}
fi
done
+
dodoc README docs/{CHANGES,CONFIG,CREDITS,FAQ,HACKING,WHATSNEW}
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-19 0:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-29 11:26 [gentoo-commits] repo/gentoo:master commit in: games-emulation/gnuboy/, games-emulation/gnuboy/files/ Pacho Ramos
-- strict thread matches above, loose matches on Subject: below --
2021-08-19 0:39 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox