From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7FE1B15800F for ; Fri, 27 Jan 2023 20:25:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9AF47E0AB8; Fri, 27 Jan 2023 20:25:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F425E0AB8 for ; Fri, 27 Jan 2023 20:25:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7AE4C341136 for ; Fri, 27 Jan 2023 20:25:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DAFDC771 for ; Fri, 27 Jan 2023 20:25:24 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1674851098.3671e211d4de16c7d09b407ab64ec476b013fc5c.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/brainworkshop/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-puzzle/brainworkshop/Manifest games-puzzle/brainworkshop/brainworkshop-5.0.2_p20230115.ebuild X-VCS-Directories: games-puzzle/brainworkshop/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 3671e211d4de16c7d09b407ab64ec476b013fc5c X-VCS-Branch: master Date: Fri, 27 Jan 2023 20:25:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fc4a14b1-c2d2-4747-b6e0-9bf29f4dcaf0 X-Archives-Hash: c29d845b9a4d72cbb81a5e2e966bda79 commit: 3671e211d4de16c7d09b407ab64ec476b013fc5c Author: Ionen Wolkens gentoo org> AuthorDate: Fri Jan 27 20:16:46 2023 +0000 Commit: Ionen Wolkens gentoo 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 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 +}