dev-vcs/mercurial: import zstandard instead of zstd

zstandard >=0.15 does not provide anymore zstd.

Closes: https://bugs.gentoo.org/763984
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Cédric Krier <cedk@gentoo.org>
This commit is contained in:
Cédric Krier
2021-01-06 10:24:15 +01:00
parent ef090ee489
commit 05f063dc47
2 changed files with 3 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ python_prepare_all() {
sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
sed -i -e 's/__APPLE__/__NO_APPLE__/g' mercurial/cext/osutil.c || die
# Use absolute import for zstd
sed -i -e 's/from \.* import zstd/import zstd/' \
sed -i -e 's/from \.* import zstd/import zstandard as zstd/' \
mercurial/utils/compression.py \
mercurial/wireprotoframing.py || die

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -53,7 +53,7 @@ python_prepare_all() {
sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
sed -i -e '/ hgenv =/a\' -e ' hgenv.pop("PYTHONPATH", None)' setup.py || die
# Use absolute import for zstd
sed -i -e 's/from \.* import zstd/import zstd/' \
sed -i -e 's/from \.* import zstd/import zstandard as zstd/' \
mercurial/utils/compression.py \
mercurial/wireprotoframing.py || die