homebrew-core/Formula/needle.rb
2019-05-14 20:53:23 -04:00

24 lines
760 B
Ruby

class Needle < Formula
desc "Compile-time safe Swift dependency injection framework with real code"
homepage "https://github.com/uber/needle"
url "https://github.com/uber/needle.git",
:tag => "v0.10.0",
:revision => "5f8ea2228d19d34b9611b0322c9c43acc929faee"
bottle do
cellar :any_skip_relocation
sha256 "18dee69387e7a101967583d29541dc93a5fb65db526eaf04379109eb8625d408" => :mojave
sha256 "8f10782b33daaabc306c43c9b10bb8eba09987aa9e15d94dee6ebde167e418d2" => :high_sierra
end
depends_on :xcode => ["10.0", :build]
depends_on :xcode => "6.0"
def install
system "make", "install", "BINARY_FOLDER_PREFIX=#{prefix}"
end
test do
assert_match version.to_s, shell_output("#{bin}/needle version")
end
end