public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/wasteland2/
Date: Tue,  6 Apr 2021 22:54:44 +0000 (UTC)	[thread overview]
Message-ID: <1617749674.a3481884746f4d1d37d2480f6e5a3f02764436fe.sam@gentoo> (raw)

commit:     a3481884746f4d1d37d2480f6e5a3f02764436fe
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  6 22:50:18 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr  6 22:54:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3481884

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

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

 ...9.0.13.ebuild => wasteland2-1.9.0.13-r1.ebuild} | 31 +++++++++-------------
 1 file changed, 12 insertions(+), 19 deletions(-)

diff --git a/games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild b/games-rpg/wasteland2/wasteland2-1.9.0.13-r1.ebuild
similarity index 82%
rename from games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild
rename to games-rpg/wasteland2/wasteland2-1.9.0.13-r1.ebuild
index b8ddb7e9b2e..0b6cef86831 100644
--- a/games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild
+++ b/games-rpg/wasteland2/wasteland2-1.9.0.13-r1.ebuild
@@ -1,21 +1,23 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit eutils gnome2-utils check-reqs games
+CHECKREQS_DISK_BUILD="22000M"
+CHECKREQS_DISK_USR="21600M"
+inherit check-reqs desktop gnome2-utils wrapper
 
 DESCRIPTION="Sequel to 1988 Wasteland, post-apocalyptic computer RPG inspiration for Fallout"
 HOMEPAGE="https://wasteland.inxile-entertainment.com/"
 SRC_URI="gog_wasteland_2_${PV}.tar.gz"
+S="${WORKDIR}/Wasteland 2"
 
 LICENSE="all-rights-reserved"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 RESTRICT="bindist fetch mirror"
 
-QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/*"
+QA_PREBUILT="opt/${PN}/*"
 
 RDEPEND="
 	>=dev-libs/atk-2.12.0-r1[abi_x86_32(-)]
@@ -34,11 +36,6 @@ RDEPEND="
 	virtual/opengl
 "
 
-S="${WORKDIR}/Wasteland 2"
-
-CHECKREQS_DISK_BUILD="22000M"
-CHECKREQS_DISK_USR="21600M"
-
 pkg_nofetch() {
 	einfo
 	einfo "Please buy Wasteland 2"
@@ -53,30 +50,26 @@ pkg_nofetch() {
 }
 
 src_install() {
-	local dir=${GAMES_PREFIX_OPT}/${PN}
+	local dir=opt/${PN}
 
 	# over 20GB of data
-	dodir "${dir}"
-	mv game/WL2_Data "${D%/}${dir}"/ || die
-	exeinto "${dir}"
+	dodir ${dir}
+	mv game/WL2_Data "${ED}/${dir}"/ || die
+	exeinto ${dir}
 	doexe game/WL2
 
-	games_make_wrapper ${PN} ./WL2 "${dir}"
+	make_wrapper ${PN} ./WL2 "${dir}"
 	newicon -s 256 support/gog-wasteland-2.png ${PN}.png
 	make_desktop_entry ${PN} "Wasteland 2"
 
 	dodoc docs/*.pdf
-
-	prepgamesdirs
 }
 
 pkg_preinst() {
-	games_pkg_preinst
 	gnome2_icon_savelist
 }
 
 pkg_postinst() {
-	games_pkg_postinst
 	gnome2_icon_cache_update
 }
 


             reply	other threads:[~2021-04-06 22:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06 22:54 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-18  5:15 [gentoo-commits] repo/gentoo:master commit in: games-rpg/wasteland2/ Ionen Wolkens
2021-04-10  6:31 Sam James
2018-12-19 14:31 Ben Kohler
2018-05-29 20:17 Michał Górny
2017-12-01 19:31 David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1617749674.a3481884746f4d1d37d2480f6e5a3f02764436fe.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox