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-action/deadlysoccerball/, games-action/deadlysoccerball/files/
Date: Fri, 07 Feb 2020 20:08:40
Message-Id: 1581106097.3cbc47be6ff2483e7e4012f84b57b095c020e055.winterheart@gentoo
1 commit: 3cbc47be6ff2483e7e4012f84b57b095c020e055
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 7 19:27:53 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Fri Feb 7 20:08:17 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=3cbc47be
7
8 games-action/deadlysoccerball: update package
9
10 Migrate to EAPI 7
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 .../deadlysoccerball/deadlysoccerball-0.1.ebuild | 39 +++++++++-------------
16 ...cerball-0.1.diff => deadlysoccerball-0.1.patch} | 6 ++--
17 .../files/digest-deadlysoccerball-0.1 | 3 --
18 games-action/deadlysoccerball/metadata.xml | 6 ++--
19 4 files changed, 21 insertions(+), 33 deletions(-)
20
21 diff --git a/games-action/deadlysoccerball/deadlysoccerball-0.1.ebuild b/games-action/deadlysoccerball/deadlysoccerball-0.1.ebuild
22 index 4ac4a3b..3af6757 100644
23 --- a/games-action/deadlysoccerball/deadlysoccerball-0.1.ebuild
24 +++ b/games-action/deadlysoccerball/deadlysoccerball-0.1.ebuild
25 @@ -1,53 +1,44 @@
26 -# Copyright 1999-2009 Gentoo Foundation
27 +# Copyright 1999-2020 Gentoo Authors
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: $
30
31 -EAPI="2"
32 +EAPI=7
33
34 -inherit eutils games
35 -
36 -MY_PN=deadlysoccerball
37 +inherit desktop eutils
38
39 DESCRIPTION="space soccer ball shooting missiles around"
40 HOMEPAGE="http://www-graphics.stanford.edu/courses/cs248-videogame-competition/cs248-05/"
41 SRC_URI="http://www-graphics.stanford.edu/courses/cs248-videogame-competition/cs248-05/theDeadlySoccerBall.tar.gz"
42
43 -LICENSE="unknown"
44 +LICENSE="public-domain"
45 SLOT="0"
46 KEYWORDS="~amd64 ~ppc ~x86"
47 IUSE=""
48
49 DEPEND="media-libs/libsdl
50 media-libs/mesa"
51 -RDEPEND=""
52
53 -S=${WORKDIR}/${MY_PN}
54 +S="${WORKDIR}"
55 +
56 +PATCHES=( "${FILESDIR}/${P}.patch" )
57
58 src_prepare() {
59 - epatch "${FILESDIR}"/${P}.diff
60 - cd src/
61 + default
62 +
63 sed -i \
64 - -e 's:"\(Sounds/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i World.cpp \
65 - -e 's:"\(Textures/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i World.cpp \
66 + -e 's:"\(Sounds/[^"]*\)":"/usr/share/'${PN}'/\1":g' -i src/World.cpp \
67 + -e 's:"\(Textures/[^"]*\)":"/usr/share/'${PN}'/\1":g' -i src/World.cpp \
68 || die "sed failed"
69 sed -s \
70 - -e 's/\theDeadlySoccerBall/deadlysoccerball/g' -i Makefile \
71 + -e 's/\theDeadlySoccerBall/deadlysoccerball/g' -i src/Makefile \
72 || die "sed failed"
73 }
74
75 src_install() {
76 - dogamesbin theDeadlySoccerBall
77 + dobin theDeadlySoccerBall
78
79 - local datadir="${GAMES_DATADIR}"/${PN}
80 - dodir ${datadir}
81 - insinto "${GAMES_DATADIR}"/${PN}
82 + insinto "/usr/share/${PN}"
83 doins -r Sounds Textures || die
84 - newicon "${FILESDIR}"/${PN}.png ${PN}.png
85 + doicon "${FILESDIR}/${PN}.png"
86 make_desktop_entry theDeadlySoccerBall ${PN}
87 dodoc README.txt
88 - prepgamesdirs
89 -}
90 -
91 -pkg_postinst() {
92 - games_pkg_postinst
93 }
94
95 diff --git a/games-action/deadlysoccerball/files/deadlysoccerball-0.1.diff b/games-action/deadlysoccerball/files/deadlysoccerball-0.1.patch
96 similarity index 64%
97 rename from games-action/deadlysoccerball/files/deadlysoccerball-0.1.diff
98 rename to games-action/deadlysoccerball/files/deadlysoccerball-0.1.patch
99 index 3d793c8..145ec28 100644
100 --- a/games-action/deadlysoccerball/files/deadlysoccerball-0.1.diff
101 +++ b/games-action/deadlysoccerball/files/deadlysoccerball-0.1.patch
102 @@ -1,6 +1,6 @@
103 -diff -Naur src/World.cpp src-gentoo/World.cpp
104 ---- src/World.cpp 2005-12-07 20:32:58.000000000 +0100
105 -+++ src-gentoo/World.cpp 2007-11-01 11:31:46.000000000 +0100
106 +diff -Nuar deadlysoccerball.orig/src/World.cpp deadlysoccerball/src/World.cpp
107 +--- deadlysoccerball.orig/src/World.cpp 2020-02-07 22:16:50.755587682 +0300
108 ++++ deadlysoccerball/src/World.cpp 2020-02-07 22:17:50.117590300 +0300
109 @@ -712,7 +712,7 @@
110 Sphere::loadTexture("Textures/welcome.bmp", &this->welcomeTextureId);
111 Sphere::loadTexture("Textures/white.bmp", &this->whiteTextureId);
112
113 diff --git a/games-action/deadlysoccerball/files/digest-deadlysoccerball-0.1 b/games-action/deadlysoccerball/files/digest-deadlysoccerball-0.1
114 deleted file mode 100644
115 index d9651d4..0000000
116 --- a/games-action/deadlysoccerball/files/digest-deadlysoccerball-0.1
117 +++ /dev/null
118 @@ -1,3 +0,0 @@
119 -MD5 78b88c0dbe6130209d305bed0e4ac76a theDeadlySoccerBall.tar.gz 1496687
120 -RMD160 c7d364a6f48d7f8d578dc724cb94347f8102e2aa theDeadlySoccerBall.tar.gz 1496687
121 -SHA256 3dc85df981d6faca07f2b37137fff708ea69755016b754ae1be08c6423b692d7 theDeadlySoccerBall.tar.gz 1496687
122
123 diff --git a/games-action/deadlysoccerball/metadata.xml b/games-action/deadlysoccerball/metadata.xml
124 index 5d0ede2..c18eb4b 100644
125 --- a/games-action/deadlysoccerball/metadata.xml
126 +++ b/games-action/deadlysoccerball/metadata.xml
127 @@ -1,8 +1,8 @@
128 <?xml version="1.0" encoding="UTF-8"?>
129 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
130 <pkgmetadata>
131 -<maintainer>
132 - <email>frostworks@×××.de</email>
133 - <name>Marcel Unbehaun</name>
134 +<maintainer type="person">
135 + <email>frostworks@×××.de</email>
136 + <name>Marcel Unbehaun</name>
137 </maintainer>
138 </pkgmetadata>