1 |
commit: 8a40ce4fe1bde66e8446c8be71f420ad13b1c179 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 29 11:57:11 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Sat Feb 29 11:57:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=8a40ce4f |
7 |
|
8 |
games-puzzle/spirits: update package |
9 |
|
10 |
Migrated 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/spirits/metadata.xml | 11 ++++++++ |
16 |
...pirits-1.0.1.ebuild => spirits-1.0.1-r1.ebuild} | 31 ++++++++++------------ |
17 |
2 files changed, 25 insertions(+), 17 deletions(-) |
18 |
|
19 |
diff --git a/games-puzzle/spirits/metadata.xml b/games-puzzle/spirits/metadata.xml |
20 |
new file mode 100644 |
21 |
index 0000000..aec4945 |
22 |
--- /dev/null |
23 |
+++ b/games-puzzle/spirits/metadata.xml |
24 |
@@ -0,0 +1,11 @@ |
25 |
+<?xml version="1.0" encoding="UTF-8"?> |
26 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
+<pkgmetadata> |
28 |
+<maintainer type="person"> |
29 |
+<email>mva@×××.name</email> |
30 |
+<name>Vadim A. Misbakh-Soloviov</name> |
31 |
+</maintainer> |
32 |
+<longdescription lang="en"> |
33 |
+</longdescription> |
34 |
+</pkgmetadata> |
35 |
+ |
36 |
|
37 |
diff --git a/games-puzzle/spirits/spirits-1.0.1.ebuild b/games-puzzle/spirits/spirits-1.0.1-r1.ebuild |
38 |
similarity index 61% |
39 |
rename from games-puzzle/spirits/spirits-1.0.1.ebuild |
40 |
rename to games-puzzle/spirits/spirits-1.0.1-r1.ebuild |
41 |
index ffec38b..489e434 100644 |
42 |
--- a/games-puzzle/spirits/spirits-1.0.1.ebuild |
43 |
+++ b/games-puzzle/spirits/spirits-1.0.1-r1.ebuild |
44 |
@@ -1,17 +1,16 @@ |
45 |
-# Copyright 1999-2011 Gentoo Foundation |
46 |
+# Copyright 1999-2020 Gentoo Authors |
47 |
# Distributed under the terms of the GNU General Public License v2 |
48 |
-# $Header: games-puzzle/kinetris/kinetris-1.0.0b_pre5.ebuild frostwork Exp $ |
49 |
|
50 |
-EAPI="5" |
51 |
+EAPI=7 |
52 |
MY_PN="Spirits" |
53 |
|
54 |
-inherit games |
55 |
+inherit desktop eutils |
56 |
|
57 |
DESCRIPTION="Save the spirits of leaf litters" |
58 |
HOMEPAGE="http://www.spacesofplay.com/spirits/" |
59 |
SRC_URI="${PN}-linux-${PV}_120903-1348705231.zip" |
60 |
|
61 |
-LICENSE="as-is" |
62 |
+LICENSE="all-rights-reserved" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~x86" |
65 |
IUSE="" |
66 |
@@ -26,16 +25,16 @@ S="${WORKDIR}/${MY_PN}" |
67 |
|
68 |
src_install() { |
69 |
local libdir binary |
70 |
- GAMEDIR="${GAMES_PREFIX_OPT}/${MY_PN}" |
71 |
+ local dir="/opt/${MY_PN}" |
72 |
|
73 |
use amd64 && { |
74 |
-# TODO: unbundling SDL2 |
75 |
+ # TODO: unbundling SDL2 |
76 |
libdir=x86_64 |
77 |
binary=Spirits-64 |
78 |
} |
79 |
|
80 |
use x86 && { |
81 |
-# TODO: unbundling SDL2 |
82 |
+ # TODO: unbundling SDL2 |
83 |
libdir=i686 |
84 |
binary=Spirits-32 |
85 |
} |
86 |
@@ -44,21 +43,19 @@ src_install() { |
87 |
|
88 |
rm "./${libdir}/libopenal.so.1" |
89 |
|
90 |
- exeinto "${GAMEDIR}" |
91 |
- insinto "${GAMEDIR}" |
92 |
+ exeinto "${dir}" |
93 |
+ insinto "${dir}" |
94 |
doins -r data |
95 |
-# TODO: unbundling SDL2 |
96 |
+ # TODO: unbundling SDL2 |
97 |
doins -r "${libdir}" |
98 |
doexe "${binary}" |
99 |
|
100 |
- # install shortcuts |
101 |
- games_make_wrapper "${PN}" "./${binary}" "${GAMEDIR}" "${GAMEDIR}/${libdir}" || die "install shortcut" |
102 |
- make_desktop_entry "${PN}" "${MY_PN}" "${PN}" |
103 |
- |
104 |
- prepgamesdirs |
105 |
+ # install shortcuts |
106 |
+ make_wrapper "${PN}" "./${binary}" "${dir}" "${dir}/${libdir}" || die "install shortcut" |
107 |
+ make_desktop_entry "${PN}" "${MY_PN}" "${PN}" |
108 |
} |
109 |
|
110 |
pkg_postinstall() { |
111 |
einfo "If pre-start dialog looks ugly for you, try to remove ~/.themes" |
112 |
einfo "At least, it helped me in such situation." |
113 |
-} |
114 |
\ No newline at end of file |
115 |
+} |