From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/betna/
Date: Sun, 4 Apr 2021 06:33:02 +0000 (UTC) [thread overview]
Message-ID: <1617517954.d6dfb128d98288dbf9d8b2a1be24cf1acb766e36.sam@gentoo> (raw)
commit: d6dfb128d98288dbf9d8b2a1be24cf1acb766e36
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 4 00:42:25 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 4 06:32:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6dfb128
games-arcade/betna: port to EAPI 7, games.eclass--
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../{betna-0.9.7.ebuild => betna-0.9.7-r1.ebuild} | 26 ++++++++++++++--------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/games-arcade/betna/betna-0.9.7.ebuild b/games-arcade/betna/betna-0.9.7-r1.ebuild
similarity index 80%
rename from games-arcade/betna/betna-0.9.7.ebuild
rename to games-arcade/betna/betna-0.9.7-r1.ebuild
index 57c0d775c4d..0aaf6590200 100644
--- a/games-arcade/betna/betna-0.9.7.ebuild
+++ b/games-arcade/betna/betna-0.9.7-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 games
+EAPI=7
+
+inherit desktop toolchain-funcs
DESCRIPTION="Defend your volcano from the attacking ants by firing rocks/bullets at them"
HOMEPAGE="http://koti.mbnet.fi/makegho/c/betna/"
@@ -11,15 +12,16 @@ SRC_URI="http://koti.mbnet.fi/makegho/c/betna/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
DEPEND="media-libs/libsdl[video]"
RDEPEND="${DEPEND}"
src_prepare() {
+ default
+
sed -i \
-e '/blobprintf.*char msg/s/char msg/const char msg/' \
- -e "s:images/:${GAMES_DATADIR}/${PN}/:" \
+ -e "s:images/:/var/lib/${PN}/:" \
src/main.cpp || die
sed -i \
@@ -30,17 +32,23 @@ src_prepare() {
Makefile || die
}
+src_configure() {
+ tc-export CXX
+}
+
src_compile() {
emake clean
emake
}
src_install() {
- dogamesbin betna
- insinto "${GAMES_DATADIR}"/${PN}
+ dobin betna
+ dodoc README Q\&A
+
+ insinto /var/lib/${PN}
doins images/*
+
newicon images/target.bmp ${PN}.bmp
+
make_desktop_entry ${PN} Betna /usr/share/pixmaps/${PN}.bmp
- dodoc README Q\&A
- prepgamesdirs
}
next reply other threads:[~2021-04-04 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-04 6:33 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-12-18 10:13 [gentoo-commits] repo/gentoo:master commit in: games-arcade/betna/ Michael Sterrett
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=1617517954.d6dfb128d98288dbf9d8b2a1be24cf1acb766e36.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