Fix archive path: homebrew-fonts-main → homebrew-fonts

Gitea archives unpack as homebrew-fonts/, not homebrew-fonts-main/.
Updated formula generator, tests, and docs to match.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Troutman 2026-03-07 21:24:25 -06:00
parent 387a4795d7
commit a85f0e9b53
No known key found for this signature in database
138 changed files with 551 additions and 540 deletions

View file

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