You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
3 years ago
|
|
||
|
DISTUTILS_SINGLE_IMPL=1
|
||
3 years ago
|
PYTHON_COMPAT=( python3_{8..10} )
|
||
3 years ago
|
inherit desktop distutils-r1
|
||
|
|
||
3 years ago
|
SINGULARITY_MUSIC="endgame-${PN}-music-007"
|
||
|
|
||
3 years ago
|
DESCRIPTION="Simulation of a true AI. Go from computer to computer, chased by the whole world"
|
||
3 years ago
|
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"
|
||
3 years ago
|
|
||
3 years ago
|
LICENSE="GPL-2+ BitstreamVera CC0-1.0 CC-BY-SA-3.0"
|
||
3 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
|
|
||
3 years ago
|
RDEPEND="
|
||
3 years ago
|
$(python_gen_cond_dep '
|
||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||
|
dev-python/polib[${PYTHON_USEDEP}]
|
||
3 years ago
|
dev-python/pygame[${PYTHON_USEDEP}]
|
||
3 years ago
|
')
|
||
3 years ago
|
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
|
||
3 years ago
|
|
||
|
src_install() {
|
||
3 years ago
|
local DOCS=( AUTHORS.txt Changelog.txt README.txt TODO )
|
||
3 years ago
|
distutils-r1_src_install
|
||
|
|
||
3 years ago
|
python_moduleinto ${PN}/music
|
||
|
python_domodule ../${SINGULARITY_MUSIC}/.
|
||
3 years ago
|
|
||
|
newicon ${PN}/data/themes/default/images/icon.png ${PN}.png
|
||
3 years ago
|
domenu ${PN}.desktop
|
||
3 years ago
|
}
|