public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/user/superposition:master commit in: games-roguelike/FTL/
@ 2024-02-19 22:25 Philip Miess
  0 siblings, 0 replies; only message in thread
From: Philip Miess @ 2024-02-19 22:25 UTC (permalink / raw
  To: gentoo-commits

commit:     b85a87ab19083eec873d23f60cb09e8f2c832162
Author:     Philip Miess <Philip_Miess <AT> yahoo <DOT> com>
AuthorDate: Mon Feb 19 22:28:54 2024 +0000
Commit:     Philip Miess <Phil_miess <AT> yahoo <DOT> com>
CommitDate: Mon Feb 19 22:28:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/superposition.git/commit/?id=b85a87ab

add ftl version from humble bundle

Signed-off-by: Philip Miess <Philip_Miess <AT> yahoo.com>

 games-roguelike/FTL/FTL-1.6.12.0-r1.ebuild | 70 ++++++++++++++++++++++++++++++
 games-roguelike/FTL/Manifest               |  3 ++
 games-roguelike/FTL/metadata.xml           | 11 +++++
 3 files changed, 84 insertions(+)

diff --git a/games-roguelike/FTL/FTL-1.6.12.0-r1.ebuild b/games-roguelike/FTL/FTL-1.6.12.0-r1.ebuild
new file mode 100644
index 0000000..c1b8d2d
--- /dev/null
+++ b/games-roguelike/FTL/FTL-1.6.12.0-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop wrapper
+
+DESCRIPTION="Faster Than Light: A spaceship simulation real-time roguelike-like game"
+HOMEPAGE="https://subsetgames.com/ftl.html"
+SRC_URI="FTL.${PV}.Linux.zip"
+S="${WORKDIR}"/${PN}
+
+LICENSE="all-rights-reserved Boost-1.0 free-noncomm MIT bundled-libs? ( FTL LGPL-2.1 ZLIB libpng )"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="bundled-libs"
+
+RESTRICT="fetch bindist splitdebug"
+
+RDEPEND="
+	sys-devel/gcc[cxx]
+	virtual/opengl
+	!bundled-libs? (
+		media-libs/devil[png]
+		media-libs/freetype:2
+		media-libs/libsdl[X,sound,joystick,opengl,video]
+		sys-libs/zlib
+	)
+"
+
+QA_PREBUILT="
+	opt/${PN}/bin/${PN}
+	opt/${PN}/lib/*
+"
+
+pkg_nofetch() {
+	einfo "Please buy & download ${SRC_URI} from:"
+	einfo "  ${HOMEPAGE}"
+	einfo "and move it to your DISTDIR directory."
+	einfo
+}
+
+src_prepare() {
+	default
+
+	if ! use bundled-libs ; then
+		# no system lib for libbass available
+		find data/${ARCH}/lib -type f \! -name "libbass*" -delete || die
+	fi
+}
+
+src_install() {
+	local dir=/opt/${PN}
+
+	insinto ${dir}
+	doins -r data/resources
+
+	exeinto ${dir}/bin
+	doexe data/${ARCH}/bin/${PN}
+	exeinto ${dir}/lib
+	doexe data/${ARCH}/lib/*.so*
+
+	make_wrapper ${PN} "${dir}/bin/${PN}" "${dir}" "${dir}/lib"
+	make_desktop_entry ${PN} "Faster Than Light" "/usr/share/pixmaps/FTL.bmp"
+
+	newicon data/resources/exe_icon.bmp FTL.bmp
+
+	docinto html
+	dodoc ${PN}_README.html
+}

diff --git a/games-roguelike/FTL/Manifest b/games-roguelike/FTL/Manifest
new file mode 100644
index 0000000..9580f09
--- /dev/null
+++ b/games-roguelike/FTL/Manifest
@@ -0,0 +1,3 @@
+DIST FTL.1.6.12.0.Linux.zip 243100207 BLAKE2B 82422df2943982de38636afd47327af912f269a42c3cef115d08f0617b28b100a24b9bbc9c6a6528f2ed210d58982afce9639848bd33cd7eff41d7cdd296eacb SHA512 9daf0712897a79b8301ecca40a86e4e8c6676cb74fd61e832f570727aed0dce84174702651eadb2267625d5058fa689a49c2e4d14556e66a2baa832784ad9948
+EBUILD FTL-1.6.12.0-r1.ebuild 1474 BLAKE2B 4fd31a9fce8d1d3243d652b7e04e43613a47f0f2f42a33de0f6a371e5ca9ead9df3c7f149f3482d074f924abfe91379846a8be0a70b4bfadfd9ff4faf90f5ddb SHA512 05bdf795237f50e7aa97b8af97f11084e00c7829286a22744f2f48d107b262187507589b63163e2a7d5e14f142068fb6356fd0f6fbb4eca144702577d9d746b9
+MISC metadata.xml 327 BLAKE2B 5564d59d6bb745306f4ebf8fad1abed440fc8d9358608463174ea1eb753afbb77d813931bfd5aebd443a725ff7553678ab1364d5e3472de92e51c11e3542338e SHA512 3c40fa51a0d5dd60a42d22ce7eaa5c4fbbfae126201759243df1785fc686ad8096015fbbf82d733ad634804b0861d4538749a6335ebbaee59f432ceb7db6d90f

diff --git a/games-roguelike/FTL/metadata.xml b/games-roguelike/FTL/metadata.xml
new file mode 100644
index 0000000..14d02f0
--- /dev/null
+++ b/games-roguelike/FTL/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>games@gentoo.org</email>
+		<name>Gentoo Games Project</name>
+	</maintainer>
+	<use>
+		<flag name="bundled-libs">Use bundled libraries.</flag>
+	</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-19 22:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-19 22:25 [gentoo-commits] repo/user/superposition:master commit in: games-roguelike/FTL/ Philip Miess

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