From 2a41d708c59e9ab0d0df25c5ff0e3c2f76976e5c Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 7 Feb 2020 15:10:45 +0100 Subject: games-simulation/singularity: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../singularity/singularity-1.0_alpha1-r1.ebuild | 46 ++++++++++++++++++++++ .../singularity/singularity-1.0_alpha1.ebuild | 44 --------------------- 2 files changed, 46 insertions(+), 44 deletions(-) create mode 100644 games-simulation/singularity/singularity-1.0_alpha1-r1.ebuild delete mode 100644 games-simulation/singularity/singularity-1.0_alpha1.ebuild (limited to 'games-simulation') diff --git a/games-simulation/singularity/singularity-1.0_alpha1-r1.ebuild b/games-simulation/singularity/singularity-1.0_alpha1-r1.ebuild new file mode 100644 index 000000000000..644b755a6c29 --- /dev/null +++ b/games-simulation/singularity/singularity-1.0_alpha1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit desktop eutils python-single-r1 + +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/ https://github.com/singularity/singularity" +SRC_URI="https://github.com/singularity/singularity/releases/download/${P/_alpha/a}/${P/_alpha/a}.tar.gz + http://emhsoft.com/singularity/${MUSIC}.zip" + +LICENSE="GPL-2 CC-BY-SA-2.5" +SLOT="0" +KEYWORDS="~amd64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_MULTI_USEDEP}] + dev-python/pygame[${PYTHON_MULTI_USEDEP}] + dev-python/polib[${PYTHON_MULTI_USEDEP}] + ') +" +DEPEND="${RDEPEND}" +BDEPEND="app-arch/unzip" + +S="${WORKDIR}/${P/_alpha/a}" + +src_install() { + insinto /usr/share/${PN} + doins -r "${PN}" "${PN}.py" + + python_optimize "${ED}/usr/share/${PN}" + + insinto /usr/share/${PN}/${PN}/music + doins "${WORKDIR}"/${MUSIC}/* + + make_wrapper ${PN} "${EPYTHON} ${PN}.py" /usr/share/${PN} + dodoc README.txt TODO Changelog AUTHORS + + domenu "${PN}.desktop" + newicon "${PN}"/data/themes/default/images/icon.png "${PN}.png" +} diff --git a/games-simulation/singularity/singularity-1.0_alpha1.ebuild b/games-simulation/singularity/singularity-1.0_alpha1.ebuild deleted file mode 100644 index d54f147ac48d..000000000000 --- a/games-simulation/singularity/singularity-1.0_alpha1.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) - -inherit desktop eutils python-single-r1 - -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/ https://github.com/singularity/singularity" -SRC_URI="https://github.com/singularity/singularity/releases/download/${P/_alpha/a}/${P/_alpha/a}.tar.gz - http://emhsoft.com/singularity/${MUSIC}.zip" - -LICENSE="GPL-2 CC-BY-SA-2.5" -SLOT="0" -KEYWORDS="~amd64 ~x86" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pygame[${PYTHON_USEDEP}] - dev-python/polib[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND="app-arch/unzip" - -S="${WORKDIR}/${P/_alpha/a}" - -src_install() { - insinto /usr/share/${PN} - doins -r "${PN}" "${PN}.py" - - python_optimize "${ED}/usr/share/${PN}" - - insinto /usr/share/${PN}/${PN}/music - doins "${WORKDIR}"/${MUSIC}/* - - make_wrapper ${PN} "${EPYTHON} ${PN}.py" /usr/share/${PN} - dodoc README.txt TODO Changelog AUTHORS - - domenu "${PN}.desktop" - newicon "${PN}"/data/themes/default/images/icon.png "${PN}.png" -} -- cgit v1.2.3-65-gdbad