Hello ports,

I was playing with shotcut and saw .txz in the wild. Diff below extracts
that now.

-- 

Tracey Emery

diff c46931e751fd16e7c32b7593fe761e6160c6efa8 /usr/ports
blob - dc4c6bd6b7ba1c957e981eb0e9deedbdb00bafaa
file + infrastructure/lib/OpenBSD/PortGen/Port.pm
--- infrastructure/lib/OpenBSD/PortGen/Port.pm
+++ infrastructure/lib/OpenBSD/PortGen/Port.pm
@@ -140,7 +140,7 @@ sub pick_distfile
        foreach my $filename (@files) {
                # from EXTRACT_CASES
                ($distname, $ext) = $filename =~ /^(.*)(\.(?:
-                   tar\.xz  | tar\.lzma
+                   tar\.xz  | txz | tar\.lzma
                  | tar\.lz
                  | zip
                  | tar\.bz2 | tbz2    | tbz
blob - 16a12e79a5935dd0575e444d90b24be54379b010
file + infrastructure/mk/bsd.port.mk
--- infrastructure/mk/bsd.port.mk
+++ infrastructure/mk/bsd.port.mk
@@ -1342,9 +1342,10 @@ EXTRACT_CASES += *.zip) \
 .endif
 
 .if !empty(_LIST_EXTRACTED:M*.xz) || \
+       !empty(_LIST_EXTRACTED:M*.txz) || \
        !empty(_LIST_EXTRACTED:M*.lzma)
 BUILD_DEPENDS += archivers/xz
-EXTRACT_CASES += *.tar.xz) \
+EXTRACT_CASES += *.tar.xz|*.txz) \
        xzdec <${FULLDISTDIR}/$$archive | ${TAR} xf -;;
 EXTRACT_CASES += *.tar.lzma) \
        lzmadec <${FULLDISTDIR}/$$archive | ${TAR} xf -;;

Reply via email to