2010-05-08 06:44:45 +00:00
|
|
|
class Lv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Powerful multi-lingual file viewer/grep"
|
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"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "e1cd2e27109fbdbc6d435f2c3a99c8a6ef2898941f5d2f7bacf0c1ad70158bcf"
|
2010-05-08 06:44:45 +00:00
|
|
|
|
2014-08-21 16:17:32 +00:00
|
|
|
bottle do
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "f9d97339cfc34f5204cef5209e0a451181a05867e5230741bf09fcda93dfa370" => :mavericks
|
|
|
|
sha256 "e783717408f9810e18770270dc2b6ecd0ab4f5c9f18e84c4f9fa37ec9fe7c6b7" => :mountain_lion
|
|
|
|
sha256 "ffc51473182eb7a48a2e9efdc081a8e12b2ebf346f88239f42147cb5acfe7104" => :lion
|
2014-08-21 16:17:32 +00:00
|
|
|
end
|
|
|
|
|
2010-05-08 06:44:45 +00:00
|
|
|
def install
|
2014-09-02 14:24:23 +00:00
|
|
|
# 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"'
|
|
|
|
|
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
|