Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/rockdodger/
Date: Tue, 01 Jun 2021 23:44:40
Message-Id: 1622589555.482c2764535184fffb3750c35c1f56b984d0d9f1.ionen@gentoo
1 commit: 482c2764535184fffb3750c35c1f56b984d0d9f1
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 1 12:01:26 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 23:19:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=482c2764
7
8 games-arcade/rockdodger: add 1.1.4
9
10 - make game usable (broken since games.eclass--, wrong assets path)
11 - make executable setgid gamestat (...was setgid root)
12 - removed patches, obsolete/upstreamed
13 - prefix support
14 - install package's .desktop, bigger icon, and man page
15 - added missing [joystick] (bug #737688), and others to handle assets
16 - seds removed (bug #711110), includes audio sed given can't
17 reproduce and upstream still left it at 512 in 2020
18
19 Closes: https://bugs.gentoo.org/680584
20 Closes: https://bugs.gentoo.org/711110
21 Closes: https://bugs.gentoo.org/737688
22 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
23
24 games-arcade/rockdodger/Manifest | 1 +
25 games-arcade/rockdodger/rockdodger-1.1.4.ebuild | 50 +++++++++++++++++++++++++
26 2 files changed, 51 insertions(+)
27
28 diff --git a/games-arcade/rockdodger/Manifest b/games-arcade/rockdodger/Manifest
29 index 24cdb923e2c..11d90d34984 100644
30 --- a/games-arcade/rockdodger/Manifest
31 +++ b/games-arcade/rockdodger/Manifest
32 @@ -1 +1,2 @@
33 DIST rockdodger-0.6.0a.tar.gz 410223 BLAKE2B 5ccda4400468d6a7209adfdad3045773bf31581e34dfb77bff7d314ca9d9fa18e6c5a24996259782c002cf8ea611f92388c9ca46be4e0c7492a526421e8e8163 SHA512 d517cc844df21e8772b13d0226841a64bede0cc2f5461fb83d313f49cd99192dcf6af4597e3d1f3e1c60f578437e355ce665e0288415da803a503fb12d8462eb
34 +DIST rockdodger-1.1.4.tar.gz 1026184 BLAKE2B 08885155508adb878908d3cf9201c98cffded37dea051cb9a668ddb63891a19369648964f3f19d94b72a08626d3d1dea73686b190898d8b59c3b91805e08677c SHA512 542a8b5b1a9dc7fc8e61d3183c14c3f45952614f2e00f71383dfd42ddcf275cbc14520797d4555f2f19f354a4f1819d8527a587598c9dbc06a75b21643a8b019
35
36 diff --git a/games-arcade/rockdodger/rockdodger-1.1.4.ebuild b/games-arcade/rockdodger/rockdodger-1.1.4.ebuild
37 new file mode 100644
38 index 00000000000..6f4a73b078f
39 --- /dev/null
40 +++ b/games-arcade/rockdodger/rockdodger-1.1.4.ebuild
41 @@ -0,0 +1,50 @@
42 +# Copyright 1999-2021 Gentoo Authors
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=7
46 +
47 +inherit desktop toolchain-funcs
48 +
49 +DESCRIPTION="Dodge the rocks for as long as possible until you die"
50 +HOMEPAGE="https://bitbucket.org/rpkrawczyk/rockdodger"
51 +SRC_URI="https://bitbucket.org/rpkrawczyk/rockdodger/downloads/${P}.tar.gz"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +
57 +RDEPEND="
58 + acct-group/gamestat
59 + media-libs/libsdl[joystick,sound,video]
60 + media-libs/sdl-image[png]
61 + media-libs/sdl-mixer[mod,wav]"
62 +DEPEND="${DEPEND}"
63 +
64 +src_compile() {
65 + tc-export CC
66 +
67 + local emakeargs=(
68 + prefix="${EPREFIX}"/usr
69 + gamesdir="${EPREFIX}"/var/games/${PN}
70 + MOREOPTS="${CFLAGS} ${CPPFLAGS}"
71 + )
72 + emake "${emakeargs[@]}"
73 +}
74 +
75 +src_install() {
76 + dobin ${PN}
77 + doman ${PN}.6
78 +
79 + insinto /usr/share/${PN}
80 + doins -r data/.
81 +
82 + newicon ${PN}.icon.64x64.xpm ${PN}.xpm
83 + domenu ${PN}.desktop
84 +
85 + dodir /var/games/${PN}
86 + touch "${ED}"/var/games/${PN}/${PN}.scores || die
87 +
88 + fowners -R :gamestat /{usr/bin,var/games}/${PN}
89 + fperms 660 /var/games/${PN}/${PN}.scores
90 + fperms g+s /usr/bin/${PN}
91 +}