summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-11-13 17:31:42 -0500
committerIonen Wolkens <ionen@gentoo.org>2021-11-13 19:44:14 -0500
commitb8e2be976ccd9075fc6840afcbabb9ac6021ae74 (patch)
tree8b078b71e8a0f794a7b9768ec5311720b8d53c55 /games-simulation/singularity
parentgames-simulation/singularity: switch remote-id to github (diff)
downloadgentoo-b8e2be976ccd9075fc6840afcbabb9ac6021ae74.tar.gz
gentoo-b8e2be976ccd9075fc6840afcbabb9ac6021ae74.tar.bz2
gentoo-b8e2be976ccd9075fc6840afcbabb9ac6021ae74.zip
games-simulation/singularity: EAPI7->8, revamp and various fixes
Notable changes: * enable py3.10 * enable tests * allow building html docs * depend on sdl2-mixer rather than sdl1's for pygame-2 * add sdl2-image[jpeg,png], pygame-2 doesn't depend on USE unlike 1 * install music in a directory the game actually look in * 3 missing music files are now installed (skipped subdirs) * update licenses to be more accurate Closes: https://bugs.gentoo.org/797727 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-simulation/singularity')
-rw-r--r--games-simulation/singularity/singularity-1.00-r1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/games-simulation/singularity/singularity-1.00-r1.ebuild b/games-simulation/singularity/singularity-1.00-r1.ebuild
new file mode 100644
index 000000000000..6f80755d6835
--- /dev/null
+++ b/games-simulation/singularity/singularity-1.00-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python3_{8..10} )
+inherit desktop distutils-r1
+
+SINGULARITY_MUSIC="endgame-${PN}-music-007"
+
+DESCRIPTION="Simulation of a true AI. Go from computer to computer, chased by the whole world"
+HOMEPAGE="http://www.emhsoft.com/singularity/"
+SRC_URI="
+ https://github.com/singularity/singularity/releases/download/v${PV}/${P}.tar.gz
+ https://emhsoft.com/singularity/${SINGULARITY_MUSIC}.zip"
+
+LICENSE="GPL-2+ BitstreamVera CC0-1.0 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/polib[${PYTHON_USEDEP}]
+ dev-python/pygame[${PYTHON_USEDEP}]
+ ')
+ media-libs/sdl2-image[jpeg,png]
+ media-libs/sdl2-mixer[vorbis]
+ !sys-cluster/singularity"
+BDEPEND="app-arch/unzip"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+src_install() {
+ local DOCS=( AUTHORS.txt Changelog.txt README.txt TODO )
+ distutils-r1_src_install
+
+ python_moduleinto ${PN}/music
+ python_domodule ../${SINGULARITY_MUSIC}/.
+
+ newicon ${PN}/data/themes/default/images/icon.png ${PN}.png
+ domenu ${PN}.desktop
+}