Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/singularity/
Date: Thu, 26 Dec 2019 17:19:30
Message-Id: 1577380760.e181864d25b19d28a873169bd04f9e2aac00a77e.pacho@gentoo
1 commit: e181864d25b19d28a873169bd04f9e2aac00a77e
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 26 17:17:54 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 26 17:19:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e181864d
7
8 games-simulation/singularity: Version bump supporting python3
9
10 Package-Manager: Portage-2.3.82, Repoman-2.3.20
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 games-simulation/singularity/Manifest | 2 +
14 .../singularity/singularity-1.0_alpha1.ebuild | 44 ++++++++++++++++++++++
15 2 files changed, 46 insertions(+)
16
17 diff --git a/games-simulation/singularity/Manifest b/games-simulation/singularity/Manifest
18 index b8204206060..b77ad70dbed 100644
19 --- a/games-simulation/singularity/Manifest
20 +++ b/games-simulation/singularity/Manifest
21 @@ -1,2 +1,4 @@
22 DIST endgame-singularity-music-006.zip 28250705 BLAKE2B 62f39536afe12d0928056cca05cccbc7542d79ce5a2acfb23dc99e66ea291eeadc2ae8e771cfed5a96ff69bdc217b69f44b8c5143a323fa5c06fe2d34ac6d425 SHA512 47e489112309cc742c2dcffec004aff25c54488fdf2a5f2dc67b7dcf67ca55996fe8e8403e4a16712fbc4e22289f12e612ad9d4322cd1d1aaab871f0ffb27e19
23 +DIST endgame-singularity-music-007.zip 51774799 BLAKE2B 78595b16e422d2312be860686aca9401f6f1eed35fe40dbbc3a3999b1feb5e32aa6d51a66d94c9241aca2b6606bb7135491298b94c8033a1437c2cd7b23f9120 SHA512 ab46e77c833085f0c5b1b46fef72ab807e79ca422ad043ef67a4bf4384cb0177319f21b4bd01496e6c3fc6fe9a2f36ec256e19f0e829ad7bf9f0c5bd38bf0fe5
24 DIST singularity-0.30c-src.tar.gz 2265133 BLAKE2B a3f7612ac173ef34183ea500d8bef8b1c823b54d0b0acb6a40bce058497d424f76df5fd51da8f1acfb636a556759cea2114529e0e60b453652d0b04a139b19a1 SHA512 ffca50c179b745561a25e3fb3525abb862d72f63f533f8a41472067d0ce94c8a236486c9c40a5040335d84e903c498805d591dc546a92d0a7651105103fe114f
25 +DIST singularity-1.0a1.tar.gz 1927083 BLAKE2B aeed099dd33c135f5b2e21f5e907646f32aaa0879a1b2e1f09c19045499ae52b004a8f52fee72bfe0977805899e4c7cdff6abf36e9fd3604f73cba7e395c265e SHA512 8ce624a50819e0abc04fd81a1d7658eab64ea8325de0a5790ec2a92e5fa6b62cfef8fe705fe8b209194c05927e3cf5adfc6f48934e0a70edf8b251c24084fc25
26
27 diff --git a/games-simulation/singularity/singularity-1.0_alpha1.ebuild b/games-simulation/singularity/singularity-1.0_alpha1.ebuild
28 new file mode 100644
29 index 00000000000..5d2e8e29eb0
30 --- /dev/null
31 +++ b/games-simulation/singularity/singularity-1.0_alpha1.ebuild
32 @@ -0,0 +1,44 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python3_{6,7} )
38 +
39 +inherit desktop eutils python-single-r1
40 +
41 +MUSIC="endgame-${PN}-music-007"
42 +DESCRIPTION="Simulation of a true AI. Go from computer to computer, chased by the whole world"
43 +HOMEPAGE="http://www.emhsoft.com/singularity/ https://github.com/singularity/singularity"
44 +SRC_URI="https://github.com/singularity/singularity/releases/download/${P/_alpha/a}/${P/_alpha/a}.tar.gz
45 + http://emhsoft.com/singularity/${MUSIC}.zip"
46 +
47 +LICENSE="GPL-2 CC-BY-SA-2.5"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
51 +
52 +RDEPEND="${PYTHON_DEPS}
53 + dev-python/numpy[${PYTHON_USEDEP}]
54 + dev-python/pygame[${PYTHON_USEDEP}]
55 + dev-python/polib[${PYTHON_USEDEP}]
56 +"
57 +DEPEND="${RDEPEND}"
58 +BDEPEND="app-arch/unzip"
59 +
60 +S="${WORKDIR}/${P/_alpha/a}"
61 +
62 +src_install() {
63 + insinto /usr/share/${PN}
64 + doins -r "${PN}" "${PN}.py"
65 +
66 + python_optimize "${ED}/usr/share/${PN}"
67 +
68 + insinto /usr/share/${PN}/${PN}/music
69 + doins "${WORKDIR}"/${MUSIC}/*
70 +
71 + make_wrapper ${PN} "${EPYTHON} ${PN}.py" /usr/share/${PN}
72 + dodoc README.txt TODO Changelog AUTHORS
73 +
74 + domenu "${PN}.desktop"
75 + newicon "${PN}"/data/themes/default/images/icon.png "${PN}.png"
76 +}