commit:     22493a24da0051b9485d0cdb1d221a7fc35acb97
Author:     William Pettersson <william <AT> ewpettersson <DOT> se>
AuthorDate: Fri Mar 28 18:06:11 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 29 19:40:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22493a24

app-text/xapers: enable py3.13

Closes: https://bugs.gentoo.org/952258
Signed-off-by: William Pettersson <william <AT> ewpettersson.se>
Part-of: https://github.com/gentoo/gentoo/pull/41352
Closes: https://github.com/gentoo/gentoo/pull/41352
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/xapers/files/xapers-0.9.3-remove-pipes.patch | 14 ++++++++++++++
 app-text/xapers/xapers-0.9.3.ebuild                   |  8 ++++++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/app-text/xapers/files/xapers-0.9.3-remove-pipes.patch 
b/app-text/xapers/files/xapers-0.9.3-remove-pipes.patch
new file mode 100644
index 000000000000..ecef67697af0
--- /dev/null
+++ b/app-text/xapers/files/xapers-0.9.3-remove-pipes.patch
@@ -0,0 +1,14 @@
+diff --git a/xapers/__main__.py b/xapers/__main__.py
+index ed451c7..e59fbd2 100755
+--- a/xapers/__main__.py
++++ b/xapers/__main__.py
+@@ -698,9 +698,6 @@ directory.
+     except:
+         pass
+ 
+-    # FIXME: why?
+-    import pipes
+-
+     for doc in initdb().search(args.query):
+         title = doc.get_title()
+         origpaths = doc.get_fullpaths()

diff --git a/app-text/xapers/xapers-0.9.3.ebuild 
b/app-text/xapers/xapers-0.9.3.ebuild
index 8aa138381611..88180129cdd0 100644
--- a/app-text/xapers/xapers-0.9.3.ebuild
+++ b/app-text/xapers/xapers-0.9.3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2016-2024 Gentoo Authors
+# Copyright 2016-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
 DISTUTILS_USE_PEP517=setuptools
 inherit distutils-r1
 
@@ -17,6 +17,10 @@ LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
 
+PATCHES=(
+       "${FILESDIR}/${P}-remove-pipes.patch"
+)
+
 RDEPEND="app-text/poppler[utils]
        dev-libs/xapian-bindings[python,${PYTHON_USEDEP}]
        dev-python/pybtex[${PYTHON_USEDEP}]

Reply via email to