homebrew-core/Formula/vifm.rb
2016-01-16 18:03:02 +00:00

43 lines
1.4 KiB
Ruby

class Vifm < Formula
desc "Ncurses based file manager with vi like keybindings"
homepage "https://vifm.info/"
url "https://downloads.sourceforge.net/project/vifm/vifm/vifm-0.8.tar.bz2"
mirror "https://github.com/vifm/vifm/releases/download/v0.8/vifm-0.8.tar.bz2"
sha256 "69eb6b50dcf462f4233ff987f0b6a295df08a27bc42577ebef725bfe58dbdeeb"
bottle do
revision 1
sha256 "57d2224f685ad01c2cded9a3840c6999a75e3544111c501822412ac6bac9f460" => :el_capitan
sha256 "d875cfb97b83552d78ff3ed9d1c2ec8faa35ed2b4bd27dabbeb48eca7af820f0" => :yosemite
sha256 "032ed7e7c2256a7e352322b65e68fd220ce35d59ea9a558d2112df86275fbe45" => :mavericks
end
devel do
url "https://downloads.sourceforge.net/project/vifm/vifm/vifm-0.8.1-beta.tar.bz2"
mirror "https://github.com/vifm/vifm/releases/download/v0.8.1-beta/vifm-0.8.1-beta.tar.bz2"
sha256 "e0e3e4d7cc06ac75e4acdd1c03f1b91e433b0df3ef817024e27bdc268f32b80f"
end
head do
url "https://github.com/vifm/vifm.git"
depends_on "automake" => :build
depends_on "autoconf" => :build
end
def install
args = %W[--disable-dependency-tracking --prefix=#{prefix}]
if build.head?
system "./autogen.sh", *args
else
system "./configure", *args
end
ENV.deparallelize
system "make", "install"
end
test do
assert_match /^Version: #{Regexp.escape(version)}/,
shell_output("#{bin}/vifm --version")
end
end