Fix formula glob paths: remove homebrew-fonts/ prefix

Homebrew sets CWD inside the extracted archive directory, so
Dir.glob paths should start at font_files/, not homebrew-fonts/font_files/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Troutman 2026-03-07 21:26:47 -06:00
parent a85f0e9b53
commit 4273745a9e
No known key found for this signature in database
134 changed files with 536 additions and 536 deletions

View file

@ -95,23 +95,23 @@ class Font{class_name} < Formula
(share/"fonts/webfonts").mkpath
# Install TTF fonts
Dir.glob("homebrew-fonts/font_files/{font_name}/ttf/*.ttf").each do |font|
Dir.glob("font_files/{font_name}/ttf/*.ttf").each do |font|
system "cp", font, share/"fonts/truetype"
end
# Install OTF fonts
Dir.glob("homebrew-fonts/font_files/{font_name}/otf/*.otf").each do |font|
Dir.glob("font_files/{font_name}/otf/*.otf").each do |font|
system "cp", font, share/"fonts/opentype"
end
# Install web fonts
Dir.glob("homebrew-fonts/font_files/{font_name}/web/*.{{woff,woff2,eot,svg}}").each do |font|
Dir.glob("font_files/{font_name}/web/*.{{woff,woff2,eot,svg}}").each do |font|
system "cp", font, share/"fonts/webfonts"
end
# Install documentation and other files
(share/"{formula_name}").mkpath
Dir.glob("homebrew-fonts/font_files/{font_name}/other_files/*").each do |file|
Dir.glob("font_files/{font_name}/other_files/*").each do |file|
system "cp", "-r", file, share/"{formula_name}"
end
end