mirror of
https://github.com/mas-cli/mas
synced 2024-11-24 20:43:10 +00:00
🍺 Update formula with differences from homebrew-core
This commit is contained in:
parent
ace9b94d43
commit
74e7f814ae
2 changed files with 14 additions and 6 deletions
|
@ -2,8 +2,9 @@ class Mas < Formula
|
|||
desc "Mac App Store command-line interface"
|
||||
homepage "https://github.com/mas-cli/mas"
|
||||
url "https://github.com/mas-cli/mas.git",
|
||||
:tag => "v1.7.1",
|
||||
:revision => "b8dcb4ce4b1d78ada7556565dd5c73e9913758d8"
|
||||
tag: "v1.7.1",
|
||||
revision: "b8dcb4ce4b1d78ada7556565dd5c73e9913758d8"
|
||||
license "MIT"
|
||||
head "https://github.com/mas-cli/mas.git"
|
||||
|
||||
bottle do
|
||||
|
@ -17,16 +18,19 @@ class Mas < Formula
|
|||
end
|
||||
|
||||
depends_on "carthage" => :build
|
||||
depends_on :xcode => ["10.2", :build]
|
||||
depends_on xcode: ["10.2", :build]
|
||||
|
||||
def install
|
||||
# Working around build issues in dependencies
|
||||
# - Prevent warnings from causing build failures
|
||||
# - Prevent linker errors by telling all lib builds to use max size install names
|
||||
# - Ensure dependencies build for the current CPU; otherwise Commandant will
|
||||
# build for x86_64 when running arm64
|
||||
xcconfig = buildpath/"Overrides.xcconfig"
|
||||
xcconfig.write <<~EOS
|
||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
||||
OTHER_LDFLAGS = -headerpad_max_install_names
|
||||
VALID_ARCHS = #{Hardware::CPU.arch}
|
||||
EOS
|
||||
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
||||
|
||||
|
|
|
@ -2,8 +2,9 @@ class Mas < Formula
|
|||
desc "Mac App Store command-line interface"
|
||||
homepage "https://github.com/mas-cli/mas"
|
||||
url "https://github.com/mas-cli/mas.git",
|
||||
:tag => "v1.7.1",
|
||||
:revision => "b8dcb4ce4b1d78ada7556565dd5c73e9913758d8"
|
||||
tag: "v1.7.1",
|
||||
revision: "b8dcb4ce4b1d78ada7556565dd5c73e9913758d8"
|
||||
license "MIT"
|
||||
head "https://github.com/mas-cli/mas.git"
|
||||
|
||||
bottle do
|
||||
|
@ -13,16 +14,19 @@ class Mas < Formula
|
|||
end
|
||||
|
||||
depends_on "carthage" => :build
|
||||
depends_on :xcode => ["10.2", :build]
|
||||
depends_on xcode: ["10.2", :build]
|
||||
|
||||
def install
|
||||
# Working around build issues in dependencies
|
||||
# - Prevent warnings from causing build failures
|
||||
# - Prevent linker errors by telling all lib builds to use max size install names
|
||||
# - Ensure dependencies build for the current CPU; otherwise Commandant will
|
||||
# build for x86_64 when running arm64
|
||||
xcconfig = buildpath/"Overrides.xcconfig"
|
||||
xcconfig.write <<~EOS
|
||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
||||
OTHER_LDFLAGS = -headerpad_max_install_names
|
||||
VALID_ARCHS = #{Hardware::CPU.arch}
|
||||
EOS
|
||||
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
||||
|
||||
|
|
Loading…
Reference in a new issue