aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorkkdd2014-08-22 00:11:43 +0900
committerMike McQuaid2014-09-02 15:22:29 +0100
commit7873d203f9f6669de301fd935d8ce5dea210b511 (patch)
treea503f770aab2a045a4f1785f10db112014ed6453 /Library
parent34cb27638824e93b09c820d2556214eb01d79705 (diff)
downloadhomebrew-7873d203f9f6669de301fd935d8ce5dea210b511.tar.bz2
lv with gz_filter patched
MacOSX's zcat doesn't handle gzipped data but gzcat does.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/lv.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/lv.rb b/Library/Formula/lv.rb
index a7f27b8a6..3e880376a 100644
--- a/Library/Formula/lv.rb
+++ b/Library/Formula/lv.rb
@@ -6,6 +6,10 @@ class Lv < Formula
version '4.51'
sha1 '1a70299c27aa317a436976a557853858db4dcb5f'
+ def patches
+ DATA
+ end
+
def install
cd 'build' do
system "../src/configure", "--prefix=#{prefix}"
@@ -18,3 +22,16 @@ class Lv < Formula
(lib + 'lv').install 'lv.hlp'
end
end
+
+__END__
+--- a/src/stream.c 2012-01-01 00:00:00.000000000 +0000
++++ b/src/stream.c 2012-01-01 00:00:00.000000000 +0000
+@@ -41,7 +41,7 @@
+ #include <begin.h>
+ #include "stream.h"
+
+-private byte *gz_filter = "zcat";
++private byte *gz_filter = "gzcat";
+ private byte *bz2_filter = "bzcat";
+
+ private stream_t *StreamAlloc()