Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/frogatto/
Date: Thu, 06 Feb 2020 21:22:51
Message-Id: 1581024155.74a5f6520b3da1f166fdc184ad2668e79125e30e.winterheart@gentoo
1 commit: 74a5f6520b3da1f166fdc184ad2668e79125e30e
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 6 20:19:26 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Thu Feb 6 21:22:35 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=74a5f652
7
8 games-arcade/frogatto: update EAPI
9
10 Remove deprecated games eclass
11
12 Package-Manager: Portage-2.3.84, Repoman-2.3.20
13 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
14
15 games-arcade/frogatto/frogatto-1.3.1.ebuild | 24 ++++++++++--------------
16 1 file changed, 10 insertions(+), 14 deletions(-)
17
18 diff --git a/games-arcade/frogatto/frogatto-1.3.1.ebuild b/games-arcade/frogatto/frogatto-1.3.1.ebuild
19 index 900524c..370bf4b 100644
20 --- a/games-arcade/frogatto/frogatto-1.3.1.ebuild
21 +++ b/games-arcade/frogatto/frogatto-1.3.1.ebuild
22 @@ -1,14 +1,13 @@
23 -# Copyright 1999-2014 Gentoo Foundation
24 +# Copyright 1999-2020 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: $
27
28 -EAPI=5
29 +EAPI=6
30
31 -inherit eutils games
32 +inherit desktop eutils
33
34 DESCRIPTION="a frog, and a platform game"
35 HOMEPAGE="http://frogatto.com/"
36 -SRC_URI="http://github.com/frogatto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 +SRC_URI="https://github.com/frogatto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
38
39 LICENSE="GPL-3 free-noncomm"
40 SLOT="0"
41 @@ -17,7 +16,7 @@ KEYWORDS="~amd64 ~x86"
42 IUSE="extras"
43
44 DEPEND="dev-libs/boost
45 - media-libs/glew
46 + media-libs/glew:0
47 media-libs/libpng:0
48 media-libs/libsdl[X,joystick,opengl,sound,video]
49 media-libs/sdl-image[png]
50 @@ -29,13 +28,12 @@ DEPEND="dev-libs/boost
51 RDEPEND="${DEPEND}"
52
53 src_prepare() {
54 + default
55 # drop some CXXFLAGS
56 sed -i \
57 -e '/BASE_CXXFLAGS/s/-Werror //' \
58 -e '/BASE_CXXFLAGS/s/-g //' \
59 Makefile || die 'sed on Makefile failed'
60 -
61 - epatch_user
62 }
63
64 src_compile() {
65 @@ -43,8 +41,8 @@ src_compile() {
66 }
67
68 src_install() {
69 - insinto "${GAMES_DATADIR}/${PN}"
70 - newgamesbin game "${PN}.orig"
71 + insinto "/usr/share/${PN}"
72 + newbin game "${PN}.orig"
73 doins -r data images music *.ttf
74
75 if use extras; then
76 @@ -52,14 +50,12 @@ src_install() {
77 doins -r modules
78 else
79 # Install only frogatto module by default
80 - insinto "${GAMES_DATADIR}/${PN}/modules"
81 + insinto "/usr/share/${PN}/modules"
82 doins -r modules/frogatto
83 fi
84
85 newicon images/window-icon.png "${PN}.png"
86
87 - games_make_wrapper "${PN}" "${GAMES_BINDIR}/${PN}.orig" "${GAMES_DATADIR}/${PN}"
88 + make_wrapper "${PN}" "/usr/bin/${PN}.orig" "/usr/share/${PN}"
89 make_desktop_entry "${PN}" "Frogatto and Friends"
90 -
91 - prepgamesdirs
92 }