From: Peter Colberg Date: Tue, 21 Dec 2021 14:29:13 +0000 (+0000) Subject: Use unicode-data instead of downloading external files X-Git-Tag: archive/raspbian/2.7.0-4+rpi1~1^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a664ca3b20fae5ad713c78e1600581887a805a9c;p=utf8proc.git Use unicode-data instead of downloading external files Forwarded: not-needed Last-Update: 2021-12-21 Replace external links with copies of Unicode data and GNU Unifont provided by the packages unicode-data and ttf-unifont, respectively. Last-Update: 2021-12-21 Gbp-Pq: Name use-unicode-data.patch --- diff --git a/data/Makefile b/data/Makefile index 1fc9d53..0aa8f6a 100644 --- a/data/Makefile +++ b/data/Makefile @@ -25,31 +25,31 @@ CharWidths.txt: charwidths.jl EastAsianWidth.txt UNICODE_VERSION=14.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 + $(PERL) -pe 's,÷,/,g;s,×,+,g' < /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 $(RUBY) -e 'puts File.read("DerivedCoreProperties.txt")[/# Derived Property: Uppercase.*?# Total code points:/m]' > $@