commit:     8e425bad1f85cff1d86e657e630c9b1d687bc7ec
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 21 20:38:01 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Nov 21 20:38:01 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e425bad

games-arcade/spout: Port to EAPI 7

Closes: https://bugs.gentoo.org/707266
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../spout/files/spout-1.3-fno-common.patch         | 18 ++++++++++++
 games-arcade/spout/spout-1.3-r1.ebuild             | 34 ++++++++++++----------
 2 files changed, 36 insertions(+), 16 deletions(-)

diff --git a/games-arcade/spout/files/spout-1.3-fno-common.patch 
b/games-arcade/spout/files/spout-1.3-fno-common.patch
new file mode 100644
index 00000000000..37c1098b082
--- /dev/null
+++ b/games-arcade/spout/files/spout-1.3-fno-common.patch
@@ -0,0 +1,18 @@
+--- a/piece.c
++++ b/piece.c
+@@ -11,6 +11,7 @@
+ 
+ SDL_Surface *video, *layer;
+ SDL_Rect layerRect;
++int zoom, fullscreen;
+ 
+ unsigned char *vBuffer = NULL;
+ 
+--- a/piece.h
++++ b/piece.h
+@@ -53,4 +53,4 @@
+ 
+ int pcePadGet ();
+ 
+-int zoom, fullscreen;
++extern int zoom, fullscreen;

diff --git a/games-arcade/spout/spout-1.3-r1.ebuild 
b/games-arcade/spout/spout-1.3-r1.ebuild
index 876b18d5568..2057b0f1b3b 100644
--- a/games-arcade/spout/spout-1.3-r1.ebuild
+++ b/games-arcade/spout/spout-1.3-r1.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
+
 inherit desktop readme.gentoo-r1
 
 MY_P="spout-unix-${PV}"
+
 DESCRIPTION="Abstract Japanese caveflier / shooter"
 HOMEPAGE="http://freshmeat.net/projects/spout/";
 SRC_URI="http://rohanpm.net/files/old/${MY_P}.tar.bz2";
@@ -12,31 +14,31 @@ SRC_URI="http://rohanpm.net/files/old/${MY_P}.tar.bz2";
 LICENSE="LGPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
 DEPEND=">=media-libs/libsdl-1.2.6"
 RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/${MY_P}"
 
-DISABLE_AUTOFORMATTING="yes"
-DOC_CONTENTS="
-To play in fullscreen mode, do 'spout f'.
-To play in a greater resolution, do 'spout x', where
-x is an integer; the larger x is, the higher the resolution.
-
-To play:
-* Accelerate - spacebar, enter, z, x
-* Pause - escape
-* Exit - shift+escape
-* Rotate - left or right
-"
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
 
 src_install() {
        dobin spout
+       einstalldocs
+
        doicon spout.png
        make_desktop_entry spout "Spout"
-       einstalldocs
+
+       local DOC_CONTENTS="
+       To play in fullscreen mode, do 'spout f'.
+       To play in a greater resolution, do 'spout x', where
+       x is an integer; the larger x is, the higher the resolution.
+
+       To play:
+       * Accelerate - spacebar, enter, z, x
+       * Pause - escape
+       * Exit - shift+escape
+       * Rotate - left or right"
        readme.gentoo_create_doc
 }
 

Reply via email to