public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-emulation/generator/files/, games-emulation/generator/
@ 2019-10-31  7:52 Sergei Trofimovich
  0 siblings, 0 replies; only message in thread
From: Sergei Trofimovich @ 2019-10-31  7:52 UTC (permalink / raw
  To: gentoo-commits

commit:     b6f075cae0bd3a804fffb076fc803180830f4e03
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 31 07:52:07 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Oct 31 07:52:19 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6f075ca

games-emulation/generator: tweak for gcc-9

Fixed-by: kleph
Closes: https://bugs.gentoo.org/698944
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 .../generator/files/generator-0.35_p4-gcc-9.patch  | 22 ++++++++++++++++++++++
 .../generator/generator-0.35_p4-r1.ebuild          | 16 +++++++---------
 2 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/games-emulation/generator/files/generator-0.35_p4-gcc-9.patch b/games-emulation/generator/files/generator-0.35_p4-gcc-9.patch
new file mode 100644
index 00000000000..7b8eeafb715
--- /dev/null
+++ b/games-emulation/generator/files/generator-0.35_p4-gcc-9.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/698944
+
+--- a/main/vdp.c
++++ b/main/vdp.c
+@@ -87,7 +87,7 @@ void vdp_describe(void);
+ void vdp_eventinit(void);
+ void vdp_layer_simple(unsigned int layer, unsigned int priority,
+                       uint8 *fielddata, unsigned int lineoffset);
+-inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags,
++static void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags,
+                          uint8 *cellloc, unsigned int lineoffset);
+ void vdp_sprites(unsigned int line, uint8 *pridata, uint8 *outdata);
+ int vdp_sprite_simple(unsigned int priority, uint8 *framedata,
+@@ -1733,7 +1733,7 @@ void vdp_endfield(void)
+      vdp_event_endline); */
+ }
+ 
+-inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags,
++static void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags,
+                          uint8 *cellloc, unsigned int lineoffset)
+ {
+   int y, x;

diff --git a/games-emulation/generator/generator-0.35_p4-r1.ebuild b/games-emulation/generator/generator-0.35_p4-r1.ebuild
index 3c6fe06f5de..54614d750d7 100644
--- a/games-emulation/generator/generator-0.35_p4-r1.ebuild
+++ b/games-emulation/generator/generator-0.35_p4-r1.ebuild
@@ -23,12 +23,15 @@ RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=(
+	"${FILESDIR}"/${P}-configure.patch
+	"${FILESDIR}"/${P}-underlink.patch
+	"${FILESDIR}"/${P}-inline.patch
+	"${FILESDIR}"/${P}-gcc-9.patch
+)
+
 src_prepare() {
 	default
-	eapply \
-		"${FILESDIR}"/${P}-configure.patch \
-		"${FILESDIR}"/${P}-underlink.patch \
-		"${FILESDIR}"/${P}-inline.patch
 
 	sed -i -e 's/@GTK_CFLAGS@//g' main/Makefile.am || die
 	eautoreconf
@@ -43,11 +46,6 @@ src_configure() {
 		$(use_with sdlaudio sdl-audio)
 }
 
-src_compile() {
-	[[ -f Makefile ]] && emake clean
-	emake -j1
-}
-
 src_install() {
 	dobin main/generator-sdl
 	dodoc AUTHORS ChangeLog NEWS README TODO docs/*


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-31  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-31  7:52 [gentoo-commits] repo/gentoo:master commit in: games-emulation/generator/files/, games-emulation/generator/ Sergei Trofimovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox