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-15 23:35:54 +00:00
|
|
|
url "https://github.com/argon/mas/archive/v1.3.0.tar.gz"
|
|
|
|
sha256 "1f7375a312efa9a4ce749da13617a7675ba95d1b3e1e6863cd7f31e56a4c9079"
|
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-17 01:46:15 +00:00
|
|
|
sha256 "05c79cb39d5ae962a0a0f547ad36d88d62d355a69936e8bd88a9ce5b6a1daf77" => :sierra
|
2016-09-16 00:07:17 +00:00
|
|
|
sha256 "360664b0d88c79c1e917df02bdb749bc1cdc9337075059944c49bb8f451baf71" => :el_capitan
|
2016-04-21 15:28:08 +00:00
|
|
|
end
|
|
|
|
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :xcode => ["7.3", :build]
|
2016-04-21 15:14:05 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GEM_HOME"] = buildpath/".gem"
|
|
|
|
system "gem", "install", "bundler"
|
|
|
|
ENV.prepend_path "PATH", "#{ENV["GEM_HOME"]}/bin"
|
|
|
|
system "script/bootstrap"
|
|
|
|
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
|