summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2019-06-12 09:45:25 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2019-06-12 09:45:25 +0000
commit4b300bf9b3f505a0698378df14370be997dbd0ad (patch)
tree99a5b1f82ea4750309487f23e8f69c4861c91879
parentlang/go: update to 1.12.6 (diff)
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
Notes
Notes: svn path=/head/; revision=504008
-rw-r--r--Mk/Uses/tar.mk4
1 files changed, 3 insertions, 1 deletions
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