2016-04-21 15:14:05 +00:00
|
|
|
class Mas < Formula
|
|
|
|
desc "Mac App Store command-line interface"
|
|
|
|
homepage "https://github.com/argon/mas"
|
|
|
|
url "https://github.com/argon/mas/archive/v1.2.0.tar.gz"
|
|
|
|
sha256 "79a30d2b8c053a33b69a255da3ad35a96a337f0b9dded5112e6e48cdadddf73a"
|
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
|
|
|
|
sha256 "bf2b90e3f95ecc72899656d72b445a149c375695aca7a8416e5d86f25cf08109" => :el_capitan
|
|
|
|
end
|
|
|
|
|
2016-04-21 15:14:05 +00:00
|
|
|
depends_on :xcode => ["7.3", :build]
|
|
|
|
|
|
|
|
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
|