From bd334fd563dfbaf7df4d1207f034e65c18cab34e Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Wed, 29 Jul 2026 19:15:11 +0200 Subject: [PATCH] app-text/psutils: add 3.3.15 Manpages generation imports psutils modules during build. Given psutils and its runtime deps are pure Python and architecture independent, they can run on the build machine regardless of the target architecture. So runtime dependencies are also declared in BDEPEND. testsuite : set C.UTF-8 to ensure papersize is A4 for test_pstops add ghostscript-gpl for full testing Closes: https://bugs.gentoo.org/977103 Closes: https://bugs.gentoo.org/977104 Closes: https://bugs.gentoo.org/979666 Signed-off-by: Nicolas PARLANT Part-of: https://codeberg.org/gentoo/gentoo/pulls/1569 Signed-off-by: Sam James --- app-text/psutils/Manifest | 1 + app-text/psutils/psutils-3.3.15.ebuild | 44 ++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 app-text/psutils/psutils-3.3.15.ebuild diff --git a/app-text/psutils/Manifest b/app-text/psutils/Manifest index b4a961b8dd7fd..a3f6ea5bfcd8b 100644 --- a/app-text/psutils/Manifest +++ b/app-text/psutils/Manifest @@ -1,3 +1,4 @@ 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-3.3.15.tar.gz 1253074 BLAKE2B 194575f6af821d0792cac8bc040ce35e211fed090408aac31e477b10c6e9a039fd494aa36cffd80e660b13724ab39df1a487cf418a426c5915e92aa1cc350fbe SHA512 8ec873b33a21cfbf2386e50341c6a30a216895ceb6e8cc79c2e79e114aa54d9f1146cd04de6d85370b4066d1f57d811892539f9974f1582ab461d6392b648d68 DIST psutils_1.17.dfsg.orig.tar.gz 40296 BLAKE2B c74cde600e841e876892f3c0cfd20ab5d1ed87135e0bc952b19baf90315b95f89bf177b66deeeb91862fc2c620f688ba49972673bf9f4b4ff250590f0b2fc848 SHA512 a4ee49ecea9a948c0cfb8b51d10471409ec461a07bb94c1158c64e433f02ede4770fcb961d6ec79088bf247176db9757389d3e1cf5b64246b3b90b5584b59ff3 diff --git a/app-text/psutils/psutils-3.3.15.ebuild b/app-text/psutils/psutils-3.3.15.ebuild new file mode 100644 index 0000000000000..8a19280071c89 --- /dev/null +++ b/app-text/psutils/psutils-3.3.15.ebuild @@ -0,0 +1,44 @@ +# Copyright 2025-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..14} ) + +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 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + +DEPEND="app-text/libpaper" +RDEPEND=" + ${DEPEND} + >=dev-python/puremagic-1.26[${PYTHON_USEDEP}] + >=dev-python/pypdf-4.3.0[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + dev-python/argparse-manpage[${PYTHON_USEDEP}] + test? ( + app-text/ghostscript-gpl + dev-python/wand[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-datafiles ) +distutils_enable_tests pytest + +src_test() { + # set C.UTF-8 to ensure papersize is A4 for pstops + # see https://github.com/rrthomas/psutils/issues/91 + export LC_ALL=C.UTF-8 + distutils-r1_src_test +}