Lines 25-30
Link Here
|
25 |
# `pbzip2` and `bzip2`. Make sure your choice accepts the "-dc" options. |
25 |
# `pbzip2` and `bzip2`. Make sure your choice accepts the "-dc" options. |
26 |
# Note: this is meant for users to set, not ebuilds. |
26 |
# Note: this is meant for users to set, not ebuilds. |
27 |
|
27 |
|
|
|
28 |
# @ECLASS-VARIABLE: UNPACKER_LZIP |
29 |
# @DEFAULT_UNSET |
30 |
# @DESCRIPTION: |
31 |
# Utility to use to decompress lzip files. Will dynamically pick between |
32 |
# `pdlzip` and `lzip`. Make sure your choice accepts the "-dc" options. |
33 |
# Note: this is meant for users to set, not ebuilds. |
34 |
|
28 |
# for internal use only (unpack_pdv and unpack_makeself) |
35 |
# for internal use only (unpack_pdv and unpack_makeself) |
29 |
find_unpackable_file() { |
36 |
find_unpackable_file() { |
30 |
local src=$1 |
37 |
local src=$1 |
Lines 344-349
Link Here
|
344 |
comp="gzip -dc" ;; |
351 |
comp="gzip -dc" ;; |
345 |
*.lzma|*.xz|*.txz) |
352 |
*.lzma|*.xz|*.txz) |
346 |
comp="xz -dc" ;; |
353 |
comp="xz -dc" ;; |
|
|
354 |
*.lz) |
355 |
: ${UNPACKER_LZIP:=$(type -P pdlzip || type -P lzip)} |
356 |
comp="${UNPACKER_LZIP} -dc" ;; |
347 |
*) comp="" ;; |
357 |
*) comp="" ;; |
348 |
esac |
358 |
esac |
349 |
|
359 |
|
Lines 438-443
Link Here
|
438 |
d="app-arch/xz-utils" ;; |
448 |
d="app-arch/xz-utils" ;; |
439 |
*.zip) |
449 |
*.zip) |
440 |
d="app-arch/unzip" ;; |
450 |
d="app-arch/unzip" ;; |
|
|
451 |
*.lz) |
452 |
d="|| ( app-arch/pdlzip app-arch/lzip )" ;; |
441 |
esac |
453 |
esac |
442 |
deps+=" ${d}" |
454 |
deps+=" ${d}" |
443 |
done |
455 |
done |