Gentoo Archives: gentoo-commits

From: "Vadim A. Misbakh-Soloviov" <mva@×××.name>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-rpg/torchlight2/
Date: Thu, 25 Aug 2016 16:09:54
Message-Id: 1472141372.f83a5aeeb0b5d9b2265b0251b89f6da03bb1ffb1.mva@gentoo
1 commit: f83a5aeeb0b5d9b2265b0251b89f6da03bb1ffb1
2 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
3 AuthorDate: Thu Aug 25 16:09:32 2016 +0000
4 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
5 CommitDate: Thu Aug 25 16:09:32 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=f83a5aee
7
8 torchlight2: added
9
10 games-rpg/torchlight2/metadata.xml | 14 +++++
11 games-rpg/torchlight2/torchlight2-20150401.ebuild | 63 +++++++++++++++++++++++
12 2 files changed, 77 insertions(+)
13
14 diff --git a/games-rpg/torchlight2/metadata.xml b/games-rpg/torchlight2/metadata.xml
15 new file mode 100644
16 index 0000000..23da526
17 --- /dev/null
18 +++ b/games-rpg/torchlight2/metadata.xml
19 @@ -0,0 +1,14 @@
20 +<?xml version="1.0" encoding="UTF-8"?>
21 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
22 +<pkgmetadata>
23 +<maintainer>
24 + <email>mva@×××.name</email>
25 + <description>
26 + If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet.
27 + </description>
28 + <name>Vadim A. Misbakh-Soloviov</name>
29 +</maintainer>
30 +<longdescription>FIXME</longdescription>
31 +<use>
32 +</use>
33 +</pkgmetadata>
34
35 diff --git a/games-rpg/torchlight2/torchlight2-20150401.ebuild b/games-rpg/torchlight2/torchlight2-20150401.ebuild
36 new file mode 100644
37 index 0000000..9d93de3
38 --- /dev/null
39 +++ b/games-rpg/torchlight2/torchlight2-20150401.ebuild
40 @@ -0,0 +1,63 @@
41 +# Copyright 1999-2016 Gentoo Foundation
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI="6"
45 +
46 +inherit eutils unpacker
47 +
48 +TIMESTAMP="2015-04-01"
49 +
50 +DESCRIPTION="An action role-playing game, made by the creators of Diablo"
51 +HOMEPAGE="http://torchlight2game.com/"
52 +
53 +SLOT="0"
54 +LICENSE="as-is"
55 +KEYWORDS="-* ~amd64 ~x86"
56 +RESTRICT="fetch"
57 +
58 +SRC_URI="Torchlight2-linux-${TIMESTAMP}.sh"
59 +
60 +RDEPEND="
61 +"
62 +DEPEND="${RDEPEND}"
63 +
64 +S="${WORKDIR}"
65 +MY_PN="${PN^}"
66 +
67 +QA_PRESTRIPPED="
68 + opt/${MY_PN}/lib64/*
69 + opt/${MY_PN}/lib/*
70 +"
71 +
72 +pkg_nofetch() {
73 + ewarn
74 + ewarn "Place ${A} to ${DISTDIR}"
75 + ewarn
76 +}
77 +
78 +src_unpack() {
79 + unpack_mojosetup
80 +}
81 +
82 +src_install() {
83 + local dir="/opt/${MY_PN}"
84 +
85 + local arch=x86;
86 + use amd64 && arch="x86_64"
87 +
88 + insinto "${dir}"
89 + doins -r data/noarch/* "data/${arch}/$(get_libdir)"
90 + exeinto "${dir}"
91 +
92 + local exe modexe
93 + exe="${MY_PN}.bin.${arch}"
94 + modexe="ModLauncher.bin.${arch}"
95 +
96 + doexe "data/${arch}/${exe}" "data/${arch}/${modexe}"
97 +
98 + make_wrapper "${PN}" "./${exe}" "${dir}" "${dir}/$(get_libdir)"
99 + make_wrapper "${PN}-modlauncher" "./${modexe}" "${dir}" "${dir}/$(get_libdir)"
100 + newicon "data/noarch/Delvers.png" "${MY_PN}.png"
101 + make_desktop_entry "${PN}" "${MY_PN}: Play" "${MY_PN}"
102 + make_desktop_entry "${PN}-modlauncher" "${MY_PN}: Mods Launcher" "${MY_PN}"
103 +}