From 4b300bf9b3f505a0698378df14370be997dbd0ad Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 12 Jun 2019 09:45:25 +0000 Subject: [PATCH] Add `.tar.lz' suffix support to our framework since BSD tar(1) natively supports it. Lzip offers better compression ratios and archival features compared to more common .gz or .xz formats, and is being used by some software when packaging their distfiles. Approved by: portmgr (rene) Differential Revision: https://reviews.freebsd.org/D20619 --- Mk/Uses/tar.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mk/Uses/tar.mk b/Mk/Uses/tar.mk index d84e6abc5021..80997e9f4ad6 100644 --- a/Mk/Uses/tar.mk +++ b/Mk/Uses/tar.mk @@ -3,7 +3,7 @@ # handle tar archives # # Feature: tar -# Usage: USES=tar[:[xz|lzma|Z|bzip2|tgz|tbz]] +# Usage: USES=tar[:[xz|lz|lzma|txz|bz[ip]2|tgz|tbz|tbz2|Z]] # # MAINTAINER: portmgr@FreeBSD.org @@ -12,6 +12,8 @@ _INCLUDE_USES_TAR_MK= yes .if ${tar_ARGS} == xz EXTRACT_SUFX?= .tar.xz +.elif ${tar_ARGS} == lz +EXTRACT_SUFX?= .tar.lz .elif ${tar_ARGS} == lzma EXTRACT_SUFX?= .tar.lzma .elif ${tar_ARGS} == txz