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-puzzle/snapshot/
Date: Sat, 29 Feb 2020 13:05:05
Message-Id: 1582976866.da17ef200ad9ee9879c5809a04fefe6f1e8b0e8f.winterheart@gentoo
1 commit: da17ef200ad9ee9879c5809a04fefe6f1e8b0e8f
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 29 11:45:56 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Sat Feb 29 11:47:46 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=da17ef20
7
8 games-puzzle/snapshot: 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/snapshot/metadata.xml | 11 ++++++++
16 .../{snapshot-28.ebuild => snapshot-28-r1.ebuild} | 29 ++++++++++------------
17 2 files changed, 24 insertions(+), 16 deletions(-)
18
19 diff --git a/games-puzzle/snapshot/metadata.xml b/games-puzzle/snapshot/metadata.xml
20 new file mode 100644
21 index 0000000..aec4945
22 --- /dev/null
23 +++ b/games-puzzle/snapshot/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/snapshot/snapshot-28.ebuild b/games-puzzle/snapshot/snapshot-28-r1.ebuild
38 similarity index 71%
39 rename from games-puzzle/snapshot/snapshot-28.ebuild
40 rename to games-puzzle/snapshot/snapshot-28-r1.ebuild
41 index 308dfde..11b3391 100644
42 --- a/games-puzzle/snapshot/snapshot-28.ebuild
43 +++ b/games-puzzle/snapshot/snapshot-28-r1.ebuild
44 @@ -1,20 +1,19 @@
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="${PN/s/S}"
53 BASE_URI="${MY_PN}-linux-v${PV}"
54 -inherit multilib games
55 +inherit desktop eutils
56
57 -DESCRIPTION="Join PIC on his awesome journey into the unknown armed with only his camera that can capture the world around him!"
58 +DESCRIPTION="Join PIC on his awesome journey into the unknown armed with only his camera!"
59 HOMEPAGE="http://www.retroaffect.com/games/1/snapshot/"
60 SRC_URI="
61 x86? ( ${BASE_URI}-x86.tar.gz )
62 amd64? ( ${BASE_URI}-x64.tar.gz )
63 "
64
65 -LICENSE="as-is"
66 +LICENSE="all-rights-reserved"
67 SLOT="0"
68 RESTRICT="fetch"
69 KEYWORDS="~amd64 ~x86"
70 @@ -57,15 +56,15 @@ RDEPEND="${DEPEND}
71 x11-libs/libXfixes
72 x11-libs/libXtst
73 x11-libs/libXxf86vm
74 - || ( dev-lang/luajit:2 =dev-lang/lua-5.1 )
75 + || ( dev-lang/luajit:2 dev-lang/lua:0 )
76 luajit? ( dev-lang/luajit:2 )
77 - !luajit? ( =dev-lang/lua-5.1* )
78 + !luajit? ( dev-lang/lua:0 )
79 "
80 S="${WORKDIR}"
81
82 src_install() {
83 local lib=liblua.so;
84 - GAMEDIR="${GAMES_PREFIX_OPT}/${PN}"
85 + dir="/opt/${PN}"
86
87 use luajit && lib=libluajit-5.1.so
88
89 @@ -78,16 +77,14 @@ src_install() {
90 # Fixing bundled lua (requires non-standard soname)
91 ln -s "/usr/$(get_libdir)/${lib}" "./liblua5.1.so.0"
92
93 - exeinto "${GAMEDIR}"
94 - insinto "${GAMEDIR}"
95 + exeinto "${dir}"
96 + insinto "${dir}"
97 doins -r "resources"
98 doins "liblua5.1.so.0"
99 doexe "${PN}.bin"
100
101 doicon "${FILESDIR}/snapshot.png"
102 - # install shortcuts
103 - games_make_wrapper "${PN}" "./${PN}.bin" "${GAMEDIR}" "${GAMEDIR}" || die "install shortcut"
104 - make_desktop_entry "${PN}" "${PN}" "${PN}"
105 -
106 - prepgamesdirs
107 + # install shortcuts
108 + make_wrapper "${PN}" "./${PN}.bin" "${dir}" "${dir}" || die "install shortcut"
109 + make_desktop_entry "${PN}" "${PN}" "${PN}"
110 }