Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/gngeo/files/, games-emulation/gngeo/
Date: Sun, 29 Apr 2018 11:26:57
Message-Id: 1525001158.a1dbc7b3488d5eb526d980b9ec764a50d1f26e05.pacho@gentoo
1 commit: a1dbc7b3488d5eb526d980b9ec764a50d1f26e05
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 10:08:50 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 11:25:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1dbc7b3
7
8 games-emulation/gngeo: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-emulation/gngeo/Manifest | 2 +
13 games-emulation/gngeo/files/gngeo-0.8-cflags.patch | 4 +-
14 .../gngeo/files/gngeo-0.8-concurrentMake.patch | 4 +-
15 .../gngeo/files/gngeo-0.8-execstacks.patch | 40 ++++++++++----------
16 games-emulation/gngeo/gngeo-0.8-r1.ebuild | 43 ++++++++++++++++++++++
17 5 files changed, 69 insertions(+), 24 deletions(-)
18
19 diff --git a/games-emulation/gngeo/Manifest b/games-emulation/gngeo/Manifest
20 new file mode 100644
21 index 00000000000..b4560bf535a
22 --- /dev/null
23 +++ b/games-emulation/gngeo/Manifest
24 @@ -0,0 +1,2 @@
25 +DIST gngeo-0.8.tar.gz 1043579 BLAKE2B b4d1ffdb53e32ea25ed743af113573ce9ebd9f864bff1fed88797573141aecd3a2f799731316ced19892b9e45a334c8a8b59593fce4ec5651754bf80196c9e13 SHA512 4301e0f48afd8686cdc45bd8c3e7b724f4ab7a2482567c7fe99ee8960f652dbcefb00fcdd7071d85b02636a9ae9795d03169ffc79e8ae6f4c5515a5a53c090c7
26 +DIST gngeo.png 1488 BLAKE2B e474aaec3f9d79b83ecb3519680b172cfecbca27931bb3a039d6ee46c53737557ca2c110b22d0f974840039e465b7bfafa364ae2076f9ea785858099fe402922 SHA512 bc0403cf06fd1095095d87e5e6b8cd8d9e018a2a5b20f7168935d0c48d288af55bd98a72150f3c6d6089646a0780b65ff24f135bf5a680690af160c9be8945e5
27
28 diff --git a/games-emulation/gngeo/files/gngeo-0.8-cflags.patch b/games-emulation/gngeo/files/gngeo-0.8-cflags.patch
29 index 1a4892abae9..0dcc3e7c5bf 100644
30 --- a/games-emulation/gngeo/files/gngeo-0.8-cflags.patch
31 +++ b/games-emulation/gngeo/files/gngeo-0.8-cflags.patch
32 @@ -1,5 +1,5 @@
33 ---- configure.in.orig 2016-03-31 04:15:45.913917791 -0400
34 -+++ configure.in 2016-03-31 04:16:23.447607551 -0400
35 +--- a/configure.in.orig 2016-03-31 04:15:45.913917791 -0400
36 ++++ b/configure.in 2016-03-31 04:16:23.447607551 -0400
37 @@ -236,20 +236,12 @@
38 AC_DEFINE(PROCESSOR_INTEL, 1, [Define if you have an x86 processor])
39 ALIGNLONGS=0
40
41 diff --git a/games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch b/games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch
42 index 1afc182c098..f039ecf544d 100644
43 --- a/games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch
44 +++ b/games-emulation/gngeo/files/gngeo-0.8-concurrentMake.patch
45 @@ -1,5 +1,5 @@
46 ---- src/generator68k/Makefile.am.orig 2015-01-23 18:37:37.998723294 -0500
47 -+++ src/generator68k/Makefile.am 2015-01-23 18:38:39.995391133 -0500
48 +--- a/src/generator68k/Makefile.am.orig 2015-01-23 18:37:37.998723294 -0500
49 ++++ b/src/generator68k/Makefile.am 2015-01-23 18:38:39.995391133 -0500
50 @@ -71,9 +71,12 @@
51
52 #def68k : def68k.c
53
54 diff --git a/games-emulation/gngeo/files/gngeo-0.8-execstacks.patch b/games-emulation/gngeo/files/gngeo-0.8-execstacks.patch
55 index 17c576b7d63..a3face06f35 100644
56 --- a/games-emulation/gngeo/files/gngeo-0.8-execstacks.patch
57 +++ b/games-emulation/gngeo/files/gngeo-0.8-execstacks.patch
58 @@ -1,5 +1,5 @@
59 ---- src/effect/2xsaimmx.asm
60 -+++ src/effect/2xsaimmx.asm
61 +--- a/src/effect/2xsaimmx.asm
62 ++++ b/src/effect/2xsaimmx.asm
63 @@ -2107,3 +2107,7 @@
64 final1b resb 8
65 final2a resb 8
66 @@ -8,8 +8,8 @@
67 +%ifidn __OUTPUT_FORMAT__,elf
68 +section .note.GNU-stack noalloc noexec nowrite progbits
69 +%endif
70 ---- src/effect/effect_i386.asm
71 -+++ src/effect/effect_i386.asm
72 +--- a/src/effect/effect_i386.asm
73 ++++ b/src/effect/effect_i386.asm
74 @@ -88,3 +88,7 @@
75 emms
76
77 @@ -18,8 +18,8 @@
78 +%ifidn __OUTPUT_FORMAT__,elf
79 +section .note.GNU-stack noalloc noexec nowrite progbits
80 +%endif
81 ---- src/effect/hq2x16.asm
82 -+++ src/effect/hq2x16.asm
83 +--- a/src/effect/hq2x16.asm
84 ++++ b/src/effect/hq2x16.asm
85 @@ -1935,3 +1935,7 @@
86 dd ..@cross8, ..@flag0, ..@flag0, ..@flag0,
87 dd ..@flag0, ..@flag0, ..@flag0, ..@flag0
88 @@ -28,8 +28,8 @@
89 +%ifidn __OUTPUT_FORMAT__,elf
90 +section .note.GNU-stack noalloc noexec nowrite progbits
91 +%endif
92 ---- src/effect/hq3x16.asm
93 -+++ src/effect/hq3x16.asm
94 +--- a/src/effect/hq3x16.asm
95 ++++ b/src/effect/hq3x16.asm
96 @@ -2520,3 +2520,7 @@
97 dd ..@cross8, ..@flag0, ..@flag0, ..@flag0,
98 dd ..@flag0, ..@flag0, ..@flag0, ..@flag0
99 @@ -38,8 +38,8 @@
100 +%ifidn __OUTPUT_FORMAT__,elf
101 +section .note.GNU-stack noalloc noexec nowrite progbits
102 +%endif
103 ---- src/memcpy.S
104 -+++ src/memcpy.S
105 +--- a/src/memcpy.S
106 ++++ b/src/memcpy.S
107 @@ -495,4 +495,8 @@
108
109 Lmemcpy_bsrcul1l4:
110 @@ -51,8 +51,8 @@
111 +#ifdef __ELF__
112 +.section .note.GNU-stack,"",@progbits
113 +#endif
114 ---- src/raze/Makefile.am
115 -+++ src/raze/Makefile.am
116 +--- a/src/raze/Makefile.am
117 ++++ b/src/raze/Makefile.am
118 @@ -20,7 +20,7 @@
119 $(srcdir)/strip_ $< $@
120
121 @@ -62,8 +62,8 @@
122
123 # This assembles the file, once it's been pre-processed
124 raze.o: raze2.asm
125 ---- src/raze/raze.asm
126 -+++ src/raze/raze.asm
127 +--- a/src/raze/raze.asm
128 ++++ b/src/raze/raze.asm
129 @@ -4259,3 +4259,6 @@
130
131 ;- the end ------------------------------------------------------------------;
132 @@ -71,8 +71,8 @@
133 +%ifidn ___OUTPUT_FORMAT__,elf
134 +section .note.GNU-stack noalloc noexec nowrite progbits
135 +%endif
136 ---- src/screen_i386.asm
137 -+++ src/screen_i386.asm
138 +--- a/src/screen_i386.asm
139 ++++ b/src/screen_i386.asm
140 @@ -96,3 +96,6 @@
141 endproc
142
143 @@ -80,8 +80,8 @@
144 +%ifidn __OUTPUT_FORMAT__,elf
145 +section .note.GNU-stack noalloc noexec nowrite progbits
146 +%endif
147 ---- src/star/star.c
148 -+++ src/star/star.c
149 +--- a/src/star/star.c
150 ++++ b/src/star/star.c
151 @@ -2431,6 +2431,10 @@
152 */
153 static void suffixes(void) {
154 @@ -93,8 +93,8 @@
155 }
156
157 /****************************************************************************
158 ---- src/video_i386.asm
159 -+++ src/video_i386.asm
160 +--- a/src/video_i386.asm
161 ++++ b/src/video_i386.asm
162 @@ -86,3 +86,7 @@
163
164 popa
165
166 diff --git a/games-emulation/gngeo/gngeo-0.8-r1.ebuild b/games-emulation/gngeo/gngeo-0.8-r1.ebuild
167 new file mode 100644
168 index 00000000000..3e7f2be86fc
169 --- /dev/null
170 +++ b/games-emulation/gngeo/gngeo-0.8-r1.ebuild
171 @@ -0,0 +1,43 @@
172 +# Copyright 1999-2018 Gentoo Foundation
173 +# Distributed under the terms of the GNU General Public License v2
174 +
175 +EAPI=6
176 +inherit autotools desktop flag-o-matic
177 +
178 +DESCRIPTION="A NeoGeo emulator"
179 +HOMEPAGE="https://code.google.com/p/gngeo/"
180 +SRC_URI="https://gngeo.googlecode.com/files/${P}.tar.gz
181 + https://storage.googleapis.com/google-code-archive/v2/code.google.com/gngeo/logo.png -> ${PN}.png"
182 +
183 +LICENSE="GPL-2"
184 +SLOT="0"
185 +KEYWORDS="~amd64 ~x86"
186 +IUSE=""
187 +
188 +DEPEND="virtual/opengl
189 + media-libs/libsdl[joystick,opengl,sound,video]
190 + sys-libs/zlib[minizip]"
191 +RDEPEND="${DEPEND}"
192 +
193 +src_prepare() {
194 + default
195 + eapply \
196 + "${FILESDIR}"/${P}-execstacks.patch \
197 + "${FILESDIR}"/${P}-zlib.patch \
198 + "${FILESDIR}"/${P}-concurrentMake.patch \
199 + "${FILESDIR}"/${P}-cflags.patch
200 + mv configure.in configure.ac || die
201 + eautoreconf
202 + append-cflags -std=gnu89 # build with gcc5 (bug #571056)
203 +}
204 +
205 +src_configure() {
206 + econf --disable-i386asm
207 +}
208 +
209 +src_install() {
210 + DOCS=( AUTHORS FAQ NEWS README* TODO sample_gngeorc )
211 + default
212 + doicon "${DISTDIR}"/${PN}.png
213 + make_desktop_entry ${PN}
214 +}