summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-04-29 12:08:50 +0200
committerPacho Ramos <pacho@gentoo.org>2018-04-29 13:25:58 +0200
commita1dbc7b3488d5eb526d980b9ec764a50d1f26e05 (patch)
tree8b8228f820945c20d72ded1fe10824a70691456a /games-emulation/gngeo
parentgames-emulation/gngeo: Drop old (diff)
downloadgentoo-a1dbc7b3488d5eb526d980b9ec764a50d1f26e05.tar.gz
gentoo-a1dbc7b3488d5eb526d980b9ec764a50d1f26e05.tar.bz2
gentoo-a1dbc7b3488d5eb526d980b9ec764a50d1f26e05.zip
games-emulation/gngeo: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-emulation/gngeo')
-rw-r--r--games-emulation/gngeo/Manifest2
-rw-r--r--games-emulation/gngeo/files/gngeo-0.8-cflags.patch4
-rw-r--r--games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch4
-rw-r--r--games-emulation/gngeo/files/gngeo-0.8-execstacks.patch40
-rw-r--r--games-emulation/gngeo/gngeo-0.8-r1.ebuild43
5 files changed, 69 insertions, 24 deletions
diff --git a/games-emulation/gngeo/Manifest b/games-emulation/gngeo/Manifest
new file mode 100644
index 000000000000..b4560bf535a8
--- /dev/null
+++ b/games-emulation/gngeo/Manifest
@@ -0,0 +1,2 @@
+DIST gngeo-0.8.tar.gz 1043579 BLAKE2B b4d1ffdb53e32ea25ed743af113573ce9ebd9f864bff1fed88797573141aecd3a2f799731316ced19892b9e45a334c8a8b59593fce4ec5651754bf80196c9e13 SHA512 4301e0f48afd8686cdc45bd8c3e7b724f4ab7a2482567c7fe99ee8960f652dbcefb00fcdd7071d85b02636a9ae9795d03169ffc79e8ae6f4c5515a5a53c090c7
+DIST gngeo.png 1488 BLAKE2B e474aaec3f9d79b83ecb3519680b172cfecbca27931bb3a039d6ee46c53737557ca2c110b22d0f974840039e465b7bfafa364ae2076f9ea785858099fe402922 SHA512 bc0403cf06fd1095095d87e5e6b8cd8d9e018a2a5b20f7168935d0c48d288af55bd98a72150f3c6d6089646a0780b65ff24f135bf5a680690af160c9be8945e5
diff --git a/games-emulation/gngeo/files/gngeo-0.8-cflags.patch b/games-emulation/gngeo/files/gngeo-0.8-cflags.patch
index 1a4892abae9e..0dcc3e7c5bf8 100644
--- a/games-emulation/gngeo/files/gngeo-0.8-cflags.patch
+++ b/games-emulation/gngeo/files/gngeo-0.8-cflags.patch
@@ -1,5 +1,5 @@
---- configure.in.orig 2016-03-31 04:15:45.913917791 -0400
-+++ configure.in 2016-03-31 04:16:23.447607551 -0400
+--- a/configure.in.orig 2016-03-31 04:15:45.913917791 -0400
++++ b/configure.in 2016-03-31 04:16:23.447607551 -0400
@@ -236,20 +236,12 @@
AC_DEFINE(PROCESSOR_INTEL, 1, [Define if you have an x86 processor])
ALIGNLONGS=0
diff --git a/games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch b/games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch
index 1afc182c0988..f039ecf544d9 100644
--- a/games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch
+++ b/games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch
@@ -1,5 +1,5 @@
---- src/generator68k/Makefile.am.orig 2015-01-23 18:37:37.998723294 -0500
-+++ src/generator68k/Makefile.am 2015-01-23 18:38:39.995391133 -0500
+--- a/src/generator68k/Makefile.am.orig 2015-01-23 18:37:37.998723294 -0500
++++ b/src/generator68k/Makefile.am 2015-01-23 18:38:39.995391133 -0500
@@ -71,9 +71,12 @@
#def68k : def68k.c
diff --git a/games-emulation/gngeo/files/gngeo-0.8-execstacks.patch b/games-emulation/gngeo/files/gngeo-0.8-execstacks.patch
index 17c576b7d634..a3face06f35c 100644
--- a/games-emulation/gngeo/files/gngeo-0.8-execstacks.patch
+++ b/games-emulation/gngeo/files/gngeo-0.8-execstacks.patch
@@ -1,5 +1,5 @@
---- src/effect/2xsaimmx.asm
-+++ src/effect/2xsaimmx.asm
+--- a/src/effect/2xsaimmx.asm
++++ b/src/effect/2xsaimmx.asm
@@ -2107,3 +2107,7 @@
final1b resb 8
final2a resb 8
@@ -8,8 +8,8 @@
+%ifidn __OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
---- src/effect/effect_i386.asm
-+++ src/effect/effect_i386.asm
+--- a/src/effect/effect_i386.asm
++++ b/src/effect/effect_i386.asm
@@ -88,3 +88,7 @@
emms
@@ -18,8 +18,8 @@
+%ifidn __OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
---- src/effect/hq2x16.asm
-+++ src/effect/hq2x16.asm
+--- a/src/effect/hq2x16.asm
++++ b/src/effect/hq2x16.asm
@@ -1935,3 +1935,7 @@
dd ..@cross8, ..@flag0, ..@flag0, ..@flag0,
dd ..@flag0, ..@flag0, ..@flag0, ..@flag0
@@ -28,8 +28,8 @@
+%ifidn __OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
---- src/effect/hq3x16.asm
-+++ src/effect/hq3x16.asm
+--- a/src/effect/hq3x16.asm
++++ b/src/effect/hq3x16.asm
@@ -2520,3 +2520,7 @@
dd ..@cross8, ..@flag0, ..@flag0, ..@flag0,
dd ..@flag0, ..@flag0, ..@flag0, ..@flag0
@@ -38,8 +38,8 @@
+%ifidn __OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
---- src/memcpy.S
-+++ src/memcpy.S
+--- a/src/memcpy.S
++++ b/src/memcpy.S
@@ -495,4 +495,8 @@
Lmemcpy_bsrcul1l4:
@@ -51,8 +51,8 @@
+#ifdef __ELF__
+.section .note.GNU-stack,"",@progbits
+#endif
---- src/raze/Makefile.am
-+++ src/raze/Makefile.am
+--- a/src/raze/Makefile.am
++++ b/src/raze/Makefile.am
@@ -20,7 +20,7 @@
$(srcdir)/strip_ $< $@
@@ -62,8 +62,8 @@
# This assembles the file, once it's been pre-processed
raze.o: raze2.asm
---- src/raze/raze.asm
-+++ src/raze/raze.asm
+--- a/src/raze/raze.asm
++++ b/src/raze/raze.asm
@@ -4259,3 +4259,6 @@
;- the end ------------------------------------------------------------------;
@@ -71,8 +71,8 @@
+%ifidn ___OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
---- src/screen_i386.asm
-+++ src/screen_i386.asm
+--- a/src/screen_i386.asm
++++ b/src/screen_i386.asm
@@ -96,3 +96,6 @@
endproc
@@ -80,8 +80,8 @@
+%ifidn __OUTPUT_FORMAT__,elf
+section .note.GNU-stack noalloc noexec nowrite progbits
+%endif
---- src/star/star.c
-+++ src/star/star.c
+--- a/src/star/star.c
++++ b/src/star/star.c
@@ -2431,6 +2431,10 @@
*/
static void suffixes(void) {
@@ -93,8 +93,8 @@
}
/****************************************************************************
---- src/video_i386.asm
-+++ src/video_i386.asm
+--- a/src/video_i386.asm
++++ b/src/video_i386.asm
@@ -86,3 +86,7 @@
popa
diff --git a/games-emulation/gngeo/gngeo-0.8-r1.ebuild b/games-emulation/gngeo/gngeo-0.8-r1.ebuild
new file mode 100644
index 000000000000..3e7f2be86fc0
--- /dev/null
+++ b/games-emulation/gngeo/gngeo-0.8-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools desktop flag-o-matic
+
+DESCRIPTION="A NeoGeo emulator"
+HOMEPAGE="https://code.google.com/p/gngeo/"
+SRC_URI="https://gngeo.googlecode.com/files/${P}.tar.gz
+ https://storage.googleapis.com/google-code-archive/v2/code.google.com/gngeo/logo.png -> ${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ media-libs/libsdl[joystick,opengl,sound,video]
+ sys-libs/zlib[minizip]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ eapply \
+ "${FILESDIR}"/${P}-execstacks.patch \
+ "${FILESDIR}"/${P}-zlib.patch \
+ "${FILESDIR}"/${P}-concurrentMake.patch \
+ "${FILESDIR}"/${P}-cflags.patch
+ mv configure.in configure.ac || die
+ eautoreconf
+ append-cflags -std=gnu89 # build with gcc5 (bug #571056)
+}
+
+src_configure() {
+ econf --disable-i386asm
+}
+
+src_install() {
+ DOCS=( AUTHORS FAQ NEWS README* TODO sample_gngeorc )
+ default
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN}
+}