[114652] trunk/base/src/port1.0
mww at macports.org
mww at macports.org
Fri Dec 13 04:50:34 PST 2013
Revision: 114652
https://trac.macports.org/changeset/114652
Author: mww at macports.org
Date: 2013-12-13 04:50:34 -0800 (Fri, 13 Dec 2013)
Log Message:
-----------
add "use_lzip [yes|no]" option for lzip-compression (.tar.lz)
Modified Paths:
--------------
trunk/base/src/port1.0/portextract.tcl
trunk/base/src/port1.0/portfetch.tcl
Modified: trunk/base/src/port1.0/portextract.tcl
===================================================================
--- trunk/base/src/port1.0/portextract.tcl 2013-12-13 12:47:22 UTC (rev 114651)
+++ trunk/base/src/port1.0/portextract.tcl 2013-12-13 12:50:34 UTC (rev 114652)
@@ -75,7 +75,7 @@
}
proc portextract::extract_start {args} {
- global UI_PREFIX extract.dir extract.mkdir use_bzip2 use_lzma use_xz use_zip use_7z use_dmg
+ global UI_PREFIX extract.dir extract.mkdir use_bzip2 use_lzma use_xz use_zip use_7z use_lzip use_dmg
ui_notice "$UI_PREFIX [format [msgcat::mc "Extracting %s"] [option subport]]"
@@ -103,6 +103,10 @@
option extract.cmd [binaryInPath "7za"]
option extract.pre_args x
option extract.post_args ""
+ } elseif {[tbool use_lzip]} {
+ option extract.cmd [binaryInPath "lzip"]
+ option extract.pre_args "-dc"
+ #option extract.post_args ""
} elseif {[tbool use_dmg]} {
global distname extract.cmd
set dmg_mount [mkdtemp "/tmp/mports.XXXXXXXX"]
Modified: trunk/base/src/port1.0/portfetch.tcl
===================================================================
--- trunk/base/src/port1.0/portfetch.tcl 2013-12-13 12:47:22 UTC (rev 114651)
+++ trunk/base/src/port1.0/portfetch.tcl 2013-12-13 12:50:34 UTC (rev 114652)
@@ -48,7 +48,7 @@
}
# define options: distname master_sites
-options master_sites patch_sites extract.suffix distfiles patchfiles use_bzip2 use_lzma use_xz use_zip use_7z use_dmg dist_subdir \
+options master_sites patch_sites extract.suffix distfiles patchfiles use_bzip2 use_lzma use_xz use_zip use_7z use_lzip use_dmg dist_subdir \
fetch.type fetch.user fetch.password fetch.use_epsv fetch.ignore_sslcert \
master_sites.mirror_subdir patch_sites.mirror_subdir \
bzr.url bzr.revision \
@@ -128,6 +128,7 @@
option_proc use_xz portfetch::set_extract_type
option_proc use_zip portfetch::set_extract_type
option_proc use_7z portfetch::set_extract_type
+option_proc use_lzip portfetch::set_extract_type
option_proc use_dmg portfetch::set_extract_type
option_proc fetch.type portfetch::set_fetch_type
@@ -155,6 +156,10 @@
set extract.suffix .7z
depends_extract-append bin:7za:p7zip
}
+ use_lzip {
+ set extract.suffix .tar.lz
+ depends_extract-append bin:lzip:lzip
+ }
use_dmg {
set extract.suffix .dmg
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131213/6abe5197/attachment.html>
More information about the macports-changes
mailing list