2014-09-02 14:24:09 +00:00
|
|
|
require "formula"
|
2010-05-08 06:44:45 +00:00
|
|
|
|
|
|
|
class Lv < Formula
|
2014-09-02 14:24:09 +00:00
|
|
|
homepage "http://www.ff.iij4u.or.jp/~nrt/lv/"
|
|
|
|
url "http://www.ff.iij4u.or.jp/~nrt/freeware/lv451.tar.gz"
|
|
|
|
version "4.51"
|
|
|
|
sha1 "1a70299c27aa317a436976a557853858db4dcb5f"
|
2010-05-08 06:44:45 +00:00
|
|
|
|
2014-08-21 16:17:32 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "077f8feee1b78425a38f1775cfa0bba5b5334569" => :mavericks
|
|
|
|
sha1 "08a9356422f94eddb2d767ab167048fb291cede7" => :mountain_lion
|
|
|
|
sha1 "4bc23132a51ab1fb35ec2af15473d1d928c9475d" => :lion
|
|
|
|
end
|
|
|
|
|
2014-08-21 15:11:43 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2010-05-08 06:44:45 +00:00
|
|
|
def install
|
2014-09-02 14:24:09 +00:00
|
|
|
cd "build" do
|
2010-05-08 06:44:45 +00:00
|
|
|
system "../src/configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
2014-09-02 14:24:09 +00:00
|
|
|
bin.install "lv"
|
|
|
|
bin.install_symlink "lv" => "lgrep"
|
2010-05-08 06:44:45 +00:00
|
|
|
end
|
|
|
|
|
2014-09-02 14:24:09 +00:00
|
|
|
man1.install "lv.1"
|
|
|
|
(lib+"lv").install "lv.hlp"
|
2010-05-08 06:44:45 +00:00
|
|
|
end
|
|
|
|
end
|
2014-08-21 15:11:43 +00:00
|
|
|
|
|
|
|
__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()
|