commit:     d6dfb128d98288dbf9d8b2a1be24cf1acb766e36
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 00:42:25 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 06:32:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6dfb128

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

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

 .../{betna-0.9.7.ebuild => betna-0.9.7-r1.ebuild}  | 26 ++++++++++++++--------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/games-arcade/betna/betna-0.9.7.ebuild 
b/games-arcade/betna/betna-0.9.7-r1.ebuild
similarity index 80%
rename from games-arcade/betna/betna-0.9.7.ebuild
rename to games-arcade/betna/betna-0.9.7-r1.ebuild
index 57c0d775c4d..0aaf6590200 100644
--- a/games-arcade/betna/betna-0.9.7.ebuild
+++ b/games-arcade/betna/betna-0.9.7-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 eutils games
+EAPI=7
+
+inherit desktop toolchain-funcs
 
 DESCRIPTION="Defend your volcano from the attacking ants by firing 
rocks/bullets at them"
 HOMEPAGE="http://koti.mbnet.fi/makegho/c/betna/";
@@ -11,15 +12,16 @@ SRC_URI="http://koti.mbnet.fi/makegho/c/betna/${P}.tgz";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
 DEPEND="media-libs/libsdl[video]"
 RDEPEND="${DEPEND}"
 
 src_prepare() {
+       default
+
        sed -i \
                -e '/blobprintf.*char msg/s/char msg/const char msg/' \
-               -e "s:images/:${GAMES_DATADIR}/${PN}/:" \
+               -e "s:images/:/var/lib/${PN}/:" \
                src/main.cpp || die
 
        sed -i \
@@ -30,17 +32,23 @@ src_prepare() {
                Makefile || die
 }
 
+src_configure() {
+       tc-export CXX
+}
+
 src_compile() {
        emake clean
        emake
 }
 
 src_install() {
-       dogamesbin betna
-       insinto "${GAMES_DATADIR}"/${PN}
+       dobin betna
+       dodoc README Q\&A
+
+       insinto /var/lib/${PN}
        doins images/*
+
        newicon images/target.bmp ${PN}.bmp
+
        make_desktop_entry ${PN} Betna /usr/share/pixmaps/${PN}.bmp
-       dodoc README Q\&A
-       prepgamesdirs
 }

Reply via email to