summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-01-27 15:16:46 -0500
committerIonen Wolkens <ionen@gentoo.org>2023-01-27 15:24:58 -0500
commit3671e211d4de16c7d09b407ab64ec476b013fc5c (patch)
tree8da3389021c14c18a24fd3d722f44b8cd206e2f1 /games-puzzle/brainworkshop
parentdev-java/error-prone-annotations: Stabilize 2.16 x86, #892249 (diff)
downloadgentoo-3671e211d4de16c7d09b407ab64ec476b013fc5c.tar.gz
gentoo-3671e211d4de16c7d09b407ab64ec476b013fc5c.tar.bz2
gentoo-3671e211d4de16c7d09b407ab64ec476b013fc5c.zip
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@gentoo.org>
Diffstat (limited to 'games-puzzle/brainworkshop')
-rw-r--r--games-puzzle/brainworkshop/Manifest1
-rw-r--r--games-puzzle/brainworkshop/brainworkshop-5.0.2_p20230115.ebuild50
2 files changed, 51 insertions, 0 deletions
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
+}