Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/slime-rancher/
Date: Wed, 01 Apr 2020 21:20:29
Message-Id: 1585775994.00b5384e280a30a1c914ff8c2087d7fa119c0544.chewi@gentoo
1 commit: 00b5384e280a30a1c914ff8c2087d7fa119c0544
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 1 21:19:54 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 1 21:19:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00b5384e
7
8 games-simulation/slime-rancher: New package
9
10 Package-Manager: Portage-2.3.96, Repoman-2.3.20
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 games-simulation/slime-rancher/Manifest | 1 +
14 games-simulation/slime-rancher/metadata.xml | 8 +++
15 .../slime-rancher-1.4.1c_p34605.ebuild | 59 ++++++++++++++++++++++
16 3 files changed, 68 insertions(+)
17
18 diff --git a/games-simulation/slime-rancher/Manifest b/games-simulation/slime-rancher/Manifest
19 new file mode 100644
20 index 00000000000..07b70c9122a
21 --- /dev/null
22 +++ b/games-simulation/slime-rancher/Manifest
23 @@ -0,0 +1 @@
24 +DIST slime_rancher_1_4_1c_34605.sh 637631767 BLAKE2B e3742178acfb9b80429117a37e8c7ec226345fb20b762ef80ca7ff7d58bcde039a199db5f352e78ce6935b6b261924780f54c84dd706a8031b427c9bd52de2a7 SHA512 c9124a7685c12dab942cde3e4b7e4140156c9d1551043d450c0c2f2eb02d1db61b99f22803b1058634abff86e783c889badf5834f0c2f7048a97dc168c962908
25
26 diff --git a/games-simulation/slime-rancher/metadata.xml b/games-simulation/slime-rancher/metadata.xml
27 new file mode 100644
28 index 00000000000..26079e608be
29 --- /dev/null
30 +++ b/games-simulation/slime-rancher/metadata.xml
31 @@ -0,0 +1,8 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="project">
36 + <email>games@g.o</email>
37 + <name>Gentoo Games Project</name>
38 + </maintainer>
39 +</pkgmetadata>
40
41 diff --git a/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild b/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild
42 new file mode 100644
43 index 00000000000..f69d7ad4424
44 --- /dev/null
45 +++ b/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild
46 @@ -0,0 +1,59 @@
47 +# Copyright 1999-2020 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +inherit eutils desktop unpacker xdg
53 +
54 +MY_PN="SlimeRancher"
55 +MY_P="${P//[-.]/_}"
56 +MY_P="${MY_P//_p/_}"
57 +
58 +DESCRIPTION="Cute game where you cultivate slimes on a distant planet"
59 +HOMEPAGE="http://www.slimerancher.com/"
60 +SRC_URI="${MY_P}.sh"
61 +LICENSE="GOG-EULA"
62 +SLOT="0"
63 +KEYWORDS="-* ~amd64"
64 +RESTRICT="bindist fetch splitdebug"
65 +
66 +RDEPEND="
67 + sys-libs/glibc
68 + virtual/opengl
69 +"
70 +
71 +BDEPEND="app-arch/unzip"
72 +
73 +S="${WORKDIR}/data/noarch/game"
74 +
75 +DIR="/opt/${PN}"
76 +QA_PREBUILT="${DIR}/*"
77 +
78 +pkg_nofetch() {
79 + einfo "Please buy and download ${SRC_URI} from:"
80 + einfo " https://www.gog.com/game/${PN//-/_}"
81 + einfo "and move it to your distfiles directory."
82 +}
83 +
84 +src_unpack() {
85 + unpack_zip ${A}
86 +}
87 +
88 +src_prepare() {
89 + default
90 +
91 + # Some Unity games have a GUI launcher but this one doesn't use it.
92 + rm ${MY_PN}_Data/Plugins/x86_64/ScreenSelector.so || die
93 +}
94 +
95 +src_install() {
96 + exeinto "${DIR}"
97 + newexe ${MY_PN}.x86_64 ${MY_PN}
98 + make_wrapper ${PN} "${DIR}"/${MY_PN}
99 +
100 + insinto "${DIR}"
101 + doins -r ${MY_PN}_Data/
102 +
103 + newicon -s 128 ${MY_PN}_Data/Resources/UnityPlayer.png ${PN}.png
104 + make_desktop_entry ${PN} "Slime Rancher"
105 +}