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-puzzle/gemdropx/
Date: Mon, 04 Oct 2021 17:27:02
Message-Id: 1633366360.63c80c5955c292656d90663c9b0a949569884d1b.ionen@gentoo
1 commit: 63c80c5955c292656d90663c9b0a949569884d1b
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Fri Oct 1 15:01:01 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 16:52:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63c80c59
7
8 games-puzzle/gemdropx: EAPI8 bump, ebuild improvements
9
10 Package-Manager: Portage-3.0.23, Repoman-3.0.3
11 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
12 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
13
14 games-puzzle/gemdropx/gemdropx-0.9-r3.ebuild | 49 ++++++++++++++++++++++++++++
15 1 file changed, 49 insertions(+)
16
17 diff --git a/games-puzzle/gemdropx/gemdropx-0.9-r3.ebuild b/games-puzzle/gemdropx/gemdropx-0.9-r3.ebuild
18 new file mode 100644
19 index 00000000000..81cfe01a560
20 --- /dev/null
21 +++ b/games-puzzle/gemdropx/gemdropx-0.9-r3.ebuild
22 @@ -0,0 +1,49 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +
28 +inherit desktop toolchain-funcs
29 +
30 +DESCRIPTION="Puzzle game where it's your job to clear the screen of gems"
31 +HOMEPAGE="http://www.newbreedsoftware.com/gemdropx/"
32 +SRC_URI="ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/${P}.tar.gz"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +
38 +RDEPEND="
39 + media-libs/libsdl[joystick,sound,video]
40 + media-libs/sdl-mixer[mod]"
41 +DEPEND="${RDEPEND}"
42 +
43 +src_prepare() {
44 + default
45 + sed -i \
46 + -e 's/$(CFLAGS) -o/$(LDFLAGS) -o/' \
47 + Makefile || die
48 + rm -r data/images/.xvpics || die
49 +}
50 +
51 +src_compile() {
52 + local myemakeargs=(
53 + CC="$(tc-getCC)"
54 + CXX="$(tc-getCC)"
55 + DATA_PREFIX="${EPREFIX}/usr/share/${PN}"
56 + XTRA_FLAGS="${CFLAGS}"
57 + )
58 + emake "${myemakeargs[@]}"
59 +}
60 +
61 +src_install() {
62 + dobin ${PN}
63 +
64 + insinto /usr/share/${PN}
65 + doins -r data/.
66 +
67 + dodoc AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
68 +
69 + newicon data/images/${PN}-icon.xpm ${PN}.xpm
70 + make_desktop_entry ${PN} "Gem Drop X"
71 +}