commit:     2b96c435dc01fed949e8dedf3beb0fe82b32c9f3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  6 02:15:06 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr  6 18:18:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b96c435

games-rpg/dear-esther: port to EAPI 7, games.eclass--

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

 ...30608.ebuild => dear-esther-20130608-r1.ebuild} | 36 ++++++++++------------
 1 file changed, 17 insertions(+), 19 deletions(-)

diff --git a/games-rpg/dear-esther/dear-esther-20130608.ebuild 
b/games-rpg/dear-esther/dear-esther-20130608-r1.ebuild
similarity index 68%
rename from games-rpg/dear-esther/dear-esther-20130608.ebuild
rename to games-rpg/dear-esther/dear-esther-20130608-r1.ebuild
index 9786f2de6ba..b2a07780a45 100644
--- a/games-rpg/dear-esther/dear-esther-20130608.ebuild
+++ b/games-rpg/dear-esther/dear-esther-20130608-r1.ebuild
@@ -1,35 +1,37 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-# TODO: unbundle libSDL2
+EAPI=7
 
-EAPI=5
-inherit eutils gnome2-utils unpacker games
+inherit desktop gnome2-utils unpacker wrapper
 
 TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}"
 DESCRIPTION="Ghost story, told using first-person gaming technologies"
 HOMEPAGE="http://dear-esther.com/";
 SRC_URI="dearesther-linux-${TIMESTAMP}-bin"
+S="${WORKDIR}"/data
 
 LICENSE="all-rights-reserved"
 SLOT="0"
 KEYWORDS="-* ~amd64 ~x86"
-IUSE=""
+
 RESTRICT="bindist fetch splitdebug"
 
-MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
-QA_PREBUILT="${MYGAMEDIR#/}/dearesther_linux
-       ${MYGAMEDIR#/}/bin/*.so*"
+MYGAMEDIR=opt/${PN}
+QA_PREBUILT="
+       ${MYGAMEDIR#/}/dearesther_linux
+       ${MYGAMEDIR#/}/bin/*.so*
+"
 
-DEPEND="app-arch/unzip"
+# TODO: unbundle libSDL2
 RDEPEND="
        >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
        >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
        >=media-libs/openal-1.15.1[abi_x86_32(-)]
        x11-libs/libX11[abi_x86_32(-)]
-       virtual/opengl[abi_x86_32(-)]"
-
-S=${WORKDIR}/data
+       virtual/opengl[abi_x86_32(-)]
+"
+BDEPEND="app-arch/unzip"
 
 pkg_nofetch() {
        einfo "Please buy & download ${SRC_URI} from:"
@@ -43,27 +45,23 @@ src_unpack() {
 }
 
 src_install() {
-       insinto "${MYGAMEDIR}"
+       insinto ${MYGAMEDIR}
        doins -r bin dearesther platform dearesther_linux
 
        doicon -s 256 dearesther.png
        make_desktop_entry "${PN}" "Dear Esther" dearesther
-       games_make_wrapper ${PN} "./dearesther_linux -game dearesther" 
"${MYGAMEDIR}" "${MYGAMEDIR}/bin"
+       make_wrapper ${PN} "./dearesther_linux -game dearesther" "${MYGAMEDIR}" 
"${MYGAMEDIR}/bin"
 
        dodoc README-linux.txt
 
-       fperms +x "${MYGAMEDIR}"/dearesther_linux
-
-       prepgamesdirs
+       fperms +x ${MYGAMEDIR}/dearesther_linux
 }
 
 pkg_preinst() {
-       games_pkg_preinst
        gnome2_icon_savelist
 }
 
 pkg_postinst() {
-       games_pkg_postinst
        gnome2_icon_cache_update
 }
 

Reply via email to