games-emulation/gngeo: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Sun, 29 Apr 2018 10:08:50 +0000 (12:08 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 29 Apr 2018 11:25:58 +0000 (13:25 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-emulation/gngeo/Manifest [new file with mode: 0644]
games-emulation/gngeo/files/gngeo-0.8-cflags.patch
games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch
games-emulation/gngeo/files/gngeo-0.8-execstacks.patch
games-emulation/gngeo/gngeo-0.8-r1.ebuild [new file with mode: 0644]

diff --git a/games-emulation/gngeo/Manifest b/games-emulation/gngeo/Manifest
new file mode 100644 (file)
index 0000000..b4560bf
--- /dev/null
@@ -0,0 +1,2 @@
+DIST gngeo-0.8.tar.gz 1043579 BLAKE2B b4d1ffdb53e32ea25ed743af113573ce9ebd9f864bff1fed88797573141aecd3a2f799731316ced19892b9e45a334c8a8b59593fce4ec5651754bf80196c9e13 SHA512 4301e0f48afd8686cdc45bd8c3e7b724f4ab7a2482567c7fe99ee8960f652dbcefb00fcdd7071d85b02636a9ae9795d03169ffc79e8ae6f4c5515a5a53c090c7
+DIST gngeo.png 1488 BLAKE2B e474aaec3f9d79b83ecb3519680b172cfecbca27931bb3a039d6ee46c53737557ca2c110b22d0f974840039e465b7bfafa364ae2076f9ea785858099fe402922 SHA512 bc0403cf06fd1095095d87e5e6b8cd8d9e018a2a5b20f7168935d0c48d288af55bd98a72150f3c6d6089646a0780b65ff24f135bf5a680690af160c9be8945e5
index 1a4892abae9e5a468572ca80e6a317cc0e205660..0dcc3e7c5bf873587a980023c25fb83cae59ecb5 100644 (file)
@@ -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
index 1afc182c09889701b1533853621aae78967254bd..f039ecf544d934c2c3a7e7870b0fb4f86ec8f5e4 100644 (file)
@@ -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
index 17c576b7d63497147b507cf2bef207c98763fafb..a3face06f35cb19ad4a564ba07eb795fafacc54c 100644 (file)
@@ -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,\r
      dd ..@flag0,  ..@flag0,  ..@flag0,  ..@flag0\r
@@ -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,\r
      dd ..@flag0,  ..@flag0,  ..@flag0,  ..@flag0\r
@@ -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 (file)
index 0000000..3e7f2be
--- /dev/null
@@ -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}
+}