homebrew-core/Formula/fzy.rb

24 lines
839 B
Ruby
Raw Normal View History

class Fzy < Formula
desc "Fast, simple fuzzy text selector with an advanced scoring algorithm."
homepage "https://github.com/jhawthorn/fzy"
url "https://github.com/jhawthorn/fzy/archive/0.9.tar.gz"
sha256 "72182686806ddce7807d85c27efc321a1b01087643ce8006b1225e3617eecff5"
head "https://github.com/jhawthorn/fzy.git"
2017-03-24 13:03:16 +00:00
bottle do
cellar :any_skip_relocation
2017-04-17 13:36:24 +00:00
sha256 "c1831deb1a5de5c25a48d304dcecd34b87bd9dee67980ea7cbc343289d82a77f" => :sierra
sha256 "88b4a4dd16289fc68a4205911e2a7a1d82ca25aafe1beef9a249c02787c28a98" => :el_capitan
sha256 "a72164d23f90277c08c19617c57ddacf7c30dfc9751cc9428d2b1ffd8bd513df" => :yosemite
2017-03-24 13:03:16 +00:00
end
def install
system "make"
system "make", "PREFIX=#{prefix}", "install"
end
test do
assert_equal "foo", pipe_output("#{bin}/fzy -e foo", "bar\nfoo\nqux").chomp
end
end