commit:     0bbb2095f42a698fd08cf3b5291cabc97252f5d7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 05:29:59 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 06:32:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bbb2095

games-arcade/dynamitejack: port to EAPI 7, games.eclass-- (needs runtime check)

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

 ...k-1.0.23-r1.ebuild => dynamitejack-1.0.23-r2.ebuild} | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild 
b/games-arcade/dynamitejack/dynamitejack-1.0.23-r2.ebuild
similarity index 88%
rename from games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild
rename to games-arcade/dynamitejack/dynamitejack-1.0.23-r2.ebuild
index 9929eac3aad..90542affce2 100644
--- a/games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild
+++ b/games-arcade/dynamitejack/dynamitejack-1.0.23-r2.ebuild
@@ -1,22 +1,24 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # TODO: icon
 
-EAPI=5
-inherit eutils games
+EAPI=7
+
+inherit desktop wrapper
 
 DESCRIPTION="A stealth game with bombs in glorious 2D"
 HOMEPAGE="http://www.galcon.com/dynamitejack/";
 SRC_URI="${P}.tgz"
+S="${WORKDIR}"/${PN}
 
 LICENSE="all-rights-reserved"
 SLOT="0"
 KEYWORDS="-* ~amd64 ~x86"
-IUSE=""
+
 RESTRICT="bindist fetch splitdebug"
 
-MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+MYGAMEDIR=/opt/${PN}
 QA_PREBUILT="${MYGAMEDIR#/}/bin/*"
 
 # linked to pulseaudio
@@ -40,8 +42,6 @@ RDEPEND="
        >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
        >=x11-libs/libXtst-1.2.1-r1[abi_x86_32(-)]"
 
-S=${WORKDIR}/${PN}
-
 pkg_nofetch() {
        einfo "Please buy & download ${SRC_URI} from:"
        einfo "  ${HOMEPAGE}"
@@ -59,9 +59,8 @@ src_install() {
        insinto "${MYGAMEDIR}"
        doins -r *
 
-       games_make_wrapper ${PN} "./main" "${MYGAMEDIR}/bin"
+       make_wrapper ${PN} "./main" "${MYGAMEDIR}/bin"
        make_desktop_entry ${PN}
 
        fperms +x "${MYGAMEDIR}"/bin/main
-       prepgamesdirs
 }

Reply via email to