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-action/twoworlds/
Date: Mon, 12 Jul 2021 20:47:17
Message-Id: 1626122740.1d98e0da686688aef1607a2aa5da6a2f165b384b.winterheart@gentoo
1 commit: 1d98e0da686688aef1607a2aa5da6a2f165b384b
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Mon Jul 12 18:10:53 2021 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Mon Jul 12 20:45:40 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=1d98e0da
7
8 games-action/twoworlds: remove broken package
9
10 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
11
12 games-action/twoworlds/metadata.xml | 14 -----
13 games-action/twoworlds/twoworlds-2.0.0.2.ebuild | 77 -------------------------
14 2 files changed, 91 deletions(-)
15
16 diff --git a/games-action/twoworlds/metadata.xml b/games-action/twoworlds/metadata.xml
17 deleted file mode 100644
18 index 010a55e..0000000
19 --- a/games-action/twoworlds/metadata.xml
20 +++ /dev/null
21 @@ -1,14 +0,0 @@
22 -<?xml version="1.0" encoding="UTF-8"?>
23 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
24 -<pkgmetadata>
25 -<maintainer type="person">
26 -<email>mva@×××.name</email>
27 -<name>Vadim A. Misbakh-Soloviov</name>
28 -</maintainer>
29 -<longdescription lang="en">
30 -</longdescription>
31 -<use>
32 -<flag name="gog">Use GOG archive</flag>
33 -</use>
34 -</pkgmetadata>
35 -
36
37 diff --git a/games-action/twoworlds/twoworlds-2.0.0.2.ebuild b/games-action/twoworlds/twoworlds-2.0.0.2.ebuild
38 deleted file mode 100644
39 index 8676039..0000000
40 --- a/games-action/twoworlds/twoworlds-2.0.0.2.ebuild
41 +++ /dev/null
42 @@ -1,77 +0,0 @@
43 -# Copyright 1999-2020 Gentoo Authors
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI=6
47 -
48 -inherit eutils unpacker
49 -
50 -DESCRIPTION="Action RPG with open world"
51 -HOMEPAGE="https://en.wikipedia.org/wiki/Two_Worlds_(video_game)"
52 -SRC_URI="
53 - gog? (
54 - gog_two_worlds_epic_edition_${PV}.sh
55 - )
56 -"
57 -
58 -RESTRICT="fetch strip"
59 -LICENSE="all-rights-reserved"
60 -
61 -SLOT="0"
62 -KEYWORDS="-* ~amd64 ~x86"
63 -IUSE="+gog"
64 -
65 -DEPEND="app-arch/unzip"
66 -RDEPEND="app-emulation/wine-vanilla
67 - app-emulation/winetricks
68 -"
69 -
70 -S="${WORKDIR}"
71 -
72 -pkg_nofetch() {
73 - einfo ""
74 - einfo "Please open ${HOMEPAGE}, choose a place to buy it,"
75 - einfo "then download \"${SRC_URI}\", and move/link it to \"${DISTDIR}\""
76 - einfo ""
77 - einfo "P.S.: I've only gog version. So, if you have Humble Store version"
78 - einfo "and want this ebuild to also cover it — please contact me."
79 -}
80 -
81 -src_unpack() {
82 - for f in ${A[@]}; do
83 - unzip -qn "${DISTDIR}/${f}"
84 - done
85 -}
86 -
87 -src_install() {
88 -exit
89 - local dir="/opt/${PN}" arch="x86" exe modexe;
90 -
91 -# use amd64 && arch="x86_64";
92 - exe="${PN^}.x86"; # fixme when gog'll release x86_64 version
93 - cfgexe="GamepadConfigTool.x86" #.${arch}";
94 -
95 - insinto "${dir}";
96 - exeinto "${dir}";
97 -
98 - cd data/noarch;
99 -
100 - doins -r game/*
101 - doexe "game/${exe}" "game/${cfgexe}" "support/gog-system-report.sh"
102 -
103 - touch "${D}/${dir}/controller.config"
104 - fperms 666 "${dir}/controller.config" # so, gamepad config tool will be able to save content to it, even if runs under unpriv. user
105 -
106 - make_wrapper "${PN}" "./${exe}" "${dir}"
107 - make_wrapper "${PN}-gog-system-report" "./gog-system-report.sh" "${dir}"
108 - make_wrapper "${PN}-gc" "./${cfgexe}" "${dir}"
109 - newicon "support/icon.png" "${PN}.png"
110 - make_desktop_entry "${PN}" "${PN^}: Play" "${PN}"
111 - make_desktop_entry "${PN}-gc" "${PN^}: Gamepad Configuration tool" "${PN}"
112 -}
113 -
114 -pkg_postinst() {
115 - einfo 'If game badly detects your gamepad (i.e. some keys is not working),'
116 - einfo 'you can run `dex-gc` tool (Gamepad Configuration tool)'
117 - einfo 'It will calibrate your gamepad and save configuration so Dex game'
118 - einfo 'will be able to load it and work normally with your gamepad'
119 -}