From d6395f0fdfaa83e86d6765c6879cdc94637d7735 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 5 Apr 2021 17:24:46 +0000 Subject: games-roguelike/adom: add missing inherit, fix games.eclass porting Signed-off-by: Sam James --- games-roguelike/adom/adom-1.1.1-r1.ebuild | 16 +++++++++------- games-roguelike/adom/adom-3.3.3.ebuild | 11 ++++------- 2 files changed, 13 insertions(+), 14 deletions(-) (limited to 'games-roguelike') diff --git a/games-roguelike/adom/adom-1.1.1-r1.ebuild b/games-roguelike/adom/adom-1.1.1-r1.ebuild index 46b385a623a8..970d7dfc438a 100644 --- a/games-roguelike/adom/adom-1.1.1-r1.ebuild +++ b/games-roguelike/adom/adom-1.1.1-r1.ebuild @@ -1,27 +1,29 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 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" -RESTRICT="strip" #bug #137340 +RESTRICT="strip" # bug #137340 RDEPEND="sys-libs/ncurses-compat:5[abi_x86_32(-)]" -S=${WORKDIR}/${PN} - src_install() { - exeinto "/opt/bin" + exeinto /opt/bin doexe adom - keepdir "/var/games/${PN}" - echo "/var/games/${PN}" > adom_ds.cfg + keepdir /var/lib/${PN} + echo /var/lib/${PN} > adom_ds.cfg || die + insinto /etc doins adom_ds.cfg diff --git a/games-roguelike/adom/adom-3.3.3.ebuild b/games-roguelike/adom/adom-3.3.3.ebuild index b798715acff0..7b977d239f35 100644 --- a/games-roguelike/adom/adom-3.3.3.ebuild +++ b/games-roguelike/adom/adom-3.3.3.ebuild @@ -1,28 +1,25 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 MY_P="${PN}_linux_debian" -S="${WORKDIR}/adom" DESCRIPTION="Ancient Domains Of Mystery rogue-like game" HOMEPAGE="https://www.adom.de/" SRC_URI="x86? ( https://www.adom.de/home/download/current/${MY_P}_32_${PV}.tar.gz -> ${P}_x86.tar.gz ) amd64? ( https://www.adom.de/home/download/current/${MY_P}_64_${PV}.tar.gz -> ${P}_amd64.tar.gz )" +S="${WORKDIR}"/adom LICENSE="adom" SLOT="0" KEYWORDS="~amd64 ~x86" RESTRICT="strip" # The executable is pre-stripped -DOCS=( "docs/adomfaq.txt" - "docs/credits.txt" - "docs/manual.txt" - "docs/readme1st.txt" ) +DOCS=( "docs/adomfaq.txt" "docs/credits.txt" "docs/manual.txt" "docs/readme1st.txt" ) src_install() { - exeinto "/opt/bin" + exeinto /opt/bin doexe adom einstalldocs -- cgit v1.2.3-65-gdbad