summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcon74 <halcon@tuta.io>2020-12-20 23:08:38 +0300
committerMike Gilbert <floppym@gentoo.org>2020-12-21 00:12:06 -0500
commitea98bf9dd7f825d440a9b0cb330721d9f854d404 (patch)
tree5966f3fb5bda76e9faaf0e8be74f59d834f578df /eclass/unpacker.eclass
parentsys-libs/readline: Security cleanup (drop <8) (diff)
downloadgentoo-ea98bf9dd7f825d440a9b0cb330721d9f854d404.tar.gz
gentoo-ea98bf9dd7f825d440a9b0cb330721d9f854d404.tar.bz2
gentoo-ea98bf9dd7f825d440a9b0cb330721d9f854d404.zip
unpacker.eclass: add zst support
Closes: https://bugs.gentoo.org/760905 Closes: https://github.com/gentoo/gentoo/pull/18738 Signed-off-by: Alexey Mishustin <halcon@tuta.io> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/unpacker.eclass')
-rw-r--r--eclass/unpacker.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 63aedee4480e..3a1dc9f29f33 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: unpacker.eclass
@@ -356,6 +356,8 @@ _unpacker() {
*.lz)
: ${UNPACKER_LZIP:=$(type -P plzip || type -P pdlzip || type -P lzip)}
comp="${UNPACKER_LZIP} -dc" ;;
+ *.zst)
+ comp="zstd -dfc" ;;
esac
# then figure out if there are any archiving aspects
@@ -459,6 +461,8 @@ unpacker_src_uri_depends() {
d="app-arch/unzip" ;;
*.lz)
d="|| ( app-arch/plzip app-arch/pdlzip app-arch/lzip )" ;;
+ *.zst)
+ d="app-arch/zstd" ;;
esac
deps+=" ${d}"
done