-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iconsur: add dependency for xcodebuild
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ class Iconsur < Formula | |
# this causes issues if a user has Homebrew Python installed (EXTERNALLY-MANAGED). | ||
# We instead prepare a virtualenv with all missing packages. | ||
on_monterey :or_newer do | ||
depends_on xcode: :build # for xcodebuild | ||
depends_on "[email protected]" | ||
end | ||
|
||
|
@@ -43,12 +44,15 @@ def install | |
system "npm", "install", *std_npm_args | ||
|
||
if MacOS.version >= :monterey | ||
# help `pyobjc-framework-cocoa` run xcodebuild when xcode-select is set to CLT | ||
ENV["DEVELOPER_DIR"] = ENV["HOMEBREW_DEVELOPER_DIR"] | ||
|
||
venv = virtualenv_create(libexec/"venv", "python3.13") | ||
venv.pip_install resources | ||
bin.install Dir["#{libexec}/bin/*"] | ||
bin.install libexec.glob("bin/*") | ||
bin.env_script_all_files libexec/"bin", PATH: "#{venv.root}/bin:${PATH}" | ||
else | ||
bin.install_symlink Dir["#{libexec}/bin/*"] | ||
bin.install_symlink libexec.glob("bin/*") | ||
end | ||
end | ||
|
||
|