1 |
commit: 7c9adb59daba6e9d352585b527022cb8698371d2 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 2 20:59:53 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 2 20:59:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9adb59 |
7 |
|
8 |
games-simulation/train-valley: New package |
9 |
|
10 |
Package-Manager: Portage-2.3.70, Repoman-2.3.16 |
11 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
12 |
|
13 |
games-simulation/train-valley/Manifest | 1 + |
14 |
games-simulation/train-valley/metadata.xml | 11 ++++ |
15 |
.../train-valley/train-valley-1.3.31403.ebuild | 61 ++++++++++++++++++++++ |
16 |
3 files changed, 73 insertions(+) |
17 |
|
18 |
diff --git a/games-simulation/train-valley/Manifest b/games-simulation/train-valley/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..2e3e1fcf138 |
21 |
--- /dev/null |
22 |
+++ b/games-simulation/train-valley/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST train_valley_1_3_31403.sh 196066169 BLAKE2B fe9e6ae5b0ef76794823dc86ed100fdac355d3929d85a9a12096f79cf9e6f946e2c85b5b737ebcab813ceef29094734f74546fff06124fe4bf07ef224d5842ff SHA512 16fd627f8ca6399579b17d7a4ce29caba554fbfb0dc72b40827f1c3a061d8c238a7faeb1b5171917362d381642e8cb066cdad5556fb71f4d27225bf227d735cd |
25 |
|
26 |
diff --git a/games-simulation/train-valley/metadata.xml b/games-simulation/train-valley/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000000..1dbebd848c8 |
29 |
--- /dev/null |
30 |
+++ b/games-simulation/train-valley/metadata.xml |
31 |
@@ -0,0 +1,11 @@ |
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 |
+ <use> |
40 |
+ <flag name="gui">Install the GUI for configuring screen resolution and input</flag> |
41 |
+ </use> |
42 |
+</pkgmetadata> |
43 |
|
44 |
diff --git a/games-simulation/train-valley/train-valley-1.3.31403.ebuild b/games-simulation/train-valley/train-valley-1.3.31403.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..eeda5d017b7 |
47 |
--- /dev/null |
48 |
+++ b/games-simulation/train-valley/train-valley-1.3.31403.ebuild |
49 |
@@ -0,0 +1,61 @@ |
50 |
+# Copyright 1999-2019 Gentoo Authors |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=7 |
54 |
+ |
55 |
+inherit eutils desktop unpacker xdg-utils |
56 |
+ |
57 |
+DESCRIPTION="Build railroads in order to connect cities, tunnels, and bridges" |
58 |
+HOMEPAGE="http://train-valley.com/tv1.html" |
59 |
+SRC_URI="${P//[-.]/_}.sh" |
60 |
+LICENSE="all-rights-reserved" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="-* ~amd64 ~x86" |
63 |
+IUSE="+gui" |
64 |
+RESTRICT="bindist fetch splitdebug" |
65 |
+ |
66 |
+RDEPEND=" |
67 |
+ virtual/opengl |
68 |
+ x11-libs/libX11 |
69 |
+ x11-libs/libXrandr |
70 |
+ gui? ( |
71 |
+ dev-libs/glib:2 |
72 |
+ x11-libs/gdk-pixbuf:2 |
73 |
+ x11-libs/gtk+:2 |
74 |
+ ) |
75 |
+" |
76 |
+ |
77 |
+S="${WORKDIR}/data/noarch/game" |
78 |
+ |
79 |
+DIR="/opt/${PN}" |
80 |
+QA_PREBUILT="${DIR}/*" |
81 |
+ |
82 |
+pkg_nofetch() { |
83 |
+ einfo "Please buy and download ${SRC_URI} from:" |
84 |
+ einfo " https://www.gog.com/game/${PN//-/_}" |
85 |
+ einfo "and move it to your distfiles directory." |
86 |
+} |
87 |
+ |
88 |
+src_unpack() { |
89 |
+ unpack_zip ${A} |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ exeinto "${DIR}" |
94 |
+ newexe ${PN}.$(usex amd64 x86_64 x86) ${PN} |
95 |
+ make_wrapper ${PN} "${DIR}"/${PN} |
96 |
+ |
97 |
+ insinto "${DIR}" |
98 |
+ doins -r ${PN}_Data/ |
99 |
+ rm -r "${ED}/${DIR}"/${PN}_Data/*/$(usex amd64 x86 x86_64) || die |
100 |
+ |
101 |
+ if ! use gui; then |
102 |
+ rm "${ED}/${DIR}"/${PN}_Data/Plugins/*/ScreenSelector.so || die |
103 |
+ fi |
104 |
+ |
105 |
+ newicon -s 128 ${PN}_Data/Resources/UnityPlayer.png ${PN}.png |
106 |
+ make_desktop_entry ${PN} "Train Valley" |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { xdg_icon_cache_update; } |
110 |
+pkg_postrm() { xdg_icon_cache_update; } |