7a4dabfc1a
This restores 1.8 hash rockets because they look nicer with e.g. `depends_on :foo => :bar`
31 lines
1,022 B
Ruby
31 lines
1,022 B
Ruby
class Mas < Formula
|
|
desc "Mac App Store command-line interface"
|
|
homepage "https://github.com/argon/mas"
|
|
url "https://github.com/argon/mas/archive/v1.3.0.tar.gz"
|
|
sha256 "1f7375a312efa9a4ce749da13617a7675ba95d1b3e1e6863cd7f31e56a4c9079"
|
|
head "https://github.com/argon/mas.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "05c79cb39d5ae962a0a0f547ad36d88d62d355a69936e8bd88a9ce5b6a1daf77" => :sierra
|
|
sha256 "360664b0d88c79c1e917df02bdb749bc1cdc9337075059944c49bb8f451baf71" => :el_capitan
|
|
end
|
|
|
|
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
|