gentoo-ebuilds/games-puzzle/brainworkshop/brainworkshop-5.0.3_p20250317.ebuild
Ionen Wolkens 6afc638070
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@gentoo.org>
2025-04-16 06:56:42 -04:00

54 lines
1.1 KiB
Bash

# 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
}