23 lines
663 B
Ruby
23 lines
663 B
Ruby
class Bvi < Formula
|
|
desc "Vi-like binary file (hex) editor"
|
|
homepage "http://bvi.sourceforge.net"
|
|
url "https://downloads.sourceforge.net/bvi/bvi-1.4.0.src.tar.gz"
|
|
sha256 "015a3c2832c7c097d98a5527deef882119546287ba8f2a70c736227d764ef802"
|
|
|
|
bottle do
|
|
sha1 "d14b7c6362ffe938f1fd500334a06cc69389c465" => :yosemite
|
|
sha1 "2f84d8f0bf10abe0200ce7e238c0241adbc7af77" => :mavericks
|
|
sha1 "02b757f6d6e79ccd19fec3fdb34a7335440b291f" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
ENV["TERM"] = "xterm"
|
|
system "#{bin}/bvi", "-c", "q"
|
|
end
|
|
end
|