[29867] trunk/dports/sysutils/file

source_changes at macosforge.org source_changes at macosforge.org
Sun Oct 14 03:29:08 PDT 2007


Revision: 29867
          http://trac.macosforge.org/projects/macports/changeset/29867
Author:   afb at macports.org
Date:     2007-10-14 03:29:07 -0700 (Sun, 14 Oct 2007)

Log Message:
-----------
add lzma support

Modified Paths:
--------------
    trunk/dports/sysutils/file/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/file/files/
    trunk/dports/sysutils/file/files/patch-lzma.diff

Modified: trunk/dports/sysutils/file/Portfile
===================================================================
--- trunk/dports/sysutils/file/Portfile	2007-10-14 07:33:45 UTC (rev 29866)
+++ trunk/dports/sysutils/file/Portfile	2007-10-14 10:29:07 UTC (rev 29867)
@@ -3,6 +3,7 @@
 PortSystem 1.0
 name                file
 version             4.21
+revision            1
 categories          sysutils
 maintainers         pipping at macports.org openmaintainer at macports.org
 description         File - determine file type
@@ -21,6 +22,8 @@
                     sha1 4a919572fed1896212c2d7f41f841845efc1287a \
                     rmd160 c8cfee27ba7a033bae355e458921eac39913b1e0
 
+patchfiles          patch-lzma.diff
+
 configure.args      --mandir=${prefix}/share/man \
                     --enable-fsect-man5 \
                     --program-prefix=g

Added: trunk/dports/sysutils/file/files/patch-lzma.diff
===================================================================
--- trunk/dports/sysutils/file/files/patch-lzma.diff	                        (rev 0)
+++ trunk/dports/sysutils/file/files/patch-lzma.diff	2007-10-14 10:29:07 UTC (rev 29867)
@@ -0,0 +1,33 @@
+# adapted from lzma-4.42.0alphaX/extra/tar/file-4.21.patch
+--- magic/Magdir/compress.orig	2006-03-02 23:10:26.000000000 +0100
++++ magic/Magdir/compress	2007-09-12 21:40:54.000000000 -0000
+@@ -174,6 +174,19 @@
+ >6	byte		x			version %d
+ >7	byte		x			\b.%d
+ 
++# LZMA (Lempel-Ziv-Markov chain-Algorithm) file format supported by:
++#   - 7-Zip <http://7-zip.org/>
++#   - LZMA SDK <http://7-zip.org/sdk.html>
++#   - LZMA Utils <http://tukaani.org/lzma/>
++#
++# Note that this is different format than the original format created
++# by LZMA_Alone from older versions of LZMA SDK. These files are
++# non-trivial to detect, because they have no magic bytes.
++#
++0	ustring		\xFFLZMA\x00	lzma compressed data,
++>6	ubyte&0x10	0x00		single-block stream
++>6	ubyte&0x10	0x10		multi-block stream
++
+ # AFX compressed files (Wolfram Kleff)
+ 2	string		-afx-		AFX compressed file data
+ 
+--- src/compress.c.orig	2007-03-05 03:41:29.000000000 +0100
++++ src/compress.c	2007-09-12 21:40:54.000000000 -0000
+@@ -76,6 +76,7 @@
+ 	{ "PK\3\4",   4, { "gzip", "-cdq", NULL }, 1 },		/* pkzipped, */
+ 					    /* ...only first file examined */
+ 	{ "BZh",      3, { "bzip2", "-cd", NULL }, 1 },		/* bzip2-ed */
++	{ "\xFFLZMA\x00", 6, { "lzma", "-cd", NULL }, 1 },	/* new LZMA */
+ };
+ 
+ private size_t ncompr = sizeof(compr) / sizeof(compr[0]);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071014/ef2b72fb/attachment.html


More information about the macports-changes mailing list