--- unpacker.eclass.orig 2014-02-20 09:09:32.973453957 -0700 +++ unpacker.eclass 2014-02-25 08:36:32.822987182 -0700 @@ -25,6 +25,13 @@ # `pbzip2` and `bzip2`. Make sure your choice accepts the "-dc" options. # Note: this is meant for users to set, not ebuilds. +# @ECLASS-VARIABLE: UNPACKER_LZIP +# @DEFAULT_UNSET +# @DESCRIPTION: +# Utility to use to decompress lzip files. Will dynamically pick between +# `pdlzip` and `lzip`. Make sure your choice accepts the "-dc" options. +# Note: this is meant for users to set, not ebuilds. + # for internal use only (unpack_pdv and unpack_makeself) find_unpackable_file() { local src=$1 @@ -344,6 +351,9 @@ comp="gzip -dc" ;; *.lzma|*.xz|*.txz) comp="xz -dc" ;; + *.lz) + : ${UNPACKER_LZIP:=$(type -P pdlzip || type -P lzip)} + comp="${UNPACKER_LZIP} -dc" ;; *) comp="" ;; esac @@ -438,6 +448,8 @@ d="app-arch/xz-utils" ;; *.zip) d="app-arch/unzip" ;; + *.lz) + d="|| ( app-arch/pdlzip app-arch/lzip )" ;; esac deps+=" ${d}" done