1 |
commit: 004c4a9de6a2958c45bda2e6684f114949686183 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 29 11:19:29 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Sat Feb 29 11:19:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=004c4a9d |
7 |
|
8 |
games-puzzle/osmos: update package |
9 |
|
10 |
Migrate from deprecated 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-puzzle/osmos/metadata.xml | 3 +-- |
16 |
.../{osmos-1.6.1.ebuild => osmos-1.6.1-r1.ebuild} | 22 ++++++++-------------- |
17 |
2 files changed, 9 insertions(+), 16 deletions(-) |
18 |
|
19 |
diff --git a/games-puzzle/osmos/metadata.xml b/games-puzzle/osmos/metadata.xml |
20 |
index 974ec88..46b0991 100644 |
21 |
--- a/games-puzzle/osmos/metadata.xml |
22 |
+++ b/games-puzzle/osmos/metadata.xml |
23 |
@@ -1,8 +1,7 @@ |
24 |
<?xml version="1.0" encoding="UTF-8"?> |
25 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
26 |
<pkgmetadata> |
27 |
-<herd>gamerboys</herd> |
28 |
-<maintainer> |
29 |
+<maintainer type="person"> |
30 |
<email>azamat.hackimov@×××××.com</email> |
31 |
<name>Azamat H. Hackimov</name> |
32 |
</maintainer> |
33 |
|
34 |
diff --git a/games-puzzle/osmos/osmos-1.6.1.ebuild b/games-puzzle/osmos/osmos-1.6.1-r1.ebuild |
35 |
similarity index 74% |
36 |
rename from games-puzzle/osmos/osmos-1.6.1.ebuild |
37 |
rename to games-puzzle/osmos/osmos-1.6.1-r1.ebuild |
38 |
index fafe623..0cdaa35 100644 |
39 |
--- a/games-puzzle/osmos/osmos-1.6.1.ebuild |
40 |
+++ b/games-puzzle/osmos/osmos-1.6.1-r1.ebuild |
41 |
@@ -1,10 +1,9 @@ |
42 |
-# Copyright 1999-2010 Gentoo Foundation |
43 |
+# Copyright 1999-2020 Gentoo Authors |
44 |
# Distributed under the terms of the GNU General Public License v2 |
45 |
-# $Header: $ |
46 |
|
47 |
-EAPI=5 |
48 |
+EAPI=7 |
49 |
|
50 |
-inherit eutils games |
51 |
+inherit desktop eutils |
52 |
|
53 |
MY_PN="Osmos" |
54 |
MY_P="${MY_PN}_${PV}" |
55 |
@@ -18,7 +17,6 @@ SLOT="0" |
56 |
KEYWORDS="-* ~amd64 ~x86" |
57 |
IUSE="" |
58 |
RESTRICT="fetch strip" |
59 |
-PROPERTIES="interactive" |
60 |
|
61 |
RDEPEND=" |
62 |
virtual/opengl |
63 |
@@ -33,14 +31,12 @@ DEPEND="${RDEPEND}" |
64 |
|
65 |
S="${WORKDIR}/${MY_PN}" |
66 |
|
67 |
-GAMES_CHECK_LICENSE="yes" |
68 |
- |
69 |
pkg_nofetch() { |
70 |
einfo "Please download ${MY_P}.tar.gz and place it into ${DISTDIR}" |
71 |
} |
72 |
|
73 |
src_install() { |
74 |
- local GAMEDIR="${GAMES_PREFIX_OPT}/${PN}" |
75 |
+ local dir="/opt/${PN}" |
76 |
local exe |
77 |
|
78 |
if use amd64 ; then |
79 |
@@ -50,17 +46,15 @@ src_install() { |
80 |
exe="${MY_PN}.bin32" |
81 |
fi |
82 |
|
83 |
- exeinto "${GAMEDIR}" |
84 |
+ exeinto "${dir}" |
85 |
doexe "${exe}" || die "doexe" |
86 |
|
87 |
- dohtml readme.html |
88 |
- insinto "${GAMEDIR}" |
89 |
+ dodoc readme.html |
90 |
+ insinto "${dir}" |
91 |
doins -r Fonts/ Sounds/ Textures/ Osmos-* *.cfg || die "doins failed" |
92 |
|
93 |
newicon "Icons/256x256.png" "${PN}.png" |
94 |
|
95 |
- games_make_wrapper "${PN}" "./${exe}" "${GAMEDIR}" |
96 |
+ make_wrapper "${PN}" "./${exe}" "${dir}" |
97 |
make_desktop_entry "${PN}" "Osmos" |
98 |
- |
99 |
- prepgamesdirs |
100 |
} |