Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/runescape-launcher/
Date: Thu, 01 Jun 2017 07:10:15
Message-Id: 1496300993.03f20d7a7b3761e06c33c813050814694a4ebc42.soap@gentoo
1 commit: 03f20d7a7b3761e06c33c813050814694a4ebc42
2 Author: Jiayi Zhao <jeff.no.zhao <AT> gmail <DOT> com>
3 AuthorDate: Sat May 27 15:20:14 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 1 07:09:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03f20d7a
7
8 games-rpg/runescape-launcher: Remove old
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11 Closes: https://github.com/gentoo/gentoo/pull/4779
12
13 .../runescape-launcher-2.2.3.ebuild | 83 ----------------------
14 1 file changed, 83 deletions(-)
15
16 diff --git a/games-rpg/runescape-launcher/runescape-launcher-2.2.3.ebuild b/games-rpg/runescape-launcher/runescape-launcher-2.2.3.ebuild
17 deleted file mode 100644
18 index b1049fa39ee..00000000000
19 --- a/games-rpg/runescape-launcher/runescape-launcher-2.2.3.ebuild
20 +++ /dev/null
21 @@ -1,83 +0,0 @@
22 -# Copyright 1999-2017 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -inherit unpacker xdg gnome2-utils
28 -
29 -DESCRIPTION="Official RuneScape NXT client launcher"
30 -HOMEPAGE="http://www.runescape.com"
31 -
32 -SRC_URI="http://content.runescape.com/downloads/ubuntu/pool/non-free/r/${PN}/${PN}_${PV}_amd64.deb"
33 -
34 -QA_PREBUILT="/opt/runescape-launcher/runescape"
35 -
36 -SLOT="0"
37 -
38 -IUSE="kde"
39 -
40 -KEYWORDS="-* ~amd64"
41 -
42 -LICENSE="RuneScape-EULA"
43 -RESTRICT="bindist mirror strip"
44 -
45 -S="${WORKDIR}"
46 -
47 -RDEPEND="
48 - media-libs/libpng:1.2
49 - >=media-libs/libsdl2-2.0.2
50 - >=media-libs/glew-1.10.0:0/1.10
51 - >=media-libs/libvorbis-1.3.2
52 - >=net-libs/webkit-gtk-2.4.8:2
53 - >=net-misc/curl-7.35.0
54 -"
55 -
56 -src_prepare() {
57 - # Fix path in launcher script
58 - sed -i "s:/usr/share/games/$PN:/opt/$PN:" usr/bin/$PN || die
59 -
60 - # Add missing trailing semicolon to .desktop MimeType entry
61 - sed -i '/MimeType=/{/;$/!{s/$/;/}}' usr/share/applications/${PN}.desktop || die
62 -
63 - # Fix path to launcher script
64 - sed -i "s:/usr/bin/$PN:/opt/bin/$PN:" usr/share/applications/${PN}.desktop || die
65 -
66 - xdg_src_prepare
67 -
68 - eapply_user
69 -}
70 -
71 -src_install() {
72 - into /opt
73 - dobin usr/bin/$PN
74 - dodoc usr/share/doc/$PN/*
75 -
76 - exeinto /opt/$PN
77 - doexe usr/share/games/$PN/runescape
78 -
79 - insinto /usr/share/applications
80 - doins usr/share/applications/${PN}.desktop
81 -
82 - insinto /usr/share/icons
83 - doins -r usr/share/icons/hicolor
84 -
85 - if use kde ; then
86 - insinto /usr/share/kde4
87 - doins -r usr/share/kde4/services
88 - fi
89 -}
90 -
91 -pkg_preinst() {
92 - xdg_pkg_preinst
93 - gnome2_icon_savelist
94 -}
95 -
96 -pkg_postinst() {
97 - xdg_pkg_postinst
98 - gnome2_icon_cache_update
99 -}
100 -
101 -pkg_postrm() {
102 - xdg_pkg_postrm
103 - gnome2_icon_cache_update
104 -}