Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/FTL-gog/
Date: Mon, 04 Feb 2019 01:14:26
Message-Id: 1549242734.3c050a702c41ebdc685cb3ee0ae2877449e03b0a.asturm@gentoo
1 commit: 3c050a702c41ebdc685cb3ee0ae2877449e03b0a
2 Author: Rob Levitsky <kitsunenokenja <AT> protonmail <DOT> ch>
3 AuthorDate: Wed Dec 19 22:22:20 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 4 01:12:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c050a70
7
8 games-roguelike/FTL-gog: bump version to 1.6.9.25330
9
10 Signed-off-by: Rob Levitsky <kitsunenokenja <AT> protonmail.ch>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12 Closes: https://github.com/gentoo/gentoo/pull/10667
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 games-roguelike/FTL-gog/FTL-gog-1.6.9.25330.ebuild | 63 ++++++++++++++++++++++
16 games-roguelike/FTL-gog/Manifest | 1 +
17 2 files changed, 64 insertions(+)
18
19 diff --git a/games-roguelike/FTL-gog/FTL-gog-1.6.9.25330.ebuild b/games-roguelike/FTL-gog/FTL-gog-1.6.9.25330.ebuild
20 new file mode 100644
21 index 00000000000..d06484d8ce7
22 --- /dev/null
23 +++ b/games-roguelike/FTL-gog/FTL-gog-1.6.9.25330.ebuild
24 @@ -0,0 +1,63 @@
25 +# Copyright 1999-2018 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +inherit desktop unpacker
31 +
32 +DESCRIPTION="Top-down roguelike space ship simulator"
33 +HOMEPAGE="https://www.gog.com/game/faster_than_light"
34 +SRC_URI="ftl_advanced_edition_${PV//./_}.sh"
35 +RESTRICT="bindist fetch mirror strip test"
36 +
37 +LICENSE="GOG-EULA"
38 +SLOT="0"
39 +KEYWORDS="-* ~amd64 ~x86"
40 +IUSE=""
41 +
42 +BDEPEND="app-arch/unzip"
43 +RDEPEND="media-libs/freetype
44 + media-libs/libsdl[X,sound,opengl,video]
45 + media-libs/libpng
46 + sys-libs/zlib
47 + virtual/opengl"
48 +
49 +S="${WORKDIR}/data/noarch"
50 +
51 +pkg_nofetch() {
52 + elog "Please buy and download ${SRC_URI} from"
53 + elog "https://www.gog.com/game/faster_than_light"
54 +}
55 +
56 +src_unpack() {
57 + unpack_zip "${DISTDIR}/${A}"
58 +}
59 +
60 +src_prepare() {
61 + default
62 + rm -r support/{xdg*,*.{sh,txt}} || die
63 + if ! use x86; then
64 + rm game/data/FTL.x86 || die
65 + fi
66 + if ! use amd64; then
67 + rm game/data/FTL.amd64 || die
68 + fi
69 +
70 + sed -i start.sh -e '/chmod/d' || die
71 +}
72 +
73 +src_install() {
74 + insinto /opt/gog/FTL
75 + doins -r .
76 + fperms +x /opt/gog/FTL/{start.sh,game/FTL,game/data/FTL}
77 +
78 + if use x86; then
79 + fperms +x /opt/gog/FTL/game/data/FTL.x86
80 + fi
81 + if use amd64; then
82 + fperms +x /opt/gog/FTL/game/data/FTL.amd64
83 + fi
84 +
85 + make_desktop_entry "/opt/gog/FTL/start.sh" "FTL: Advanced Edition" FTL
86 + newicon support/icon.png FTL.png
87 +}
88
89 diff --git a/games-roguelike/FTL-gog/Manifest b/games-roguelike/FTL-gog/Manifest
90 index bf66610bb8f..01ad988f500 100644
91 --- a/games-roguelike/FTL-gog/Manifest
92 +++ b/games-roguelike/FTL-gog/Manifest
93 @@ -1 +1,2 @@
94 DIST ftl_advanced_edition_1_6_8_24110.sh 201034290 BLAKE2B 6ed07bcbcacaf81704682be438ae8bfa4ccfe906e2845ad25550b081d33964f8c3d6f40326a56168b072e99e0c30190579bcd756f8a3c055a5b54907a0913014 SHA512 ad66211ad077738797d0a8f33bc43c01dbcd6bdff3e4d9a8316e0ebca06a94b76380911e54c4b16dfc2f836cdbb6a025383714f0de4b9f9c19376660a695c678
95 +DIST ftl_advanced_edition_1_6_9_25330.sh 200833898 BLAKE2B 9eb048e302158f1cc040492a9fb5bd84038dd9202b8cfdd08ec50a3e55326da18048f4eab0c8b79ecf47229d54b59fca46cebaa107d253eadc0cc5659da4792b SHA512 7b1d87b5def455989290366ef80652361dee9d0fd2838806d2386d8a1df44e0ab125c5538aa07b20382be4aa3054b14b4a489b39b6aa252f3cc00ead8504186c