commit:     4671918e9b0f7efc4e3e717ac5f8e0e0b8b9cbb4
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Fri Dec 12 20:18:16 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 18 06:29:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4671918e

app-arch/patool: add 4.0.3

Closes: https://bugs.gentoo.org/958470
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44965
Closes: https://github.com/gentoo/gentoo/pull/44965
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/patool/Manifest            |   1 +
 app-arch/patool/patool-4.0.3.ebuild | 143 ++++++++++++++++++++++++++++++++++++
 2 files changed, 144 insertions(+)

diff --git a/app-arch/patool/Manifest b/app-arch/patool/Manifest
index 6b8ab1944341..1baf44e30ec6 100644
--- a/app-arch/patool/Manifest
+++ b/app-arch/patool/Manifest
@@ -1,2 +1,3 @@
 DIST patool-4.0.1.tar.gz 2006713 BLAKE2B 
9a92e9e94a34709c376a3c8e7dc2258f5ce21ab3ad773aff80803378a105e1536975ed4a3a43cebedd030696dc4ad888468229dc5caf0415582c215ea0fc1d58
 SHA512 
a956161d7db7cf3e2c4e56af1fa42a9ba0855c83f86aa9eb7a7b6dfa2fe711ec372294a204a3a37622f3678dac8763829706664fd93e1ba878358c8e156825ad
 DIST patool-4.0.2.tar.gz 2008032 BLAKE2B 
94df9a2e359e6dfec4de937fbba96e3aede117efd2ef91c9ee23fb21486f9c66c89a1da743c308d142adee127faffeaac27e9bbdea9fec6c59209ef2d99c7c26
 SHA512 
59b75808e43814c364fdb1bc64d379b5311b4a2bc9eb01243ed27affe387a4a7ffd6228b677c38bea63e51d3088f7e23d7edc292355dc49c0f7833d45e6d2365
+DIST patool-4.0.3.tar.gz 2009846 BLAKE2B 
8b16426c20d1cd9f56ef0635ec5c8a8c8720e6c9827848cbea107118bfd514c7d473cfe0ee0579be772ef9d2c4c5f7c5bdeba4cd96cc7c16492a9a503f2792e1
 SHA512 
7403a760aa93bbaf6310b42335de68e032dd4dcca31a650ec7bface6ca3a1eee562f60c1caa1897fc026958d3fb86a3dd3bc61d33cf42bbc0f8ddc7f4420b938

diff --git a/app-arch/patool/patool-4.0.3.ebuild 
b/app-arch/patool/patool-4.0.3.ebuild
new file mode 100644
index 000000000000..ea70a5e7b6d6
--- /dev/null
+++ b/app-arch/patool/patool-4.0.3.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+EPYTEST_XDIST=1
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Portable archive file manager"
+HOMEPAGE="https://wummel.github.io/patool/";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="
+       test? (
+               app-arch/7zip
+               app-arch/arj
+               app-arch/bzip2
+               app-arch/bzip3
+               app-arch/cabextract
+               app-alternatives/cpio
+               app-arch/dpkg
+               app-arch/gzip
+               app-arch/lbzip2
+               app-arch/lcab
+               app-arch/lha
+               app-arch/libarchive
+               app-arch/lz4
+               app-arch/lzip
+               app-arch/lzop
+               app-arch/ncompress
+               app-arch/pbzip2
+               app-arch/pdlzip
+               app-arch/pigz
+               app-arch/plzip
+               app-arch/rpm
+               app-arch/rzip
+               app-arch/sharutils
+               app-arch/tar
+               app-arch/unace
+               app-arch/unadf
+               app-arch/unzip
+               app-arch/xdms
+               app-arch/xz-utils
+               app-arch/zip
+               app-arch/zopfli
+               app-arch/zpaq
+               app-arch/zstd
+               app-cdr/cdrtools
+               dev-libs/chmlib
+               media-libs/flac
+               media-sound/shorten
+               sys-apps/diffutils
+               sys-apps/file
+               sys-apps/grep
+               || (
+                       >=app-arch/7zip-24.09[symlink(+)]
+                       app-arch/p7zip
+               )
+               !elibc_musl? ( app-arch/rar )
+               !x86? (
+                       app-arch/clzip
+                       app-arch/lrzip
+                       app-arch/unar
+               )
+       )
+"
+# Test dependencies which are packaged but can't be tested for various reasons.
+# app-arch/arc
+# app-arch/zoo
+# media-sound/mac
+
+# app-arch/rar is masked on musl
+# app-arch/clzip is unkeyworded on x86
+# app-arch/lrzip bug #916317 on x86
+# app-arch/unar is unkeyworded on x86
+
+# Unpackaged testable dependencies
+# archmage
+# genisoimage
+# lhasa
+# nomarch
+# pdzip2
+# py_{bz2,echo,gzip,tarfile,zipfile}
+# rpm2cpio
+# rzip
+# star
+# unalz
+# uncompress.real
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       distutils-r1_python_prepare_all
+
+       # Unpackaged and just wraps setuptools with SOURCE_DATE_EPOCH
+       sed -e 's/setuptools-reproducible/setuptools/' \
+               -e 's/setuptools_reproducible/setuptools.build_meta/' \
+               -i pyproject.toml || die
+}
+
+python_install_all() {
+       einstalldocs
+       doman doc/patool.1
+       distutils-r1_python_install_all
+}
+
+python_test() {
+       local EPYTEST_IGNORE=(
+               # zoo emits a non-zero exit status on a possibly false 
consistency check
+               # Zoo:  WARNING:  Archive header failed consistency check.
+               "tests/archives/test_zoo.py"
+               # Doesn't accept long arguments, such as those that files in 
${S} would have.
+               # Too long argument: 
/var/tmp/portage/app-arch/patool-1.12_p20230424/work/patool-ab64562c8cdac34dfd69fcb6e30c8c0014282d11/tests/data/p.arc.foo
+               "tests/archives/test_arc.py"
+               # Error: 1002 (invalid input file)
+               "tests/archives/test_mac.py"
+       )
+
+       if use elibc_musl; then
+               EPYTEST_IGNORE+=(
+                       "tests/archives/test_rar.py"
+               )
+       fi
+
+       if use x86; then
+               EPYTEST_IGNORE+=(
+                       "tests/archives/test_clzip.py"
+               )
+               EPYTEST_DESELECT+=(
+                       # bug #916317
+                       "tests/archives/test_lrzip.py::TestLrzip::test_lrzip"
+               )
+       fi
+
+       epytest
+}

Reply via email to