diff options
Diffstat (limited to 'games-board/pychess')
-rw-r--r-- | games-board/pychess/Manifest | 5 | ||||
-rw-r--r-- | games-board/pychess/files/pychess-1.0.5-python3.13.patch | 16 | ||||
-rw-r--r-- | games-board/pychess/pychess-1.0.4.ebuild | 42 | ||||
-rw-r--r-- | games-board/pychess/pychess-1.0.5.ebuild | 14 |
4 files changed, 28 insertions, 49 deletions
diff --git a/games-board/pychess/Manifest b/games-board/pychess/Manifest index 287691a56102..ea5de2b2e91d 100644 --- a/games-board/pychess/Manifest +++ b/games-board/pychess/Manifest @@ -1,5 +1,4 @@ -DIST pychess-1.0.4.tar.gz 14553786 BLAKE2B 25855090d8d24f75ac519cc3f28f97c82229a72ca1e9c96bdb129271e487ff84b32fd644c953628c917bb2a1f5c71d3feaa18e10883cb207441ecf3c5119c64e SHA512 668fef78352f6aab9dabb3c061403dd7cad4db9b699d4f562820f0ae6732c337ba2aab789ad70c7e01eb3bd6f2602291afd43ddc25826f5f132b4e78b3dba4b4 +AUX pychess-1.0.5-python3.13.patch 602 BLAKE2B a1468e001bdfaab305d9596bce83f9f31b62d9d59be1c541cfd84fa5a20b0cc5dcacd82915234955dba6671cf08b8be1e09ba789fbcdf90434ef15cd126a7a64 SHA512 209a0bc237da8d11eda68835d958ff6cfb1d95dd88f22231648def211b7402059e8e943ab9e75f585721fd204039489bb7d18b6bdc1cc211ebbf52f283466a73 DIST pychess-1.0.5.tar.gz 14543243 BLAKE2B 1ae3bf93e9f5ecf642c518ccaafe44068094276ed81c9d0b6f6346f94f56acc99359993d5cd75c1f7a20ff94bc3aa66e5c306361706ddcf946b3ea8fdd716513 SHA512 ac5f652706d50fe3c4cbf5d0f91531e6112c5f670de206434b02ded08b17921b5f11ec2d4842209d6d081a198d35cd235d7539f3c012aa6b7093d713aefc4951 -EBUILD pychess-1.0.4.ebuild 1230 BLAKE2B 72bb4ad481702d6920308e9f417527430c3c2067acd8c461613d56fb8ac374e7c7d480d5c18a8eb0590cf2a2ce21e88d1e1d92aa95f9e88c6514e2298e20cf72 SHA512 ab4fce798a7e9c1da584039f0c6179989a51154eab0164e22c5de2dd6de3cefa1c7c86e806db4218d59f040618dc8f78b8323c0ea4568bdc61c36e36806542fd -EBUILD pychess-1.0.5.ebuild 1230 BLAKE2B 72bb4ad481702d6920308e9f417527430c3c2067acd8c461613d56fb8ac374e7c7d480d5c18a8eb0590cf2a2ce21e88d1e1d92aa95f9e88c6514e2298e20cf72 SHA512 ab4fce798a7e9c1da584039f0c6179989a51154eab0164e22c5de2dd6de3cefa1c7c86e806db4218d59f040618dc8f78b8323c0ea4568bdc61c36e36806542fd +EBUILD pychess-1.0.5.ebuild 1284 BLAKE2B aee05a7718525dcbc13f8289d032fd853524fe330df252df8d64a2b6aaa81ef44c066f0db4c9fdd1d271e12618c76d9d9315e8c302606dc5ca9bfa574c5c950f SHA512 89d85657a38e14248a764758e7eab3066a2f9fc3335e95a77eec50ba9a7742022cddd970ef16d9c48d2295818023dea257e8cde1fd52bd0deb1069d6aca5e7e6 MISC metadata.xml 334 BLAKE2B bbee149d1aa743ca9b8d6cdafcf46996c100563fbcd60f994b4b26ea428123966465468d5c834baba5d8346efae67d8f0d78fe8d63a28dd12dcb91a3ed040f0b SHA512 f168de876d77b7b029f708199aefeba0be4da48c2fb08e672ec7ba7ba580c4d9958aa08c3d7548c49dea76d77d3255bb476aea463319963a549f5346c8fda63c diff --git a/games-board/pychess/files/pychess-1.0.5-python3.13.patch b/games-board/pychess/files/pychess-1.0.5-python3.13.patch new file mode 100644 index 000000000000..6d690082ec67 --- /dev/null +++ b/games-board/pychess/files/pychess-1.0.5-python3.13.patch @@ -0,0 +1,16 @@ +https://bugs.gentoo.org/952478 +https://github.com/pychess/pychess/issues/2233 +https://github.com/pychess/pychess/commit/8d8431c3e8023adbdffea9782b6f2370bb367673 +--- a/lib/pychess/ic/TimeSeal.py ++++ b/lib/pychess/ic/TimeSeal.py +@@ -2,3 +2,2 @@ + import sys +-import telnetlib + import random +@@ -25,3 +24,5 @@ + FILLER = b"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" +-IAC_WONT_ECHO = b"".join([telnetlib.IAC, telnetlib.WONT, telnetlib.ECHO]) ++# was: b"".join([telnetlib.IAC, telnetlib.WONT, telnetlib.ECHO]) ++# but telnetlib was removed in Python 3.13 ++IAC_WONT_ECHO = b"\xff\xfc\x01" + diff --git a/games-board/pychess/pychess-1.0.4.ebuild b/games-board/pychess/pychess-1.0.4.ebuild deleted file mode 100644 index 1c65ba188c72..000000000000 --- a/games-board/pychess/pychess-1.0.4.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_SINGLE_IMPL=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..12} ) -PYTHON_REQ_USE="sqlite" -inherit distutils-r1 xdg - -DESCRIPTION="GTK chess client" -HOMEPAGE="https://pychess.github.io/" -SRC_URI="https://github.com/pychess/pychess/releases/download/${PV}/${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="gstreamer" - -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/pexpect[${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}] - dev-python/pycairo[${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP},cairo] - >=dev-python/sqlalchemy-2[${PYTHON_USEDEP},sqlite] - dev-python/websockets[${PYTHON_USEDEP}] - gstreamer? ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] )') - gnome-base/librsvg:2[introspection] - x11-libs/gtk+:3[introspection] - x11-libs/gtksourceview:3.0[introspection] - x11-libs/pango[introspection] - x11-themes/adwaita-icon-theme" -BDEPEND="${RDEPEND}" # setup.py fails if introspection deps not found - -src_install() { - distutils-r1_src_install - - # https://github.com/pychess/pychess/pull/1825 - gunzip -v "${ED}"/usr/share/man/man1/${PN}.1.gz || die -} diff --git a/games-board/pychess/pychess-1.0.5.ebuild b/games-board/pychess/pychess-1.0.5.ebuild index 1c65ba188c72..3e30063c9a0e 100644 --- a/games-board/pychess/pychess-1.0.5.ebuild +++ b/games-board/pychess/pychess-1.0.5.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_SINGLE_IMPL=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..12} ) +PYTHON_COMPAT=( python3_{10..13} ) PYTHON_REQ_USE="sqlite" inherit distutils-r1 xdg @@ -26,14 +26,20 @@ RDEPEND=" dev-python/pygobject:3[${PYTHON_USEDEP},cairo] >=dev-python/sqlalchemy-2[${PYTHON_USEDEP},sqlite] dev-python/websockets[${PYTHON_USEDEP}] - gstreamer? ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] )') + gstreamer? ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] ) + ') gnome-base/librsvg:2[introspection] x11-libs/gtk+:3[introspection] x11-libs/gtksourceview:3.0[introspection] x11-libs/pango[introspection] - x11-themes/adwaita-icon-theme" + x11-themes/adwaita-icon-theme +" BDEPEND="${RDEPEND}" # setup.py fails if introspection deps not found +PATCHES=( + "${FILESDIR}"/${P}-python3.13.patch +) + src_install() { distutils-r1_src_install |