commit:     880b7e4e0c805a1c60899a81c449453a30519b98
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 00:37:23 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 06:32:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=880b7e4e

games-arcade/bomns: port to EAPI 7, games.eclass--

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...{bomns-0.99.2.ebuild => bomns-0.99.2-r1.ebuild} | 35 +++++++++++++---------
 games-arcade/bomns/files/bomns-0.99.2-fpe.patch    |  4 +--
 2 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/games-arcade/bomns/bomns-0.99.2.ebuild 
b/games-arcade/bomns/bomns-0.99.2-r1.ebuild
similarity index 71%
rename from games-arcade/bomns/bomns-0.99.2.ebuild
rename to games-arcade/bomns/bomns-0.99.2-r1.ebuild
index 37632fd1375..bd574f11318 100644
--- a/games-arcade/bomns/bomns-0.99.2.ebuild
+++ b/games-arcade/bomns/bomns-0.99.2-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit autotools flag-o-matic games
+EAPI=7
+
+inherit autotools flag-o-matic
 
 DESCRIPTION="A fast-paced multiplayer deathmatch arcade game"
 HOMEPAGE="http://greenridge.sourceforge.net";
@@ -13,36 +14,42 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="gtk editor"
 
-DEPEND="media-libs/libsdl[video]
+DEPEND="
+       media-libs/libsdl[video]
        media-libs/sdl-mixer
-       gtk? ( x11-libs/gtk+:2 )"
-RDEPEND=${DEPEND}
+       gtk? ( x11-libs/gtk+:2 )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-fpe.patch
+)
 
 src_prepare() {
+       default
+
        sed -i \
                -e "/appicondir/s:\$(prefix):/usr:" \
                -e "/desktopdir/s:\$(prefix):/usr:" \
                $(find icons -name Makefile.am) \
                Makefile.am || die
+
        sed -i \
-               -e "s:\$*[({]prefix[})]/share:${GAMES_DATADIR}:" \
+               -e "s:\$*[({]prefix[})]/share:/var/lib/:" \
                configure.in \
                graphics/Makefile.am \
                levels/Makefile.am \
                sounds/Makefile.am || die
-       epatch "${FILESDIR}"/${P}-fpe.patch
+
+       mv configure.{in,ac} || die
+
        eautoreconf
 }
 
 src_configure() {
        filter-flags -fforce-addr
-       egamesconf \
+       econf \
                --disable-launcher1 \
                $(use_enable gtk launcher2) \
                $(use_enable editor)
 }
-
-src_install() {
-       default
-       prepgamesdirs
-}

diff --git a/games-arcade/bomns/files/bomns-0.99.2-fpe.patch 
b/games-arcade/bomns/files/bomns-0.99.2-fpe.patch
index 3a9e39c241a..273212a4f6e 100644
--- a/games-arcade/bomns/files/bomns-0.99.2-fpe.patch
+++ b/games-arcade/bomns/files/bomns-0.99.2-fpe.patch
@@ -1,5 +1,5 @@
---- src/bomns.cpp.old  2015-01-03 18:44:59.947689613 +0100
-+++ src/bomns.cpp      2015-01-03 18:47:29.854777276 +0100
+--- a/src/bomns.cpp
++++ b/src/bomns.cpp
 @@ -432,7 +432,10 @@
        if(g_bShowFps)
        {

Reply via email to