From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/dominions2/
Date: Tue, 6 Apr 2021 22:47:34 +0000 (UTC) [thread overview]
Message-ID: <1617749244.d42b1b8cc9b18b80697f58b025a2405159d0b48f.sam@gentoo> (raw)
commit: d42b1b8cc9b18b80697f58b025a2405159d0b48f
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 6 22:38:32 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 6 22:47:24 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d42b1b8c
games-strategy/dominions2: port to EAPI 7, games.eclass--
Signed-off-by: Sam James <sam <AT> gentoo.org>
...ions2-2.16.ebuild => dominions2-2.16-r1.ebuild} | 26 +++++++++++-----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/games-strategy/dominions2/dominions2-2.16.ebuild b/games-strategy/dominions2/dominions2-2.16-r1.ebuild
similarity index 87%
rename from games-strategy/dominions2/dominions2-2.16.ebuild
rename to games-strategy/dominions2/dominions2-2.16-r1.ebuild
index eca8acd9d25..0f7d0a64c0f 100644
--- a/games-strategy/dominions2/dominions2-2.16.ebuild
+++ b/games-strategy/dominions2/dominions2-2.16-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils cdrom games
+EAPI=7
+
+inherit cdrom desktop wrapper
DESCRIPTION="Dominions 2: The Ascension Wars is an epic turn-based fantasy strategy game"
HOMEPAGE="http://www.illwinter.com/dom2/index.html"
@@ -22,6 +23,7 @@ LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
+
RESTRICT="bindist strip"
RDEPEND="
@@ -36,10 +38,11 @@ RDEPEND="
virtual/opengl[abi_x86_32(-)]
virtual/glu[abi_x86_32(-)]
)
- )"
+ )
+"
-dir=${GAMES_PREFIX_OPT}/${PN}
-Ddir=${D}/${dir}
+dir=opt/${PN}
+Ddir="${ED}"/${dir}
src_unpack() {
mkdir -p "${S}"/patch || die
@@ -61,6 +64,7 @@ src_install() {
elif use ppc ; then
doexe "${CDROM_ROOT}"/bin_lin/ppc/dom2*
fi
+
insinto "${dir}"
doins -r "${CDROM_ROOT}"/dominions2.app/Contents/Resources/*
dodoc "${CDROM_ROOT}"/doc/*
@@ -75,7 +79,7 @@ src_install() {
if use doc; then
elog ""
- elog "Installing extra documentation to '/usr/share/doc/${P}'"
+ elog "Installing extra documentation to '/usr/share/doc/${PF}'"
elog ""
elog "You may want to study 'DOM2_Walkthrough.pdf' carefully if"
elog "you are new to Dominions II."
@@ -86,17 +90,13 @@ src_install() {
doicon "${DISTDIR}"/${PN}.png
# update times
- find "${D}" -exec touch '{}' \;
+ find "${D}" -exec touch '{}' \; || die
- games_make_wrapper dominions2 ./dom2 "${dir}" "${dir}"
+ make_wrapper dominions2 ./dom2 "${dir}" "${dir}"
make_desktop_entry dominions2 "Dominions II" dominions2
-
- prepgamesdirs
}
pkg_postinst() {
- games_pkg_postinst
elog "To play the game run:"
elog " dominions2"
- echo
}
reply other threads:[~2021-04-06 22:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1617749244.d42b1b8cc9b18b80697f58b025a2405159d0b48f.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