1 |
commit: b9e7e3755e2c6faf6a583bc51c02f7302ed3b027 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Mar 3 23:00:44 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Tue Mar 3 23:00:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=b9e7e375 |
7 |
|
8 |
games-strategy/uplink: 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 |
games-strategy/uplink/metadata.xml | 4 ++++ |
16 |
.../{uplink-1.6.ebuild => uplink-1.6-r1.ebuild} | 21 +++++++++++---------- |
17 |
2 files changed, 15 insertions(+), 10 deletions(-) |
18 |
|
19 |
diff --git a/games-strategy/uplink/metadata.xml b/games-strategy/uplink/metadata.xml |
20 |
new file mode 100644 |
21 |
index 0000000..097975e |
22 |
--- /dev/null |
23 |
+++ b/games-strategy/uplink/metadata.xml |
24 |
@@ -0,0 +1,4 @@ |
25 |
+<?xml version="1.0" encoding="UTF-8"?> |
26 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
+<pkgmetadata> |
28 |
+</pkgmetadata> |
29 |
|
30 |
diff --git a/games-strategy/uplink/uplink-1.6.ebuild b/games-strategy/uplink/uplink-1.6-r1.ebuild |
31 |
similarity index 80% |
32 |
rename from games-strategy/uplink/uplink-1.6.ebuild |
33 |
rename to games-strategy/uplink/uplink-1.6-r1.ebuild |
34 |
index 66309f2..c8c2be7 100644 |
35 |
--- a/games-strategy/uplink/uplink-1.6.ebuild |
36 |
+++ b/games-strategy/uplink/uplink-1.6-r1.ebuild |
37 |
@@ -1,6 +1,9 @@ |
38 |
-EAPI=5 |
39 |
+# Copyright 1999-2020 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
|
42 |
-inherit games |
43 |
+EAPI=7 |
44 |
+ |
45 |
+inherit desktop eutils |
46 |
|
47 |
MY_P="${PN}_${PV}-1" |
48 |
|
49 |
@@ -11,11 +14,11 @@ SRC_URI="amd64? ( ${MY_P}_amd64.tar.gz ) |
50 |
RESTRICT="fetch" |
51 |
|
52 |
# Bundled libs :( |
53 |
-QA_PRESTRIPPED="${GAMES_PREFIX_OPT}/${PN}/lib.*" |
54 |
+QA_PRESTRIPPED="/opt/${PN}/lib.*" |
55 |
|
56 |
-LICENSE="introversion" |
57 |
+LICENSE="all-rights-reserved" |
58 |
SLOT="0" |
59 |
-KEYWORDS="~amd64 ~x86" |
60 |
+KEYWORDS="-* ~amd64 ~x86" |
61 |
IUSE="" |
62 |
|
63 |
DEPEND="" |
64 |
@@ -33,7 +36,7 @@ pkg_nofetch() { |
65 |
src_unpack() { |
66 |
local root |
67 |
|
68 |
- unpack "${A}" |
69 |
+ unpack ${A} |
70 |
|
71 |
if use amd64; then |
72 |
root=uplink-x64 |
73 |
@@ -49,7 +52,7 @@ src_unpack() { |
74 |
S="${WORKDIR}/${PN}" |
75 |
|
76 |
src_install() { |
77 |
- local dir="${GAMES_PREFIX_OPT}/${PN}" |
78 |
+ local dir="/opt/${PN}" |
79 |
local exe lib |
80 |
|
81 |
insinto "${dir}" |
82 |
@@ -77,9 +80,7 @@ src_install() { |
83 |
|
84 |
doicon uplink.png |
85 |
make_desktop_entry "${PN}" Uplink uplink |
86 |
- games_make_wrapper "${PN}" "${dir}/$exe" |
87 |
+ make_wrapper "${PN}" "${dir}/$exe" |
88 |
|
89 |
dodoc changes.txt mods.txt readme.txt |
90 |
- |
91 |
- prepgamesdirs |
92 |
} |