[38960] trunk/base

afb at macports.org afb at macports.org
Mon Aug 4 02:23:02 PDT 2008


Revision: 38960
          http://trac.macosforge.org/projects/macports/changeset/38960
Author:   afb at macports.org
Date:     2008-08-04 02:23:00 -0700 (Mon, 04 Aug 2008)
Log Message:
-----------
add use_lzma for .tar.lzma support

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	2008-08-04 07:51:25 UTC (rev 38959)
+++ trunk/base/doc/portfile.7	2008-08-04 09:23:00 UTC (rev 38960)
@@ -621,6 +621,18 @@
 .br
 .Sy Example:
 .Dl use_bzip2 yes
+.It Ic use_lzma
+Use lzma.
+.br
+Sets extract.suffix to: .lzma
+.br
+Sets extract.cmd to: lzma
+.br
+.Sy Type:
+.Em optional
+.br
+.Sy Example:
+.Dl use_lzma yes
 .It Ic dist_subdir
 Create a sub-directory in
 .Ic distpath

Modified: trunk/base/src/port1.0/portextract.tcl
===================================================================
--- trunk/base/src/port1.0/portextract.tcl	2008-08-04 07:51:25 UTC (rev 38959)
+++ trunk/base/src/port1.0/portextract.tcl	2008-08-04 09:23:00 UTC (rev 38960)
@@ -58,7 +58,7 @@
 set_ui_prefix
 
 proc extract_init {args} {
-    global extract.only extract.dir extract.cmd extract.pre_args extract.post_args extract.mkdir distfiles use_bzip2 use_zip use_dmg workpath
+    global extract.only extract.dir extract.cmd extract.pre_args extract.post_args extract.mkdir distfiles use_bzip2 use_lzma use_zip use_dmg workpath
 
     # should the distfiles be extracted to worksrcpath instead?
     if {[tbool extract.mkdir]} {
@@ -70,6 +70,8 @@
 
     if {[tbool use_bzip2]} {
 	option extract.cmd [binaryInPath "bzip2"]
+    } elseif {[tbool use_lzma]} {
+	option extract.cmd [binaryInPath "lzma"]
     } elseif {[tbool use_zip]} {
 	option extract.cmd [binaryInPath "unzip"]
 	option extract.pre_args -q

Modified: trunk/base/src/port1.0/portfetch.tcl
===================================================================
--- trunk/base/src/port1.0/portfetch.tcl	2008-08-04 07:51:25 UTC (rev 38959)
+++ trunk/base/src/port1.0/portfetch.tcl	2008-08-04 09:23:00 UTC (rev 38960)
@@ -100,6 +100,7 @@
 
 # Option-executed procedures
 option_proc use_bzip2 fix_extract_suffix
+option_proc use_lzma fix_extract_suffix
 option_proc use_zip fix_extract_suffix
 option_proc use_dmg fix_extract_suffix
 
@@ -110,6 +111,9 @@
             use_bzip2 {
                 set extract.suffix .tar.bz2
             }
+            use_lzma {
+                set extract.suffix .tar.lzma
+            }
             use_zip {
                 set extract.suffix .zip
             }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080804/dc4c34d9/attachment.html 


More information about the macports-changes mailing list