Debian Codegraph @

debian/patches/bye-uv-bye-woff2

raw
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Alex Myczko <[email protected]>
3 Date: Jun, 01 2026 10:31:42 +0200
4 Subject: [PATCH] <short summary of the patch>
5
6 TODO: Put a short summary on the line above and replace this paragraph
7 with a longer explanation of this change. Complete the meta-information
8 with other relevant fields (see below for details). To make it easier, the
9 information below has been extracted from the changelog. Adjust it or drop
10 it.
11
12 ---
13 The information above should follow the Patch Tagging Guidelines, please
14 checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
15 are templates for supplementary fields that you might want to add:
16
17 Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
18 Bug: <upstream-bugtracker-url>
19 Bug-<Vendor>: <vendor-bugtracker-url>
20 Forwarded: (no|not-needed|<patch-forwarded-url>)
21 Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
22 Reviewed-By: <name and email of someone who approved/reviewed the patch>
23
24 --- fonts-0xproto-2.502+ds.orig/Makefile
25 +++ fonts-0xproto-2.502+ds/Makefile
26 @@ -4,45 +4,28 @@ SOURCE_DIR = sources
27 ROMAN_GLYPHS_FILE = $(SOURCE_DIR)/$(FONT_NAME).glyphspackage
28 ITALIC_GLYPHS_FILE = $(SOURCE_DIR)/$(FONT_NAME)-Italic.glyphspackage
29 OUTPUT_DIR = fonts
30 -WOFF2_DIR = woff2
31 SCRIPTS_DIR = scripts
32
33 +.PHONY: setup
34 setup:
35 - uv sync
36 - if [ ! -e $(WOFF2_DIR) ]; then $(MAKE) setup-woff2; fi
37 -
38 -setup-woff2:
39 - git clone --recursive https://github.com/google/woff2.git $(WOFF2_DIR)
40 - cd $(WOFF2_DIR) && make clean all
41 + @echo "Dependencies must be installed via pip (fontmake, fonttools, glyphsLib, ttfautohint-py)"
42 + @echo "Run: pip install -r requirements.txt"
43
44 .PHONY: build
45 build:
46 $(MAKE) clean
47 $(MAKE) compile-all
48 - uv run python $(SCRIPTS_DIR)/add_stat.py $(OUTPUT_DIR)/$(FONT_NAME)-Regular.ttf $(OUTPUT_DIR)/$(FONT_NAME)-Bold.ttf $(OUTPUT_DIR)/$(FONT_NAME)-Italic.ttf
49 - uv run python $(SCRIPTS_DIR)/remove_calt.py $(OUTPUT_DIR) -o $(OUTPUT_DIR)/No-Ligatures
50 - uv run python $(SCRIPTS_DIR)/build_zx_fonts.py
51 -
52 -compile-woff2-roman: $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).ttf $(OUTPUT_DIR)/$(FONT_NAME)-$(BOLD_WEIGHT).ttf
53 - ./woff2/woff2_compress $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).ttf
54 - ./woff2/woff2_compress $(OUTPUT_DIR)/$(FONT_NAME)-$(BOLD_WEIGHT).ttf
55 -
56 -compile-woff2-italic: $(OUTPUT_DIR)/$(FONT_NAME)-$(ITALIC).ttf
57 - ./woff2/woff2_compress $(OUTPUT_DIR)/$(FONT_NAME)-$(ITALIC).ttf
58 + python3 $(SCRIPTS_DIR)/add_stat.py $(OUTPUT_DIR)/$(FONT_NAME)-Regular.ttf $(OUTPUT_DIR)/$(FONT_NAME)-Bold.ttf $(OUTPUT_DIR)/$(FONT_NAME)-Italic.ttf
59 + python3 $(SCRIPTS_DIR)/remove_calt.py $(OUTPUT_DIR) -o $(OUTPUT_DIR)/No-Ligatures
60 + python3 $(SCRIPTS_DIR)/build_zx_fonts.py
61
62 compile-roman: $(ROMAN_GLYPHS_FILE)
63 - uv run fontmake -a -g $(ROMAN_GLYPHS_FILE) -i --output-dir $(OUTPUT_DIR)
64 + fontmake -a -g $(ROMAN_GLYPHS_FILE) -i --output-dir $(OUTPUT_DIR)
65
66 compile-italic: $(ITALIC_GLYPHS_FILE)
67 - uv run fontmake -a -g $(ITALIC_GLYPHS_FILE) --output-dir $(OUTPUT_DIR)
68 -
69 -compile-woff2: compile-roman compile-italic
70 - @for family in $(FAMILIES); do \
71 - ./woff2/woff2_compress $(OUTPUT_DIR)/$(FONT_NAME)-$$family.ttf; \
72 - done
73 + fontmake -a -g $(ITALIC_GLYPHS_FILE) --output-dir $(OUTPUT_DIR)
74
75 -compile-all:
76 - $(MAKE) compile-woff2
77 +compile-all: compile-roman compile-italic
78
79 .PHONY: clean
80 clean:
81 @@ -57,9 +40,8 @@ install-otf: $(OUTPUT_DIR)
82 install:
83 $(MAKE) build && $(MAKE) install-otf
84
85 -
86 .PHONY: test
87 test:
88 - uv run fontbakery check-universal $(OUTPUT_DIR)/$(FONT_NAME)-*.ttf
89 - uv run fontbakery check-universal $(OUTPUT_DIR)/No-Ligatures/*.ttf
90 - uv run fontbakery check-universal $(OUTPUT_DIR)/ZxProto/*.ttf
91 + fontbakery check-universal $(OUTPUT_DIR)/$(FONT_NAME)-*.ttf
92 + fontbakery check-universal $(OUTPUT_DIR)/No-Ligatures/*.ttf
93 + fontbakery check-universal $(OUTPUT_DIR)/ZxProto/*.ttf