[29806] trunk/dports/archivers/gnutar
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 10 04:45:49 PDT 2007
Revision: 29806
http://trac.macosforge.org/projects/macports/changeset/29806
Author: afb at macports.org
Date: 2007-10-10 04:45:49 -0700 (Wed, 10 Oct 2007)
Log Message:
-----------
add lzma support (with mww approval)
Modified Paths:
--------------
trunk/dports/archivers/gnutar/Portfile
Added Paths:
-----------
trunk/dports/archivers/gnutar/files/patch-lzma.diff
Modified: trunk/dports/archivers/gnutar/Portfile
===================================================================
--- trunk/dports/archivers/gnutar/Portfile 2007-10-10 11:43:57 UTC (rev 29805)
+++ trunk/dports/archivers/gnutar/Portfile 2007-10-10 11:45:49 UTC (rev 29806)
@@ -4,7 +4,7 @@
name gnutar
version 1.18
-revision 1
+revision 2
categories archivers
maintainers mww at macports.org
description tar version of the GNU project
@@ -22,7 +22,7 @@
distname tar-${version}
use_bzip2 yes
platforms darwin
-patchfiles patch-src-names.c
+patchfiles patch-src-names.c patch-lzma.diff
depends_lib port:gettext port:libiconv
@@ -38,10 +38,9 @@
ChangeLog.1 INSTALL NEWS PORTS README THANKS TODO \
${destroot}${prefix}/share/doc/${name}
delete ${destroot}${prefix}/lib/charset.alias
- cd ${destroot}${prefix}/share/info/
- file rename tar.info gnutar.info
- file rename tar.info-1 gnutar.info-1
- file rename tar.info-2 gnutar.info-2
+ file rename ${destroot}${prefix}/share/info/tar.info ${destroot}${prefix}/share/info/gnutar.info
+ file rename ${destroot}${prefix}/share/info/tar.info-1 ${destroot}${prefix}/share/info/gnutar.info-1
+ file rename ${destroot}${prefix}/share/info/tar.info-2 ${destroot}${prefix}/share/info/gnutar.info-2
}
livecheck.check regex
Added: trunk/dports/archivers/gnutar/files/patch-lzma.diff
===================================================================
--- trunk/dports/archivers/gnutar/files/patch-lzma.diff (rev 0)
+++ trunk/dports/archivers/gnutar/files/patch-lzma.diff 2007-10-10 11:45:49 UTC (rev 29806)
@@ -0,0 +1,43 @@
+# adapted from lzma-4.42.0alpha6/extra/tar/tar-1.18.patch
+--- src/buffer.c.orig 2007-06-27 16:30:31.000000000 +0300
++++ src/buffer.c 2007-08-10 23:03:33.430394635 +0300
+@@ -205,7 +205,8 @@
+ ct_none,
+ ct_compress,
+ ct_gzip,
+- ct_bzip2
++ ct_bzip2,
++ ct_lzma
+ };
+
+ struct zip_magic
+@@ -222,6 +223,7 @@
+ { ct_compress, 2, "\037\235", "compress", "-Z" },
+ { ct_gzip, 2, "\037\213", "gzip", "-z" },
+ { ct_bzip2, 3, "BZh", "bzip2", "-j" },
++ { ct_lzma, 6, "\xFFLZMA", "lzma", "-a" },
+ };
+
+ #define NMAGIC (sizeof(magic)/sizeof(magic[0]))
+--- src/tar.c.orig 2007-06-27 16:30:32.000000000 +0300
++++ src/tar.c 2007-08-10 23:03:33.430394635 +0300
+@@ -574,6 +574,8 @@
+ N_("control pax keywords"), GRID+8 },
+ {"label", 'V', N_("TEXT"), 0,
+ N_("create archive with volume name TEXT; at list/extract time, use TEXT as a globbing pattern for volume name"), GRID+8 },
++ {"lzma", 'a', 0, 0,
++ N_("filter the archive through lzma"), GRID+8 },
+ {"bzip2", 'j', 0, 0,
+ N_("filter the archive through bzip2"), GRID+8 },
+ {"gzip", 'z', 0, 0,
+@@ -1184,6 +1186,10 @@
+ args->input_files = true;
+ break;
+
++ case 'a':
++ set_use_compress_program_option ("lzma");
++ break;
++
+ case 'A':
+ set_subcommand_option (CAT_SUBCOMMAND);
+ break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071010/22729d0f/attachment.html
More information about the macports-changes
mailing list