homebrew-core/Formula/lv.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

29 lines
900 B
Ruby

class Lv < Formula
desc "Powerful multi-lingual file viewer/grep"
homepage "http://www.ff.iij4u.or.jp/~nrt/lv/"
url "http://www.ff.iij4u.or.jp/~nrt/freeware/lv451.tar.gz"
version "4.51"
sha256 "e1cd2e27109fbdbc6d435f2c3a99c8a6ef2898941f5d2f7bacf0c1ad70158bcf"
bottle do
sha1 "077f8feee1b78425a38f1775cfa0bba5b5334569" => :mavericks
sha1 "08a9356422f94eddb2d767ab167048fb291cede7" => :mountain_lion
sha1 "4bc23132a51ab1fb35ec2af15473d1d928c9475d" => :lion
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"
bin.install "lv"
bin.install_symlink "lv" => "lgrep"
end
man1.install "lv.1"
(lib+"lv").install "lv.hlp"
end
end