commit:     9347810a17ebd9f27fe225c9414ce382587e1589
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 05:33:32 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 06:32:48 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9347810a

games-roguelike/adom: port to EAPI 7, games.eclass--

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

 .../{adom-1.1.1-r1.ebuild => adom-1.1.1-r2.ebuild} | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/games-roguelike/adom/adom-1.1.1-r1.ebuild 
b/games-roguelike/adom/adom-1.1.1-r2.ebuild
similarity index 57%
rename from games-roguelike/adom/adom-1.1.1-r1.ebuild
rename to games-roguelike/adom/adom-1.1.1-r2.ebuild
index 02e9d5aacfe..b67288efa3f 100644
--- a/games-roguelike/adom/adom-1.1.1-r1.ebuild
+++ b/games-roguelike/adom/adom-1.1.1-r2.ebuild
@@ -1,36 +1,36 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils games
+EAPI=7
+
+inherit edos2unix
 
 DESCRIPTION="Ancient Domains Of Mystery rogue-like game"
 HOMEPAGE="https://www.adom.de/";
 SRC_URI="https://www.adom.de/adom/download/linux/${P//.}-elf.tar.gz";
+S="${WORKDIR}"/${PN}
 
 LICENSE="adom"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
-RESTRICT="strip" #bug #137340
-QA_FLAGS_IGNORED="${GAMES_PREFIX_OPT:1}/bin/adom"
 
-RDEPEND="sys-libs/ncurses-compat:5[abi_x86_32(-)]"
+# bug #137340
+RESTRICT="strip"
+QA_FLAGS_IGNORED="/opt/bin/adom"
 
-S=${WORKDIR}/${PN}
+RDEPEND="sys-libs/ncurses-compat:5[abi_x86_32(-)]"
 
 src_install() {
-       exeinto "${GAMES_PREFIX_OPT}/bin"
+       exeinto /opt/bin
        doexe adom
 
-       keepdir "${GAMES_STATEDIR}/${PN}"
-       echo "${GAMES_STATEDIR}/${PN}" > adom_ds.cfg
        insinto /etc
+       echo "${EPREFIX}"/var/lib/${PN} > adom_ds.cfg || die
        doins adom_ds.cfg
 
        edos2unix adomfaq.txt
        dodoc adomfaq.txt manual.doc readme.1st
 
-       prepgamesdirs
-       fperms g+w "${GAMES_STATEDIR}/${PN}"
+       keepdir /var/lib/${PN}
+       fperms g+w /var/lib/${PN}
 }

Reply via email to