Update font formulas to use specific directory paths for font files, ensuring proper installation structure across multiple font classes.

This commit is contained in:
Matt Troutman 2025-05-19 12:14:09 -05:00
parent 8d5f0f3f90
commit 749dc7d418
No known key found for this signature in database
125 changed files with 625 additions and 625 deletions

View file

@ -7,7 +7,7 @@
class FontCat-outline < Formula
desc "Font: cat-outline"
homepage "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts"
url "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts/raw/main/font_files/font-cat-outline"
url "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts/-/archive/main/homebrew-fonts-main.tar.gz"
version "1.0.0"
sha256 "" # This will need to be filled in after the first build
@ -19,23 +19,23 @@ class FontCat-outline < Formula
(share/"fonts/webfonts").mkpath
# Install TTF fonts
Dir.glob("ttf/*.ttf").each do |font|
Dir.glob("homebrew-fonts-main/font_files/font-cat-outline/ttf/*.ttf").each do |font|
system "cp", font, share/"fonts/truetype"
end
# Install OTF fonts
Dir.glob("otf/*.otf").each do |font|
Dir.glob("homebrew-fonts-main/font_files/font-cat-outline/otf/*.otf").each do |font|
system "cp", font, share/"fonts/opentype"
end
# Install web fonts
Dir.glob("web/*.{woff,woff2,eot,svg}").each do |font|
Dir.glob("homebrew-fonts-main/font_files/font-cat-outline/web/*.{woff,woff2,eot,svg}").each do |font|
system "cp", font, share/"fonts/webfonts"
end
# Install documentation and other files
(share/"cat-outline").mkpath
Dir.glob("other_files/*").each do |file|
Dir.glob("homebrew-fonts-main/font_files/font-cat-outline/other_files/*").each do |file|
system "cp", "-r", file, share/"cat-outline"
end
end