public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-simulation/train-valley/
@ 2019-08-02 21:00 James Le Cuirot
  0 siblings, 0 replies; 2+ messages in thread
From: James Le Cuirot @ 2019-08-02 21:00 UTC (permalink / raw
  To: gentoo-commits

commit:     7c9adb59daba6e9d352585b527022cb8698371d2
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  2 20:59:53 2019 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Aug  2 20:59:53 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9adb59

games-simulation/train-valley: New package

Package-Manager: Portage-2.3.70, Repoman-2.3.16
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-simulation/train-valley/Manifest             |  1 +
 games-simulation/train-valley/metadata.xml         | 11 ++++
 .../train-valley/train-valley-1.3.31403.ebuild     | 61 ++++++++++++++++++++++
 3 files changed, 73 insertions(+)

diff --git a/games-simulation/train-valley/Manifest b/games-simulation/train-valley/Manifest
new file mode 100644
index 00000000000..2e3e1fcf138
--- /dev/null
+++ b/games-simulation/train-valley/Manifest
@@ -0,0 +1 @@
+DIST train_valley_1_3_31403.sh 196066169 BLAKE2B fe9e6ae5b0ef76794823dc86ed100fdac355d3929d85a9a12096f79cf9e6f946e2c85b5b737ebcab813ceef29094734f74546fff06124fe4bf07ef224d5842ff SHA512 16fd627f8ca6399579b17d7a4ce29caba554fbfb0dc72b40827f1c3a061d8c238a7faeb1b5171917362d381642e8cb066cdad5556fb71f4d27225bf227d735cd

diff --git a/games-simulation/train-valley/metadata.xml b/games-simulation/train-valley/metadata.xml
new file mode 100644
index 00000000000..1dbebd848c8
--- /dev/null
+++ b/games-simulation/train-valley/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>games@gentoo.org</email>
+		<name>Gentoo Games Project</name>
+	</maintainer>
+	<use>
+		<flag name="gui">Install the GUI for configuring screen resolution and input</flag>
+	</use>
+</pkgmetadata>

diff --git a/games-simulation/train-valley/train-valley-1.3.31403.ebuild b/games-simulation/train-valley/train-valley-1.3.31403.ebuild
new file mode 100644
index 00000000000..eeda5d017b7
--- /dev/null
+++ b/games-simulation/train-valley/train-valley-1.3.31403.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils desktop unpacker xdg-utils
+
+DESCRIPTION="Build railroads in order to connect cities, tunnels, and bridges"
+HOMEPAGE="http://train-valley.com/tv1.html"
+SRC_URI="${P//[-.]/_}.sh"
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="+gui"
+RESTRICT="bindist fetch splitdebug"
+
+RDEPEND="
+	virtual/opengl
+	x11-libs/libX11
+	x11-libs/libXrandr
+	gui? (
+		dev-libs/glib:2
+		x11-libs/gdk-pixbuf:2
+		x11-libs/gtk+:2
+	)
+"
+
+S="${WORKDIR}/data/noarch/game"
+
+DIR="/opt/${PN}"
+QA_PREBUILT="${DIR}/*"
+
+pkg_nofetch() {
+	einfo "Please buy and download ${SRC_URI} from:"
+	einfo "  https://www.gog.com/game/${PN//-/_}"
+	einfo "and move it to your distfiles directory."
+}
+
+src_unpack() {
+	unpack_zip ${A}
+}
+
+src_install() {
+	exeinto "${DIR}"
+	newexe ${PN}.$(usex amd64 x86_64 x86) ${PN}
+	make_wrapper ${PN} "${DIR}"/${PN}
+
+	insinto "${DIR}"
+	doins -r ${PN}_Data/
+	rm -r "${ED}/${DIR}"/${PN}_Data/*/$(usex amd64 x86 x86_64) || die
+
+	if ! use gui; then
+		rm "${ED}/${DIR}"/${PN}_Data/Plugins/*/ScreenSelector.so || die
+	fi
+
+	newicon -s 128 ${PN}_Data/Resources/UnityPlayer.png ${PN}.png
+	make_desktop_entry ${PN} "Train Valley"
+}
+
+pkg_postinst() { xdg_icon_cache_update; }
+pkg_postrm() { xdg_icon_cache_update; }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-simulation/train-valley/
@ 2021-08-23  4:06 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-08-23  4:06 UTC (permalink / raw
  To: gentoo-commits

commit:     c650be8a1355c234df2e95191787d16d42fc6d3e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 22 02:30:02 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 23 04:06:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c650be8a

games-simulation/train-valley: tidy ebuild

Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-simulation/train-valley/train-valley-1.3.31403.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/games-simulation/train-valley/train-valley-1.3.31403.ebuild b/games-simulation/train-valley/train-valley-1.3.31403.ebuild
index a1e958982c2..344e63467d7 100644
--- a/games-simulation/train-valley/train-valley-1.3.31403.ebuild
+++ b/games-simulation/train-valley/train-valley-1.3.31403.ebuild
@@ -8,6 +8,8 @@ inherit desktop unpacker wrapper xdg-utils
 DESCRIPTION="Build railroads in order to connect cities, tunnels, and bridges"
 HOMEPAGE="http://train-valley.com/tv1.html"
 SRC_URI="${P//[-.]/_}.sh"
+S="${WORKDIR}/data/noarch/game"
+
 LICENSE="all-rights-reserved"
 SLOT="0"
 KEYWORDS="-* ~amd64 ~x86"
@@ -25,10 +27,8 @@ RDEPEND="
 	)
 "
 
-S="${WORKDIR}/data/noarch/game"
-
 DIR="/opt/${PN}"
-QA_PREBUILT="${DIR}/*"
+QA_PREBUILT="${DIR#/}/*"
 
 pkg_nofetch() {
 	einfo "Please buy and download ${SRC_URI} from:"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-23  4:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-23  4:06 [gentoo-commits] repo/gentoo:master commit in: games-simulation/train-valley/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2019-08-02 21:00 James Le Cuirot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox