2016-04-21 15:14:05 +00:00
|
|
|
class Mas < Formula
|
|
|
|
desc "Mac App Store command-line interface"
|
|
|
|
homepage "https://github.com/argon/mas"
|
2016-09-25 22:18:09 +00:00
|
|
|
url "https://github.com/argon/mas/archive/v1.3.1.tar.gz"
|
|
|
|
sha256 "9326058c9e572dd38df644313307805757d7ea6dfea8626e0f41c373ecbd46b5"
|
2016-07-16 03:27:48 +00:00
|
|
|
head "https://github.com/argon/mas.git"
|
2016-04-21 15:14:05 +00:00
|
|
|
|
2016-04-21 15:28:08 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-26 01:02:27 +00:00
|
|
|
sha256 "dabea41de5ca826bba584a0d00f8d7b65024f504e5f5fa9dd7639c2f9e410421" => :sierra
|
|
|
|
sha256 "894480201eb8bd8772378c844860fac3d9ff2fdb75fe5f0001581b14c8cbceed" => :el_capitan
|
2016-04-21 15:28:08 +00:00
|
|
|
end
|
|
|
|
|
2016-09-25 22:18:09 +00:00
|
|
|
depends_on :xcode => ["8.0", :build]
|
2016-04-21 15:14:05 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
xcodebuild "-project", "mas-cli.xcodeproj",
|
|
|
|
"-scheme", "mas-cli",
|
|
|
|
"-configuration", "Release",
|
|
|
|
"SYMROOT=build"
|
|
|
|
bin.install "build/mas"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal version.to_s, shell_output("#{bin}/mas version").chomp
|
|
|
|
end
|
|
|
|
end
|