From 8d5f0f3f902215b565dcf13651e57e2dc0762363 Mon Sep 17 00:00:00 2001 From: Matt Troutman Date: Mon, 19 May 2025 12:13:23 -0500 Subject: [PATCH] Update Homebrew formula generator to use new archive URL and adjust file paths for font installation. Add tap configuration for Genet Godzilla fonts. --- .fontfoldercleanup/create_homebrew_formula.py | 10 +++++----- .fontfoldercleanup/tap_config.rb | 13 +++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .fontfoldercleanup/tap_config.rb diff --git a/.fontfoldercleanup/create_homebrew_formula.py b/.fontfoldercleanup/create_homebrew_formula.py index 4a471db..07dbc75 100755 --- a/.fontfoldercleanup/create_homebrew_formula.py +++ b/.fontfoldercleanup/create_homebrew_formula.py @@ -19,7 +19,7 @@ class HomebrewFormulaGenerator: class Font{formula_name.capitalize()} < Formula desc "Font: {formula_name}" 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_name}" + 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 @@ -31,23 +31,23 @@ class Font{formula_name.capitalize()} < Formula (share/"fonts/webfonts").mkpath # Install TTF fonts - Dir.glob("ttf/*.ttf").each do |font| + Dir.glob("homebrew-fonts-main/font_files/{font_name}/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_name}/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_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("other_files/*").each do |file| + Dir.glob("homebrew-fonts-main/font_files/{font_name}/other_files/*").each do |file| system "cp", "-r", file, share/"{formula_name}" end end diff --git a/.fontfoldercleanup/tap_config.rb b/.fontfoldercleanup/tap_config.rb new file mode 100644 index 0000000..938083e --- /dev/null +++ b/.fontfoldercleanup/tap_config.rb @@ -0,0 +1,13 @@ +# Tap configuration for genet-godzilla/fonts +class GenetGodzillaFonts < Formula + desc "Font collection from Genet Godzilla" + homepage "http://clancy.genet-godzilla.ts.net:3002/Fonts/homebrew-fonts" + 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 + + def install + # This is a meta-formula that doesn't install anything + # It's used to set up the tap configuration + end +end \ No newline at end of file