commit:     a9f473c4104a07992e296bf14a041f3e2c43f331
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Mon Jul  7 11:45:01 2025 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Jul  8 06:53:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9f473c4

app-text/psutils: add 3.3.11

The project has been rewritten in Python for 3.0 and PDF support too.

Keywords is minimal for now due to dev-python/puremagic and dev-python/pypdf.

Closes: https://bugs.gentoo.org/933090
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/42918
Closes: https://github.com/gentoo/gentoo/pull/42918
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-text/psutils/Manifest              |  1 +
 app-text/psutils/psutils-3.3.11.ebuild | 44 ++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/app-text/psutils/Manifest b/app-text/psutils/Manifest
index 32a27964115b..b4a961b8dd7f 100644
--- a/app-text/psutils/Manifest
+++ b/app-text/psutils/Manifest
@@ -1,2 +1,3 @@
 DIST psutils-2.09.tar.gz 1231162 BLAKE2B 
237c26aaf5d9567177cd092d2651aa4562599776118bc4b7bdc717c03935fbddf94e28e037c603b54cee178687135e88dd9593c4d6bad952e1afcb2838e2bc17
 SHA512 
962c182a4cd71fbc77892806f9e46985306e75f726a58e218718bda20fdada72e9622bb55cef70ed92709b9c1c227a6542096be9605002f4c476edf529ccd4c1
+DIST psutils-3.3.11.tar.gz 1245613 BLAKE2B 
e1f1d114d964d4d2f8ba8ea70236ac46b4cd90860ffbd45a01ae904fdbd2a71538f9f4e9a7a1fe4c16ee23620f16378c85cb8f6baad5067fc642f0fafc80b8c9
 SHA512 
c20ce27105c2593028f91928531b9b08936dfa6e323b595e94aceb5e5126e0f8713fe7b2ba6333493fe4b30c620474ba6f6b8a6a290062145714ffd6d09a0f96
 DIST psutils_1.17.dfsg.orig.tar.gz 40296 BLAKE2B 
c74cde600e841e876892f3c0cfd20ab5d1ed87135e0bc952b19baf90315b95f89bf177b66deeeb91862fc2c620f688ba49972673bf9f4b4ff250590f0b2fc848
 SHA512 
a4ee49ecea9a948c0cfb8b51d10471409ec461a07bb94c1158c64e433f02ede4770fcb961d6ec79088bf247176db9757389d3e1cf5b64246b3b90b5584b59ff3

diff --git a/app-text/psutils/psutils-3.3.11.ebuild 
b/app-text/psutils/psutils-3.3.11.ebuild
new file mode 100644
index 000000000000..ab12e17ec6ff
--- /dev/null
+++ b/app-text/psutils/psutils-3.3.11.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Utilities for manipulating PostScript documents"
+HOMEPAGE="
+       https://github.com/rrthomas/psutils/
+       https://pypi.org/project/psutils/
+"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-text/libpaper"
+RDEPEND="
+       ${DEPEND}
+       >=dev-python/puremagic-1.26[${PYTHON_USEDEP}]
+       >=dev-python/pypdf-4.3.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/argparse-manpage[${PYTHON_USEDEP}]
+       test? ( dev-python/wand[${PYTHON_USEDEP}] )
+"
+
+EPYTEST_PLUGINS=( pytest-datafiles )
+EPYTEST_DESELECT=(
+       # fails on test env the first time only, get ipc-timeout
+       # TODO: more investigations
+       "tests/test_pstops.py::test_pstops[.ps-default-paper-size]"
+       "tests/test_pstops.py::test_pstops[.ps-man-page-example]"
+       # requires ghostscript-gpl
+       # wand.exceptions.DelegateError: FailedToExecuteCommand `'gs' [...]
+       "tests/test_pstops.py::test_pstops[.pdf-default-paper-size]"
+       "tests/test_pstops.py::test_pstops[.pdf-man-page-example]"
+)
+
+distutils_enable_tests pytest

Reply via email to