homebrew-core/Formula/lf.rb
Igor Kapkov 0861d70a9d lf 11
Closes #38291.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-03-26 09:12:20 +01:00

33 lines
1.2 KiB
Ruby

class Lf < Formula
desc "Terminal file manager"
homepage "https://godoc.org/github.com/gokcehan/lf"
url "https://github.com/gokcehan/lf/archive/r11.tar.gz"
sha256 "9b325380b42584b15cf15758d0cc43f23cc697e81546520efe73e7bde8501906"
bottle do
cellar :any_skip_relocation
sha256 "ef903843e3c9ae32ff3f09158f526b0db1a95f06ec7de56ad63aa1228a5f5260" => :mojave
sha256 "79c3902898bcfcd00c801c471d6dacaae5aa7ba15c7d8433af53c2e41116e1f0" => :high_sierra
sha256 "6a3b8a8b61d2470ea28a7d4bcca4755294a85bb89e78764c040d9236665142b2" => :sierra
sha256 "424581c37cd4cc18da1a7690c9513b837ae4e405d93e3048470ea2aa148c25b5" => :el_capitan
end
depends_on "dep" => :build
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["version"] = version
(buildpath/"src/github.com/gokcehan/lf").install buildpath.children
cd "src/github.com/gokcehan/lf" do
system "dep", "ensure", "-vendor-only"
system "./gen/build.sh", "-o", bin/"lf"
prefix.install_metafiles
end
end
test do
assert_equal version.to_s, shell_output("#{bin}/lf -version").chomp
assert_match "file manager", shell_output("#{bin}/lf -doc")
end
end