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 FontMarker_notes < Formula
desc "Font: marker_notes"
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-marker_notes"
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 FontMarker_notes < Formula
(share/"fonts/webfonts").mkpath
# Install TTF fonts
Dir.glob("ttf/*.ttf").each do |font|
Dir.glob("homebrew-fonts-main/font_files/font-marker_notes/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-marker_notes/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-marker_notes/web/*.{woff,woff2,eot,svg}").each do |font|
system "cp", font, share/"fonts/webfonts"
end
# Install documentation and other files
(share/"marker_notes").mkpath
Dir.glob("other_files/*").each do |file|
Dir.glob("homebrew-fonts-main/font_files/font-marker_notes/other_files/*").each do |file|
system "cp", "-r", file, share/"marker_notes"
end
end