File: use-system-unicode-data.diff

package info (click to toggle)
mujs 1.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 756 kB
  • sloc: ansic: 17,132; makefile: 149; sh: 121; javascript: 109; python: 101
file content (23 lines) | stat: -rw-r--r-- 800 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Use system Unicode data instead of downloading
Author: Daniel Echeverri <epsilon@debian.org>
Forwarded: not-needed
Last-Update: 2025-10-11

--- a/Makefile
+++ b/Makefile
@@ -72,13 +72,8 @@
 opnames.h: jsi.h
 	grep -E '\<OP_' jsi.h | sed 's/^[^A-Z]*OP_/"/;s/,.*/",/' | tr A-Z a-z > $@
 
-UnicodeData.txt:
-	curl -s -o $@ https://www.unicode.org/Public/16.0.0/ucd/UnicodeData.txt
-SpecialCasing.txt:
-	curl -s -o $@ https://www.unicode.org/Public/16.0.0/ucd/SpecialCasing.txt
-
-utfdata.h: genucd.py UnicodeData.txt SpecialCasing.txt
-	python3 genucd.py UnicodeData.txt SpecialCasing.txt >$@
+utfdata.h: genucd.py
+	python3 genucd.py /usr/share/unicode/ucd/UnicodeData.txt /usr/share/unicode/ucd/SpecialCasing.txt >$@
 
 build/sanitize/mujs: main.c one.c $(SRCS) $(HDRS)
 	@mkdir -p $(@D)