1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
From: Peter Colberg <peter@colberg.org>
Date: Mon, 12 Jan 2026 15:57:02 +0100
Subject: Use unicode-data instead of downloading external files
Replace external links with copies of Unicode data and GNU Unifont
provided by the packages unicode-data and ttf-unifont, respectively.
Forwarded: not-needed
Last-Update: 2025-09-01
---
data/Makefile | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/data/Makefile b/data/Makefile
index 03f8348..cbf4431 100644
--- a/data/Makefile
+++ b/data/Makefile
@@ -24,37 +24,37 @@ utf8proc_data.c.new: data_generator.jl $(RAWDATA)
UNICODE_VERSION=17.0.0
UnicodeData.txt:
- $(CURL) $(CURLFLAGS) -o $@ https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt
+ cp /usr/share/unicode/UnicodeData.txt $@
EastAsianWidth.txt:
- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/EastAsianWidth.txt
+ cp /usr/share/unicode/extracted/DerivedEastAsianWidth.txt $@
GraphemeBreakProperty.txt:
- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakProperty.txt
+ cp /usr/share/unicode/auxiliary/GraphemeBreakProperty.txt $@
DerivedCoreProperties.txt:
- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/DerivedCoreProperties.txt
+ cp /usr/share/unicode/DerivedCoreProperties.txt $@
CompositionExclusions.txt:
- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CompositionExclusions.txt
+ cp /usr/share/unicode/CompositionExclusions.txt $@
CaseFolding.txt:
- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CaseFolding.txt
+ cp /usr/share/unicode/CaseFolding.txt $@
NormalizationTest.txt:
- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/NormalizationTest.txt
+ bzip2 -d < /usr/share/unicode/NormalizationTest.txt.bz2 > $@
GraphemeBreakTest.txt:
- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakTest.txt
+ cp /usr/share/unicode/auxiliary/GraphemeBreakTest.txt $@
emoji-data.txt:
- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://unicode.org/Public/$(UNICODE_VERSION)/ucd/emoji/emoji-data.txt
+ cp /usr/share/unicode/emoji/emoji-data.txt $@
Uppercase.txt: DerivedCoreProperties.txt
- $(JULIA) -e 'print(match(r"# Derived Property: Uppercase.*?# Total code points:"s, read("DerivedCoreProperties.txt", String)).match)' > $@
+ grep -zoP '(?s)# Derived Property: Uppercase.*?# Total code points:' DerivedCoreProperties.txt > $@
Lowercase.txt: DerivedCoreProperties.txt
- $(JULIA) -e 'print(match(r"# Derived Property: Lowercase.*?# Total code points:"s, read("DerivedCoreProperties.txt", String)).match)' > $@
+ grep -zoP '(?s)# Derived Property: Lowercase.*?# Total code points:' DerivedCoreProperties.txt > $@
clean:
rm -f $(RAWDATA) NormalizationTest.txt GraphemeBreakTest.txt
|