Diff brotli-1.0.9-r3 with a brotli-1.0.9-r5

/usr/portage/app-arch/brotli/brotli-1.0.9-r5.ebuild 2023-10-09 14:52:28.180368317 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
DISTUTILS_EXT=1
6 7
DISTUTILS_OPTIONAL="1"
7
PYTHON_COMPAT=( python3_{9..10} pypy3 )
8
DISTUTILS_USE_PEP517=setuptools
9
PYTHON_COMPAT=( python3_{10..12} pypy3 )
10

  
8 11
inherit cmake-multilib distutils-r1
9 12

  
10 13
if [[ ${PV} == *9999* ]] ; then
......
12 15
	inherit git-r3
13 16
else
14 17
	KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
15
	SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18
	SRC_URI="
19
		https://github.com/google/${PN}/archive/v${PV}.tar.gz
20
			-> ${P}.tar.gz
21
		test? (
22
			https://dev.gentoo.org/~mgorny/dist/${P}.testdata.tar.xz
23
		)
24
	"
16 25
fi
17 26

  
18 27
DESCRIPTION="Generic-purpose lossless compression algorithm"
19
HOMEPAGE="https://github.com/google/brotli"
28
HOMEPAGE="https://github.com/google/brotli/"
20 29

  
21 30
LICENSE="MIT python? ( Apache-2.0 )"
22 31
SLOT="0/$(ver_cut 1)"
23 32
IUSE="python static-libs test"
24

  
25 33
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
34
RESTRICT="!test? ( test )"
26 35

  
27
# tests are currently broken, see https://github.com/google/brotli/issues/850
28
RESTRICT="test"
36
RDEPEND="
37
	python? ( ${PYTHON_DEPS} )
38
"
39
DEPEND="
40
	${RDEPEND}
41
"
42
BDEPEND="
43
	python? (
44
		${DISTUTILS_DEPS}
45
		test? (
46
			$(python_gen_cond_dep '
47
				dev-python/unittest-or-fail[${PYTHON_USEDEP}]
48
			' 3.{9..11})
49
		)
50
	)
51
"
29 52

  
30 53
DOCS=( README.md CONTRIBUTING.md )
31 54

  
32 55
PATCHES=( "${FILESDIR}/${PV}-linker.patch" )
33 56

  
34
RDEPEND="python? ( ${PYTHON_DEPS} )"
35
DEPEND="${RDEPEND}"
36

  
37 57
src_prepare() {
38 58
	cmake_src_prepare
39 59
	use python && distutils-r1_src_prepare
......
45 65
	)
46 66
	cmake_src_configure
47 67
}
68

  
48 69
src_configure() {
49 70
	cmake-multilib_src_configure
50 71
	use python && distutils-r1_src_configure
51 72
}
52 73

  
53
multilib_src_compile() {
54
	cmake_src_compile
55
}
56 74
src_compile() {
57 75
	cmake-multilib_src_compile
58 76
	use python && distutils-r1_src_compile
59 77
}
60 78

  
61 79
python_test() {
62
	esetup.py test || die
80
	eunittest -s python -p "*_test.py"
63 81
}
64 82

  
65
multilib_src_test() {
66
	cmake_src_test
67
}
68 83
src_test() {
69 84
	cmake-multilib_src_test
70 85
	use python && distutils-r1_src_test
......
72 87

  
73 88
multilib_src_install() {
74 89
	cmake_src_install
75
	use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
90
	if ! use static-libs; then
91
		rm "${ED}"/usr/$(get_libdir)/*.a || die
92
	fi
76 93
}
94

  
77 95
multilib_src_install_all() {
78 96
	use python && distutils-r1_src_install
97

  
98
	doman docs/brotli.1
99

  
100
	local page
101
	for page in constants decode encode types ; do
102
		newman docs/${page}.h.3 ${PN}_${page}.h.3
103
	done
79 104
}
Thank you!