2018-03-25 10:32:02 +00:00
|
|
|
class Mint < Formula
|
|
|
|
desc "Dependency manager that installs and runs Swift command-line tool packages"
|
|
|
|
homepage "https://github.com/yonaskolb/Mint"
|
2018-08-13 10:41:29 +00:00
|
|
|
url "https://github.com/yonaskolb/Mint/archive/0.11.2.tar.gz"
|
|
|
|
sha256 "9090af8dfb6b0334e961bcd373950bf1a33fc54fad064723afd4774df8871504"
|
2018-03-25 10:32:02 +00:00
|
|
|
|
2018-03-28 16:09:59 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-08-13 11:15:41 +00:00
|
|
|
sha256 "aef9ebf4d33822af63de9f640914abb04ba5624ef209f664681a87b5b122ec7f" => :high_sierra
|
|
|
|
sha256 "84fbf229c3562f68a413630ab112bf8859f3cd171ccf78e3e4aaa1429141eab6" => :sierra
|
2018-03-28 16:09:59 +00:00
|
|
|
end
|
|
|
|
|
2018-04-13 04:26:33 +00:00
|
|
|
depends_on :xcode => ["9.2", :build]
|
2018-03-25 10:32:02 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
|
|
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
|