2017-06-09 12:20:39 +00:00
|
|
|
class Fd < Formula
|
|
|
|
desc "Simple, fast and user-friendly alternative to find."
|
|
|
|
homepage "https://github.com/sharkdp/fd"
|
2017-09-17 10:50:01 +00:00
|
|
|
url "https://github.com/sharkdp/fd/archive/v3.1.0.tar.gz"
|
|
|
|
sha256 "03f35f808d4d4a7a5767ba791f259653edab0b9f6829233e98fd617f78a3faaf"
|
2017-06-09 12:20:39 +00:00
|
|
|
head "https://github.com/sharkdp/fd.git"
|
|
|
|
|
2017-06-12 16:33:37 +00:00
|
|
|
bottle do
|
2017-09-17 23:01:41 +00:00
|
|
|
sha256 "fb3731f970bc97458c723700f8f7da1f47b259ef96ae85e2160256c463391742" => :sierra
|
|
|
|
sha256 "94827a4f6413385ae1fe88bb9858c8fefaf050d161b95e37f765578784582133" => :el_capitan
|
2017-06-12 16:33:37 +00:00
|
|
|
end
|
|
|
|
|
2017-06-09 12:20:39 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "cargo", "build", "--release"
|
|
|
|
bin.install "target/release/fd"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
touch "foo_file"
|
|
|
|
touch "test_file"
|
|
|
|
assert_equal "test_file", shell_output("#{bin}/fd test").chomp
|
|
|
|
end
|
|
|
|
end
|