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

@ -16,9 +16,9 @@ from tests.conftest import (
def _run_install_simulation(font_name: str, font_dir: Path, prefix: Path, formula_name: str) -> None:
"""
Simulate the formula's install: copy ttf/otf/web/other_files to prefix
as the formula would (same layout as homebrew-fonts-main/font_files/<font_name>/).
as the formula would (same layout as homebrew-fonts/font_files/<font_name>/).
"""
# Layout formula expects: homebrew-fonts-main/font_files/<font_name>/{ttf,otf,web,other_files}
# Layout formula expects: homebrew-fonts/font_files/<font_name>/{ttf,otf,web,other_files}
# We use font_dir directly (same layout).
(prefix / "fonts").mkdir(parents=True)
(prefix / "fonts/truetype").mkdir(parents=True)