Diff patool-1.12 with a patool-1.12_p20230424

/usr/portage/app-arch/patool/patool-1.12_p20230424.ebuild 2023-10-09 14:52:28.188368317 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{9..11} )
6
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{10..12} )
7 8

  
8
inherit distutils-r1 pypi
9
inherit distutils-r1
9 10

  
10 11
DESCRIPTION="Portable archive file manager"
11
HOMEPAGE="http://wummel.github.io/patool/"
12
HOMEPAGE="https://wummel.github.io/patool/"
13
COMMIT="ab64562c8cdac34dfd69fcb6e30c8c0014282d11"
14
SRC_URI="https://github.com/wummel/patool/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
15
S="${WORKDIR}/${PN}-${COMMIT}"
12 16

  
13 17
LICENSE="GPL-3"
14 18
SLOT="0"
15
KEYWORDS="amd64 x86"
19
KEYWORDS="~amd64 ~x86"
20

  
21
BDEPEND="
22
	test? (
23
		app-arch/arj
24
		app-arch/bzip2
25
		app-arch/cabextract
26
		app-arch/cpio
27
		app-arch/dpkg
28
		app-arch/gzip
29
		app-arch/lbzip2
30
		app-arch/lcab
31
		app-arch/lha
32
		app-arch/libarchive
33
		app-arch/lrzip
34
		app-arch/lzip
35
		app-arch/lzop
36
		app-arch/ncompress
37
		app-arch/p7zip[rar]
38
		app-arch/pbzip2
39
		app-arch/pdlzip
40
		app-arch/pigz
41
		app-arch/rpm
42
		app-arch/sharutils
43
		app-arch/tar
44
		app-arch/unace
45
		app-arch/unadf
46
		app-arch/unzip
47
		app-arch/xdms
48
		app-arch/xz-utils
49
		app-arch/zip
50
		app-arch/zpaq
51
		app-arch/zstd
52
		app-cdr/cdrtools
53
		dev-libs/chmlib
54
		media-libs/flac
55
		media-sound/shorten
56
		sys-apps/diffutils
57
		sys-apps/file
58
		sys-apps/grep
59
		!elibc_musl? ( app-arch/rar )
60
		!x86? ( app-arch/clzip )
61
	)
62
"
63
# Test dependencies which are packaged but can't be tested for various reasons.
64
# app-arch/arc
65
# app-arch/zoo
66
# app-arch/zopfli
67
# media-sound/mac
68

  
69
# app-arch/rar is masked on musl
70
# app-arch/clzip is unkeyworded on x86
71

  
72
# Unpackaged testable dependencies
73
# archmage
74
# genisoimage
75
# lhasa
76
# nomarch
77
# pdzip2
78
# py_{bz2,echo,gzip,tarfile,zipfile}
79
# rpm2cpio
80
# rzip
81
# star
82
# unalz
83
# uncompress.real
84

  
85
PATCHES=(
86
	"${FILESDIR}/patool-1.12_p20230424-disable-file-sandbox.patch"
87
	"${FILESDIR}/patool-1.12_p20230424-map-vnd.android.package-archive.patch"
88
)
89

  
90
distutils_enable_tests pytest
91

  
92
src_install() {
93
	distutils-r1_src_install
94

  
95
	newdoc doc/README.txt README.md
96
	doman doc/patool.1
97
}
98

  
99
python_test() {
100
	local EPYTEST_IGNORE=(
101
		# zoo emits a non-zero exit status on a possibly false consistency check
102
		# Zoo:  WARNING:  Archive header failed consistency check.
103
		"tests/archives/test_zoo.py"
104
		# Doesn't accept long arguments, such as those that files in ${S} would have.
105
		# Too long argument: /var/tmp/portage/app-arch/patool-1.12_p20230424/work/patool-ab64562c8cdac34dfd69fcb6e30c8c0014282d11/tests/data/p.arc.foo
106
		"tests/archives/test_arc.py"
107
		# Error: 1002 (invalid input file)
108
		"tests/archives/test_mac.py"
109
		# AttributeError: module 'patoolib.programs.zopfli' has no attribute 'extract_gzip'
110
		"tests/archives/test_zopfli.py"
111
	)
112

  
113
	if use elibc_musl; then
114
		EPYTEST_IGNORE+=(
115
			"tests/archives/test_rar.py"
116
		)
117
	fi
118

  
119
	if use x86; then
120
		EPYTEST_IGNORE+=(
121
			"tests/archives/test_clzip.py"
122
		)
123
	fi
124

  
125
	epytest
126
}
Thank you!