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-strategy/anomaly/
Date: Wed, 04 Mar 2020 00:08:36
Message-Id: 1583274511.0e293e6677634c5f9e906ed9632e01501f71a65f.winterheart@gentoo
1 commit: 0e293e6677634c5f9e906ed9632e01501f71a65f
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 3 22:28:31 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Tue Mar 3 22:28:31 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=0e293e66
7
8 games-strategy/anomaly: update package
9
10 Migrate from deprecated eclass.
11
12 Package-Manager: Portage-2.3.89, Repoman-2.3.20
13 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
14
15 ...-20130402.ebuild => anomaly-20130402-r1.ebuild} | 54 +++++++++-------------
16 games-strategy/anomaly/metadata.xml | 2 +-
17 2 files changed, 22 insertions(+), 34 deletions(-)
18
19 diff --git a/games-strategy/anomaly/anomaly-20130402.ebuild b/games-strategy/anomaly/anomaly-20130402-r1.ebuild
20 similarity index 54%
21 rename from games-strategy/anomaly/anomaly-20130402.ebuild
22 rename to games-strategy/anomaly/anomaly-20130402-r1.ebuild
23 index b8c59f0..adccff4 100644
24 --- a/games-strategy/anomaly/anomaly-20130402.ebuild
25 +++ b/games-strategy/anomaly/anomaly-20130402-r1.ebuild
26 @@ -1,54 +1,44 @@
27 -# Copyright 1999-2012 Gentoo Foundation
28 +# Copyright 1999-2020 Gentoo Authors
29 # Distributed under the terms of the GNU General Public License v2
30 -# $Header: $
31
32 -EAPI="5"
33 +EAPI=7
34
35 -inherit unpacker games
36 +inherit desktop eutils multilib-minimal unpacker
37
38 -DESCRIPTION="An extraordinary mixture of action and strategy in a reversed tower defense formula."
39 +DESCRIPTION="An extraordinary mixture of action and strategy."
40 HOMEPAGE="http://www.anomalythegame.com/"
41 # Is it non-HiB distfile?
42 SRC_URI="AnomalyWarzoneEarth-Installer_Humble_Linux_1364850491.zip"
43 RESTRICT="fetch strip"
44 -LICENSE="as-is"
45 +LICENSE="all-rights-reserved"
46 SLOT="0"
47 KEYWORDS="-* ~amd64 ~x86"
48 -IUSE="multilib"
49 +IUSE=""
50
51 DEPEND=""
52 RDEPEND="
53 - x86? (
54 - media-libs/openal
55 - x11-libs/libdrm
56 - x11-libs/libX11
57 - x11-libs/libXau
58 - x11-libs/libxcb
59 - x11-libs/libXdamage
60 - x11-libs/libXdmcp
61 - x11-libs/libXext
62 - x11-libs/libXfixes
63 - x11-libs/libXxf86vm
64 - )
65 - amd64? (
66 - app-emulation/emul-linux-x86-xlibs
67 - app-emulation/emul-linux-x86-opengl
68 - app-emulation/emul-linux-x86-sdl
69 - )
70 + media-libs/openal[${MULTILIB_USEDEP}]
71 + x11-libs/libdrm[${MULTILIB_USEDEP}]
72 + x11-libs/libX11[${MULTILIB_USEDEP}]
73 + x11-libs/libXau[${MULTILIB_USEDEP}]
74 + x11-libs/libxcb[${MULTILIB_USEDEP}]
75 + x11-libs/libXdamage[${MULTILIB_USEDEP}]
76 + x11-libs/libXdmcp[${MULTILIB_USEDEP}]
77 + x11-libs/libXext[${MULTILIB_USEDEP}]
78 + x11-libs/libXfixes[${MULTILIB_USEDEP}]
79 + x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
80 virtual/opengl
81 app-arch/unzip
82 "
83
84 -REQUIRED_USE="amd64? ( multilib )"
85 -
86 S="${WORKDIR}"
87
88 src_unpack() {
89 #double-zipped files, lol
90 unpack ${A}
91 - # self unpacking zip archive; unzip warns about the exe stuff
92 - local a="${S}/AnomalyWarzoneEarth-Installer"
93 - unpack_zip "${a}"
94 + # self unpacking zip archive; unzip warns about the exe stuff
95 + local a="${S}/AnomalyWarzoneEarth-Installer"
96 + unpack_zip "${a}"
97 rm "${a}" # save space
98 }
99
100 @@ -60,11 +50,11 @@ pkg_nofetch() {
101
102 src_install() {
103 cd "${S}/data"
104 - local dir="${GAMES_PREFIX_OPT}/${PN}"
105 + local dir="/opt/${PN}"
106
107 newicon "icon.png" "${PN}.png"
108 make_desktop_entry "${PN}" "Anomaly: Warzone Earth" "${PN}"
109 - games_make_wrapper "${PN}" "./AnomalyWarzoneEarth" "${dir}"
110 + make_wrapper "${PN}" "./AnomalyWarzoneEarth" "${dir}"
111 dodoc README
112 exeinto "${dir}"
113 doexe "AnomalyWarzoneEarth"
114 @@ -82,6 +72,4 @@ src_install() {
115 "Copyright license Xpm"
116 insinto "${dir}"
117 doins -r .
118 -
119 - prepgamesdirs
120 }
121
122 diff --git a/games-strategy/anomaly/metadata.xml b/games-strategy/anomaly/metadata.xml
123 index 70137f0..599fe17 100644
124 --- a/games-strategy/anomaly/metadata.xml
125 +++ b/games-strategy/anomaly/metadata.xml
126 @@ -1,7 +1,7 @@
127 <?xml version="1.0" encoding="UTF-8"?>
128 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
129 <pkgmetadata>
130 -<maintainer>
131 +<maintainer type="person">
132 <email>mva@×××.name</email>
133 <name>Vadim A. Misbakh-Soloviov</name>
134 </maintainer>