You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
4 years ago
|
PYTHON_COMPAT=( python3_{7,8} )
|
||
6 years ago
|
|
||
4 years ago
|
inherit desktop eutils python-single-r1 xdg
|
||
|
|
||
|
COMMIT="ea817f7e163c4fb07a60b2066c694cba92d23818"
|
||
6 years ago
|
DESCRIPTION="Short-term-memory training N-Back game"
|
||
|
HOMEPAGE="https://github.com/samcv/brainworkshop"
|
||
|
SRC_URI="https://github.com/samcv/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
|
|
||
4 years ago
|
RDEPEND="
|
||
|
${PYTHON_DEPS}
|
||
|
$(python_gen_cond_dep '
|
||
|
>=dev-python/pyglet-1.5[${PYTHON_USEDEP},sound]
|
||
|
')
|
||
|
"
|
||
|
|
||
|
BDEPEND="
|
||
|
${PYTHON_DEPS}
|
||
|
"
|
||
6 years ago
|
|
||
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-${PV%_*}-fix-paths.patch
|
||
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
edos2unix ${PN}.pyw
|
||
|
default
|
||
|
|
||
|
sed -i \
|
||
|
"s#@GENTOO_DATADIR@#${EPREFIX}/usr/share/${PN}#g" \
|
||
|
${PN}.pyw || die
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
python_newscript ${PN}.pyw ${PN}
|
||
6 years ago
|
|
||
|
insinto /usr/share/${PN}
|
||
|
doins -r res/*
|
||
|
|
||
|
dodoc Readme.md Readme-{instructions,resources}.txt data/Readme-stats.txt
|
||
|
|
||
|
newicon -s 48 res/misc/brain/brain.png ${PN}.png
|
||
|
make_desktop_entry ${PN} "Brain Workshop"
|
||
|
}
|