diff options
| author | Mike McQuaid | 2014-09-02 15:24:23 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-09-02 15:24:26 +0100 |
| commit | c967a05b86d446dd7bc09b95c8c1c03729d5726a (patch) | |
| tree | bb5690590fcca404b61378844e686cd26050c210 /Library | |
| parent | 14f915b2d9c8024fdefde30bc530c1053f78a485 (diff) | |
| download | homebrew-c967a05b86d446dd7bc09b95c8c1c03729d5726a.tar.bz2 | |
lv: replace patch with inreplace.
Also, add a comment about upstream submission.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/lv.rb | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/Library/Formula/lv.rb b/Library/Formula/lv.rb index 5ee701345..74e0c8fda 100644 --- a/Library/Formula/lv.rb +++ b/Library/Formula/lv.rb @@ -12,11 +12,11 @@ class Lv < Formula sha1 "4bc23132a51ab1fb35ec2af15473d1d928c9475d" => :lion end - def patches - DATA - end - def install + # zcat doesn't handle gzip'd data on OSX. + # Reported upstream to nrt@ff.iij4u.or.jp + inreplace "src/stream.c", 'gz_filter = "zcat"', 'gz_filter = "gzcat"' + cd "build" do system "../src/configure", "--prefix=#{prefix}" system "make" @@ -28,16 +28,3 @@ 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() |
