homebrew-core/Formula/just.rb
2019-11-21 07:44:46 -05:00

28 lines
896 B
Ruby

class Just < Formula
desc "Handy way to save and run project-specific commands"
homepage "https://github.com/casey/just"
url "https://github.com/casey/just/archive/v0.5.1.tar.gz"
sha256 "3fa32e3479278c9288c761e7cf7a64d8d0984d599fd3ebb8606dea6343a7a92e"
bottle do
cellar :any_skip_relocation
sha256 "081d5e949000ebf72fd66ab1cfdf52260294206efc7239fbb885c2f0f019210f" => :catalina
sha256 "684bfd93f9681c99d9d43569f1e461055d603977e7637aac25f48e8be0a9e637" => :mojave
sha256 "24f1ad29258a45f3ee3f29920c8d3f150acd556f76248349fd8ab886fc199789" => :high_sierra
end
depends_on "rust" => :build
def install
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
end
test do
(testpath/"justfile").write <<~EOS
default:
touch it-worked
EOS
system "#{bin}/just"
assert_predicate testpath/"it-worked", :exist?
end
end