blob: 4b261d39028509a5958bef3aa1395e9bb4fd7ce1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_PN=${PN/-/.}
PYPI_VERIFY_REPO=https://github.com/Rogdham/backports.zstd
PYTHON_COMPAT=( pypy3_11 python3_{11..13} )
inherit distutils-r1 pypi
DESCRIPTION="Backport of PEP-784: adding Zstandard to the standard library"
HOMEPAGE="
https://github.com/Rogdham/backports.zstd/
https://pypi.org/project/backports.zstd/
"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
DEPEND="
app-arch/zstd:=
"
RDEPEND="
${DEPEND}
"
distutils_enable_tests unittest
src_prepare() {
local PATCHES=(
# https://github.com/Rogdham/backports.zstd/pull/54
"${FILESDIR}/${P}-py313.patch"
)
distutils-r1_src_prepare
# remove -flto and other forced cflags
sed -i -e 's:kwargs\["extra.*:pass:' setup.py || die
DISTUTILS_ARGS=(
--system-zstd
)
}
python_test() {
eunittest tests
}
|