commit:     ea98bf9dd7f825d440a9b0cb330721d9f854d404
Author:     halcon74 <halcon <AT> tuta <DOT> io>
AuthorDate: Sun Dec 20 20:08:38 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Dec 21 05:12:06 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea98bf9d

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 <AT> tuta.io>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 eclass/unpacker.eclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 63aedee4480..3a1dc9f29f3 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

Reply via email to