mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +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"
|
desc "Mac App Store command-line interface"
|
||||||
homepage "https://github.com/mas-cli/mas"
|
homepage "https://github.com/mas-cli/mas"
|
||||||
url "https://github.com/mas-cli/mas.git",
|
url "https://github.com/mas-cli/mas.git",
|
||||||
:tag => "v1.7.1",
|
tag: "v1.7.1",
|
||||||
:revision => "b8dcb4ce4b1d78ada7556565dd5c73e9913758d8"
|
revision: "b8dcb4ce4b1d78ada7556565dd5c73e9913758d8"
|
||||||
|
license "MIT"
|
||||||
head "https://github.com/mas-cli/mas.git"
|
head "https://github.com/mas-cli/mas.git"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -17,16 +18,19 @@ class Mas < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on "carthage" => :build
|
depends_on "carthage" => :build
|
||||||
depends_on :xcode => ["10.2", :build]
|
depends_on xcode: ["10.2", :build]
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Working around build issues in dependencies
|
# Working around build issues in dependencies
|
||||||
# - Prevent warnings from causing build failures
|
# - Prevent warnings from causing build failures
|
||||||
# - Prevent linker errors by telling all lib builds to use max size install names
|
# - 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 = buildpath/"Overrides.xcconfig"
|
||||||
xcconfig.write <<~EOS
|
xcconfig.write <<~EOS
|
||||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
||||||
OTHER_LDFLAGS = -headerpad_max_install_names
|
OTHER_LDFLAGS = -headerpad_max_install_names
|
||||||
|
VALID_ARCHS = #{Hardware::CPU.arch}
|
||||||
EOS
|
EOS
|
||||||
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,9 @@ class Mas < Formula
|
||||||
desc "Mac App Store command-line interface"
|
desc "Mac App Store command-line interface"
|
||||||
homepage "https://github.com/mas-cli/mas"
|
homepage "https://github.com/mas-cli/mas"
|
||||||
url "https://github.com/mas-cli/mas.git",
|
url "https://github.com/mas-cli/mas.git",
|
||||||
:tag => "v1.7.1",
|
tag: "v1.7.1",
|
||||||
:revision => "b8dcb4ce4b1d78ada7556565dd5c73e9913758d8"
|
revision: "b8dcb4ce4b1d78ada7556565dd5c73e9913758d8"
|
||||||
|
license "MIT"
|
||||||
head "https://github.com/mas-cli/mas.git"
|
head "https://github.com/mas-cli/mas.git"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -13,16 +14,19 @@ class Mas < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on "carthage" => :build
|
depends_on "carthage" => :build
|
||||||
depends_on :xcode => ["10.2", :build]
|
depends_on xcode: ["10.2", :build]
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Working around build issues in dependencies
|
# Working around build issues in dependencies
|
||||||
# - Prevent warnings from causing build failures
|
# - Prevent warnings from causing build failures
|
||||||
# - Prevent linker errors by telling all lib builds to use max size install names
|
# - 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 = buildpath/"Overrides.xcconfig"
|
||||||
xcconfig.write <<~EOS
|
xcconfig.write <<~EOS
|
||||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
||||||
OTHER_LDFLAGS = -headerpad_max_install_names
|
OTHER_LDFLAGS = -headerpad_max_install_names
|
||||||
|
VALID_ARCHS = #{Hardware::CPU.arch}
|
||||||
EOS
|
EOS
|
||||||
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue