478cbe72ed
Closes #13499. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
27 lines
838 B
Ruby
27 lines
838 B
Ruby
class Nnn < Formula
|
|
desc "Free, fast, friendly file browser"
|
|
homepage "https://github.com/jarun/nnn"
|
|
url "https://github.com/jarun/nnn/archive/v1.1.tar.gz"
|
|
sha256 "15ce2a205147b8dd9da5de1ffa6e4b273ac8385959740786f7342057d0209cc3"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "a932abf9441184e7d4df429cf6f4442fc8c7f485b5acceb62382fa7aaa00cc98" => :sierra
|
|
sha256 "fbad09d8339f50138bc99f4e246856cf9b2ae29f084f66b3d46ac29a39efd36f" => :el_capitan
|
|
sha256 "b3238d012532bb04c128ac012086cb8abf9a5266ceb458102efc0022093755b9" => :yosemite
|
|
end
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
touch "foobar"
|
|
# Testing this curses app requires a pty
|
|
require "pty"
|
|
PTY.spawn(bin/"nnn") do |r, w, _pid|
|
|
w.write "q"
|
|
assert_match "foobar", r.read
|
|
end
|
|
end
|
|
end
|