commit:     3671e211d4de16c7d09b407ab64ec476b013fc5c
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 27 20:16:46 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Jan 27 20:24:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3671e211

games-puzzle/brainworkshop: add 5.0.2_p20230115

Includes non-trivial fixes for pyglet-2.x, do snapshot
for simplicity and avoiding pinning.

Also enable py3.11, seems to work fine.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 games-puzzle/brainworkshop/Manifest                |  1 +
 .../brainworkshop-5.0.2_p20230115.ebuild           | 50 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/games-puzzle/brainworkshop/Manifest 
b/games-puzzle/brainworkshop/Manifest
index 5513b27da4e9..eaf173fdb285 100644
--- a/games-puzzle/brainworkshop/Manifest
+++ b/games-puzzle/brainworkshop/Manifest
@@ -1 +1,2 @@
 DIST brainworkshop-5.0.2.tar.gz 7998711 BLAKE2B 
d2662d2e565b576b441a41ec9177c3bd17f30d0f671d67ee7497bc2a983ba193e977a0d4cb4bfcd684cc46fe918159ffa5181a141e591adf819b28e744437222
 SHA512 
07ab0b30cef92b3c5ac0476a1baa5afb8f57afb557b266169a7f72fe4cbe8c0afbf0db491a23106da6c61f055c24c5f0c4268ead41d92101e5a8284a7dc80265
+DIST brainworkshop-5.0.2_p20230115.tar.gz 8010699 BLAKE2B 
9a3f443949ea56c15c65ba21a5df9dc0f06449eb14252d1f643e3f0fd507bbf52cd2001c63f549b0d475d4e17f56b4f5ec9d3d1235705b71bb5ec2f3aebdc85e
 SHA512 
4aee26b0f92a14c362aa695f5325395fbef4517fc9fb6aeaa1c1d2d1123c60b574b8488c893204826bfd6194e4160c21be614b253004beb0626dc8ff7f23234b

diff --git a/games-puzzle/brainworkshop/brainworkshop-5.0.2_p20230115.ebuild 
b/games-puzzle/brainworkshop/brainworkshop-5.0.2_p20230115.ebuild
new file mode 100644
index 000000000000..fc0a9279d9d0
--- /dev/null
+++ b/games-puzzle/brainworkshop/brainworkshop-5.0.2_p20230115.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+inherit desktop python-single-r1
+
+HASH_BWORKSHOP=31b125162c63c111358ead73d9c02905363c8c1c
+
+DESCRIPTION="Short-term-memory training N-Back game"
+HOMEPAGE="https://github.com/brain-workshop/brainworkshop/";
+SRC_URI="
+       
https://github.com/brain-workshop/brainworkshop/archive/${HASH_BWORKSHOP}.tar.gz
+               -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${HASH_BWORKSHOP}"
+
+LICENSE="CC-Sampling-Plus-1.0 GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       $(python_gen_cond_dep 'dev-python/pyglet[${PYTHON_USEDEP},sound]')"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-5.0.2-datadir.patch
+)
+
+src_prepare() {
+       default
+
+       sed -i "s|@GENTOO_DATADIR@|${EPREFIX}/usr/share/${PN}|" ${PN}.py || die
+
+       python_fix_shebang ${PN}.py
+}
+
+src_install() {
+       newbin ${PN}.py ${PN}
+
+       insinto /usr/share/${PN}
+       doins -r res/.
+
+       dodoc Readme.md Readme-{instructions,resources}.txt 
data/Readme-stats.txt
+
+       domenu ${PN}.desktop
+       newicon res/misc/brain/brain.png ${PN}.png
+}

Reply via email to