commit: 6afc638070e92d7a49a812711a9fea24603584b7 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Wed Apr 16 09:48:47 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Wed Apr 16 10:56:42 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6afc6380
games-puzzle/brainworkshop: add 5.0.3_p20250317, enable py3.13 While testing for py3.13, noticed that this was broken entirely by >=pyglet-2 regardless. Then it needs multiple backports for them to apply and things to work properly (the piglet-2 commit is not enough). Simpler to do a snapshot for now, may still have issue but given 5.0.3 is broken entirely and <piglet-2 is gone from Gentoo it doesn't make anything worse. Closes: https://bugs.gentoo.org/952492 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> games-puzzle/brainworkshop/Manifest | 1 + .../brainworkshop-5.0.3_p20250317.ebuild | 54 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/games-puzzle/brainworkshop/Manifest b/games-puzzle/brainworkshop/Manifest index c3749adaf0ca..739dc49385e7 100644 --- a/games-puzzle/brainworkshop/Manifest +++ b/games-puzzle/brainworkshop/Manifest @@ -1 +1,2 @@ DIST brainworkshop-5.0.3.tar.gz 8005691 BLAKE2B 0edaf6edb2b33ccb09d3d76c7023257c26e7303237afe9c114315c3461f55e76944a2f1e24a3ed63f4b942e5ff816b776ea2561438996b5a286faeee016e9b42 SHA512 036ea1dff0d7346e9f34a889d306a160976a602200ba428e36e72eba1fb7fbd6a4d513811faf59dcf5efe8abeae26f0a882c295f845d88b5e9a7a59d1facad55 +DIST brainworkshop-5.0.3_p20250317.tar.gz 8008889 BLAKE2B 565cfbc061520de888510da6d5bc84926d90b0aee72b0864d5647d754eec301bb30e8a619ae3850ba76250b202a40d5a273fef4391e17069d8cfcdf9962ffc6d SHA512 6632e53790b8f66042393899df3389e81721477ea365cdc32aeade66ba510f11fd9fcec61e0f4a168334e26c1dd6841956e82e0c52e6781e2fa834480a7fe63a diff --git a/games-puzzle/brainworkshop/brainworkshop-5.0.3_p20250317.ebuild b/games-puzzle/brainworkshop/brainworkshop-5.0.3_p20250317.ebuild new file mode 100644 index 000000000000..2ba77a8a5b76 --- /dev/null +++ b/games-puzzle/brainworkshop/brainworkshop-5.0.3_p20250317.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit desktop python-single-r1 + +BWS_HASH=07d2e2fcf5e6cf5264374f08bf7aee29d23b29ff + +DESCRIPTION="Short-term-memory training N-Back game" +HOMEPAGE="https://github.com/brain-workshop/brainworkshop/" +SRC_URI=" + https://github.com/brain-workshop/brainworkshop/archive/${BWS_HASH}.tar.gz + -> ${P}.tar.gz +" +S=${WORKDIR}/${PN}-${BWS_HASH} + +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-2[${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 +}
