unicode-ucd: upgrade 16.0.0 -> 18.0.0

Upstream moved where they are putting tarballs[1]:

  Starting with Unicode 17.0.0, the zipped versions of the data files
  are only published in https://www.unicode.org/Public/<version>/ucd/

Update the SRC_URI and UPSTREAM_CHECK_URI patterns, upgrade to 18.0.0,
and unpack the .zip into ${BP} so we don't need to set ${S}.

[1] https://www.unicode.org/Public/zipped/ReadMe.txt

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Ross Burton authored and Khem Raj committed 2026-10-01 07:40:53 -07:00
1 parent dbdab2cecd
commit c4f9592122
1 file changed
+5 -7
@@ -4,26 +4,24 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/ucd-license-v4.txt;md5=3049f4ad14be1ebf8c80a93d9d32b2d6"
SRC_URI = " \
https://www.unicode.org/Public/zipped/${PV}/UCD.zip;name=ucd;subdir=ucd;downloadfilename=unicode-ucd-${PV}.zip \
https://www.unicode.org/Public/${PV}/ucd/UCD.zip;name=ucd;subdir=${BP};downloadfilename=unicode-ucd-${PV}.zip \
https://www.unicode.org/license.txt;downloadfilename=ucd-license-v4.txt;name=ucd-license \
"
SRC_URI[ucd.sha256sum] = "c86dd81f2b14a43b0cc064aa5f89aa7241386801e35c59c7984e579832634eb2"
SRC_URI[ucd.sha256sum] = "7b3e555514060b92290d154f53655c5eb0fa62b16eb04c03434ff72d1a66a0d8"
SRC_URI[ucd-license.sha256sum] = "e7a93b009565cfce55919a381437ac4db883e9da2126fa28b91d12732bc53d96"
# The tarball name (UCD.zip) carries no version, so check the per-release
# directories in the Public/zipped/ index instead.
UPSTREAM_CHECK_URI = "https://www.unicode.org/Public/zipped/"
# directories in the Public/ index instead.
UPSTREAM_CHECK_URI = "https://www.unicode.org/Public/"
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
inherit allarch
S = "${UNPACKDIR}"
do_configure[noexec] = "1"
do_install() {
install -d ${D}${datadir}/unicode
cp -rf ${UNPACKDIR}/ucd ${D}${datadir}/unicode
cp -rf ${S} ${D}${datadir}/unicode/ucd
}
FILES:${PN} = "${datadir}/unicode/ucd"