[65758] trunk/dports/textproc/lv
takanori at macports.org
takanori at macports.org
Wed Mar 31 05:53:21 PDT 2010
Revision: 65758
http://trac.macports.org/changeset/65758
Author: takanori at macports.org
Date: 2010-03-31 05:53:20 -0700 (Wed, 31 Mar 2010)
Log Message:
-----------
lv: add experimental support for XZ Utils
Modified Paths:
--------------
trunk/dports/textproc/lv/Portfile
Added Paths:
-----------
trunk/dports/textproc/lv/files/xz_support.diff
Modified: trunk/dports/textproc/lv/Portfile
===================================================================
--- trunk/dports/textproc/lv/Portfile 2010-03-31 12:52:27 UTC (rev 65757)
+++ trunk/dports/textproc/lv/Portfile 2010-03-31 12:53:20 UTC (rev 65758)
@@ -59,6 +59,11 @@
variant lesslikeslash description {Make the behavior of the search command more similar to the one in Less} {}
+variant with_xz description {Experimental support for XZ Utils} {
+ patchfiles-append xz_support.diff
+ depends_run-append port:xz-devel
+}
+
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex The latest version is ver (\[0-9.a-z\]+)
Added: trunk/dports/textproc/lv/files/xz_support.diff
===================================================================
--- trunk/dports/textproc/lv/files/xz_support.diff (rev 0)
+++ trunk/dports/textproc/lv/files/xz_support.diff 2010-03-31 12:53:20 UTC (rev 65758)
@@ -0,0 +1,22 @@
+--- src/stream.c.orig 2010-03-31 21:10:00.000000000 +0900
++++ src/stream.c 2010-03-31 21:17:50.000000000 +0900
+@@ -43,6 +43,8 @@
+
+ private byte *gz_filter = "gzcat";
+ private byte *bz2_filter = "bzcat";
++private byte *lzma_filter = "lzmadec";
++private byte *xz_filter = "xzcat";
+
+ private stream_t *StreamAlloc()
+ {
+@@ -75,6 +77,10 @@
+ filter = gz_filter;
+ else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) )
+ filter = bz2_filter;
++ else if( !strcmp( "lzma", exts ) || !strcmp( "LZMA", exts ) )
++ filter = lzma_filter;
++ else if( !strcmp( "xz", exts ) || !strcmp( "XZ", exts ) )
++ filter = xz_filter;
+ }
+ if( NULL != filter ){
+ /*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100331/4a4ea7c2/attachment.html>
More information about the macports-changes
mailing list