[57827] trunk/base
afb at macports.org
afb at macports.org
Thu Sep 17 00:45:23 PDT 2009
Revision: 57827
http://trac.macports.org/changeset/57827
Author: afb at macports.org
Date: 2009-09-17 00:45:19 -0700 (Thu, 17 Sep 2009)
Log Message:
-----------
use_xz: allow distfiles in xz format
Modified Paths:
--------------
trunk/base/doc/portfile.7
trunk/base/src/port1.0/portextract.tcl
trunk/base/src/port1.0/portfetch.tcl
Modified: trunk/base/doc/portfile.7
===================================================================
--- trunk/base/doc/portfile.7 2009-09-17 07:38:11 UTC (rev 57826)
+++ trunk/base/doc/portfile.7 2009-09-17 07:45:19 UTC (rev 57827)
@@ -702,6 +702,18 @@
.br
.Sy Example:
.Dl use_lzma yes
+.It Ic use_xz
+Use xz.
+.br
+Sets extract.suffix to: .xz
+.br
+Sets extract.cmd to: xz
+.br
+.Sy Type:
+.Em optional
+.br
+.Sy Example:
+.Dl use_xz yes
.It Ic use_7z
Use 7z (7zip).
.br
Modified: trunk/base/src/port1.0/portextract.tcl
===================================================================
--- trunk/base/src/port1.0/portextract.tcl 2009-09-17 07:38:11 UTC (rev 57826)
+++ trunk/base/src/port1.0/portextract.tcl 2009-09-17 07:45:19 UTC (rev 57827)
@@ -74,7 +74,7 @@
}
proc portextract::extract_init {args} {
- global extract.only extract.dir extract.cmd extract.pre_args extract.post_args extract.mkdir distfiles use_bzip2 use_lzma use_zip use_7z use_dmg workpath
+ global extract.only extract.dir extract.cmd extract.pre_args extract.post_args extract.mkdir distfiles use_bzip2 use_lzma use_xz use_zip use_7z use_dmg workpath
# should the distfiles be extracted to worksrcpath instead?
if {[tbool extract.mkdir]} {
@@ -88,6 +88,8 @@
option extract.cmd [findBinary bzip2 ${portutil::autoconf::bzip2_path}]
} elseif {[tbool use_lzma]} {
option extract.cmd [binaryInPath "lzma"]
+ } elseif {[tbool use_xz]} {
+ option extract.cmd [binaryInPath "xz"]
} elseif {[tbool use_zip]} {
option extract.cmd [findBinary unzip ${portutil::autoconf::unzip_path}]
option extract.pre_args -q
Modified: trunk/base/src/port1.0/portfetch.tcl
===================================================================
--- trunk/base/src/port1.0/portfetch.tcl 2009-09-17 07:38:11 UTC (rev 57826)
+++ trunk/base/src/port1.0/portfetch.tcl 2009-09-17 07:45:19 UTC (rev 57827)
@@ -55,7 +55,7 @@
}
# define options: distname master_sites
-options master_sites patch_sites extract.suffix distfiles patchfiles use_zip use_bzip2 use_lzma 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_dmg dist_subdir \
fetch.type fetch.user fetch.password fetch.use_epsv fetch.ignore_sslcert \
master_sites.mirror_subdir patch_sites.mirror_subdir \
cvs.module cvs.root cvs.password cvs.date cvs.tag cvs.method \
@@ -127,6 +127,7 @@
# Option-executed procedures
option_proc use_bzip2 portfetch::set_extract_type
option_proc use_lzma portfetch::set_extract_type
+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_dmg portfetch::set_extract_type
@@ -144,6 +145,10 @@
set extract.suffix .tar.lzma
depends_extract-append bin:lzma:lzmautils
}
+ use_xz {
+ set extract.suffix .tar.xz
+ depends_extract-append bin:xz:xz-devel
+ }
use_zip {
set extract.suffix .zip
depends_extract-append bin:unzip:unzip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090917/77805a54/attachment.html>
More information about the macports-changes
mailing list