homebrew-core/Formula/mint.rb

28 lines
1.0 KiB
Ruby

class Mint < Formula
desc "Dependency manager that installs and runs Swift command-line tool packages"
homepage "https://github.com/yonaskolb/Mint"
url "https://github.com/yonaskolb/Mint/archive/0.17.1.tar.gz"
sha256 "0e3ab23e548a752f6eee3a7b98d1c137a30371e4a0ec9212840baaa56741d2e4"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "c57aaea4b6eb863ef946bafe3a77f3d32ad4e10e05876b7c6b2df8f8b9656f4e"
sha256 cellar: :any_skip_relocation, big_sur: "3ccf422821dd5fc82488f8e0ab2a11efb645901527b8cf9c42979cc152a9ce02"
sha256 cellar: :any_skip_relocation, catalina: "d09ea36619994628564fb3d7e8e71b8c368c59f68e29174fb84b9b127bd9290e"
end
depends_on xcode: ["12.0", :build]
def install
system "swift", "build", "--disable-sandbox", "-c", "release"
bin.install ".build/release/#{name}"
end
test do
# Test by showing the help scree
system "#{bin}/mint", "help"
# Test showing list of installed tools
system "#{bin}/mint", "list"
end
end