Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/FTL-gog/
Date: Mon, 02 Apr 2018 21:20:59
Message-Id: 1522704033.3499912f322e54d99e599175a6e1f0e50bf27238.monsieurp@gentoo
1 commit: 3499912f322e54d99e599175a6e1f0e50bf27238
2 Author: Rob Levitsky <kitsunenokenja <AT> protonmail <DOT> ch>
3 AuthorDate: Thu Mar 29 01:53:01 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 2 21:20:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3499912f
7
8 games-roguelike/FTL-gog: version bump.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11 Closes: https://github.com/gentoo/gentoo/pull/7665
12
13 games-roguelike/FTL-gog/FTL-gog-1.6.7.18662.ebuild | 61 ++++++++++++++++++++++
14 games-roguelike/FTL-gog/Manifest | 1 +
15 2 files changed, 62 insertions(+)
16
17 diff --git a/games-roguelike/FTL-gog/FTL-gog-1.6.7.18662.ebuild b/games-roguelike/FTL-gog/FTL-gog-1.6.7.18662.ebuild
18 new file mode 100644
19 index 00000000000..513747171d9
20 --- /dev/null
21 +++ b/games-roguelike/FTL-gog/FTL-gog-1.6.7.18662.ebuild
22 @@ -0,0 +1,61 @@
23 +# Copyright 1999-2018 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit desktop unpacker
29 +
30 +DESCRIPTION="Top-down roguelike space ship simulator"
31 +HOMEPAGE="https://www.gog.com/game/faster_than_light"
32 +SRC_URI="ftl_advanced_edition_en_${PV//./_}.sh"
33 +RESTRICT="bindist fetch mirror strip test"
34 +
35 +LICENSE="GOG-EULA"
36 +SLOT="0"
37 +KEYWORDS="-* ~amd64 ~x86"
38 +IUSE=""
39 +
40 +DEPEND="app-arch/unzip"
41 +RDEPEND="media-libs/freetype
42 + media-libs/libsdl[X,sound,opengl,video]
43 + media-libs/libpng
44 + sys-libs/zlib
45 + virtual/opengl"
46 +
47 +S="${WORKDIR}/data/noarch"
48 +
49 +pkg_nofetch() {
50 + elog "Please buy and download ${SRC_URI} from"
51 + elog "https://www.gog.com/game/faster_than_light"
52 +}
53 +
54 +src_unpack() {
55 + unpack_zip "${DISTDIR}/${A}"
56 +}
57 +
58 +src_prepare() {
59 + default
60 + rm -r support/{xdg*,*.{sh,txt}} || die
61 + if ! use x86; then
62 + rm game/data/FTL.x86 || die
63 + fi
64 + if ! use amd64; then
65 + rm game/data/FTL.amd64 || die
66 + fi
67 +}
68 +
69 +src_install() {
70 + insinto /opt/gog/FTL
71 + doins -r .
72 + fperms +x /opt/gog/FTL/{start.sh,game/FTL}
73 +
74 + if use x86; then
75 + fperms +x /opt/gog/FTL/game/data/FTL.x86
76 + fi
77 + if use amd64; then
78 + fperms +x /opt/gog/FTL/game/data/FTL.amd64
79 + fi
80 +
81 + make_desktop_entry "/opt/gog/FTL/start.sh" "FTL: Advanced Edition" FTL
82 + newicon support/icon.png FTL.png
83 +}
84
85 diff --git a/games-roguelike/FTL-gog/Manifest b/games-roguelike/FTL-gog/Manifest
86 index 0833ae5534b..c0a81c7c7f7 100644
87 --- a/games-roguelike/FTL-gog/Manifest
88 +++ b/games-roguelike/FTL-gog/Manifest
89 @@ -1 +1,2 @@
90 DIST ftl_advanced_edition_en_1_6_3_17917.sh 190333601 BLAKE2B 18fb43da1718524fcdecbde9d9cbfbed84db6e5b3a49abbec9b331d13f9ce7ca807633f3ad126badba9e92278b264ab3de47efabbf772180a35c108ce07268f1 SHA512 6cc3770d9a3d9ac301d79eaee0b88d3d4bbf90186356d443f53d4e894b4cdefd36c080e23506d76e0a3f7e15267e3e206469872cc7b29ddeaa20d520b9dfddd0
91 +DIST ftl_advanced_edition_en_1_6_7_18662.sh 190506416 BLAKE2B 0a628e4de3a5539add2f421377c32ead5397ad1709e30124aa8c9d0874b98eb37cda97873b21dbb78fe635769c1a3c3254988ae22494805409d28f5e33417e44 SHA512 3e9c08d32964e21b49ad3e1b6a17c2349d516fdbea4118518e022134affc43dd27d2e60eea94784096aea4725f2656b43f6b6be9fe02eaed743c167ef842d66b