diff options
-rw-r--r-- | meta/recipes-support/icu/icu_72-1.bb (renamed from meta/recipes-support/icu/icu_71.1.bb) | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/meta/recipes-support/icu/icu_71.1.bb b/meta/recipes-support/icu/icu_72-1.bb index df999dce3b..2b20bdd7b2 100644 --- a/meta/recipes-support/icu/icu_71.1.bb +++ b/meta/recipes-support/icu/icu_72-1.bb | |||
@@ -15,7 +15,7 @@ S = "${WORKDIR}/icu/source" | |||
15 | SPDX_S = "${WORKDIR}/icu" | 15 | SPDX_S = "${WORKDIR}/icu" |
16 | STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}" | 16 | STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}" |
17 | 17 | ||
18 | ICU_MAJOR_VER = "${@d.getVar('PV').split('.')[0]}" | 18 | ICU_MAJOR_VER = "${@d.getVar('PV').split('-')[0]}" |
19 | 19 | ||
20 | inherit autotools pkgconfig github-releases | 20 | inherit autotools pkgconfig github-releases |
21 | 21 | ||
@@ -54,8 +54,8 @@ do_install:append:class-target() { | |||
54 | # The native pkgdata can not generate the correct data file. | 54 | # The native pkgdata can not generate the correct data file. |
55 | # Use icupkg to re-generate it. | 55 | # Use icupkg to re-generate it. |
56 | if [ "${SITEINFO_ENDIANNESS}" = "be" ] ; then | 56 | if [ "${SITEINFO_ENDIANNESS}" = "be" ] ; then |
57 | rm -f ${D}/${datadir}/${BPN}/${PV}/icudt${ICU_MAJOR_VER}b.dat | 57 | rm -f ${D}/${datadir}/${BPN}/${@icu_install_folder(d)}/icudt${ICU_MAJOR_VER}b.dat |
58 | icupkg -tb ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat ${D}/${datadir}/${BPN}/${PV}/icudt${ICU_MAJOR_VER}b.dat | 58 | icupkg -tb ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat ${D}/${datadir}/${BPN}/${@icu_install_folder(d)}/icudt${ICU_MAJOR_VER}b.dat |
59 | fi | 59 | fi |
60 | 60 | ||
61 | # Remove build host references... | 61 | # Remove build host references... |
@@ -63,8 +63,8 @@ do_install:append:class-target() { | |||
63 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | 63 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
64 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | 64 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
65 | -e 's:${HOSTTOOLS_DIR}/::g' \ | 65 | -e 's:${HOSTTOOLS_DIR}/::g' \ |
66 | ${D}/${libdir}/${BPN}/${PV}/Makefile.inc \ | 66 | ${D}/${libdir}/${BPN}/${@icu_install_folder(d)}/Makefile.inc \ |
67 | ${D}/${libdir}/${BPN}/${PV}/pkgdata.inc | 67 | ${D}/${libdir}/${BPN}/${@icu_install_folder(d)}/pkgdata.inc |
68 | } | 68 | } |
69 | 69 | ||
70 | PACKAGES =+ "libicudata libicuuc libicui18n libicutu libicuio" | 70 | PACKAGES =+ "libicudata libicuuc libicui18n libicutu libicuio" |
@@ -82,13 +82,17 @@ BBCLASSEXTEND = "native nativesdk" | |||
82 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=a89d03060ff9c46552434dbd1fe3ed1f" | 82 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=a89d03060ff9c46552434dbd1fe3ed1f" |
83 | 83 | ||
84 | def icu_download_version(d): | 84 | def icu_download_version(d): |
85 | pvsplit = d.getVar('PV').split('.') | 85 | pvsplit = d.getVar('PV').split('-') |
86 | return pvsplit[0] + "_" + pvsplit[1] | 86 | return pvsplit[0] + "_" + pvsplit[1] |
87 | 87 | ||
88 | def icu_download_folder(d): | 88 | def icu_download_folder(d): |
89 | pvsplit = d.getVar('PV').split('.') | 89 | pvsplit = d.getVar('PV').split('-') |
90 | return pvsplit[0] + "-" + pvsplit[1] | 90 | return pvsplit[0] + "-" + pvsplit[1] |
91 | 91 | ||
92 | def icu_install_folder(d): | ||
93 | pvsplit = d.getVar('PV').split('-') | ||
94 | return pvsplit[0] + "." + pvsplit[1] | ||
95 | |||
92 | ICU_PV = "${@icu_download_version(d)}" | 96 | ICU_PV = "${@icu_download_version(d)}" |
93 | ICU_FOLDER = "${@icu_download_folder(d)}" | 97 | ICU_FOLDER = "${@icu_download_folder(d)}" |
94 | 98 | ||
@@ -108,8 +112,8 @@ SRC_URI = "${BASE_SRC_URI};name=code \ | |||
108 | SRC_URI:append:class-target = "\ | 112 | SRC_URI:append:class-target = "\ |
109 | file://0001-Disable-LDFLAGSICUDT-for-Linux.patch \ | 113 | file://0001-Disable-LDFLAGSICUDT-for-Linux.patch \ |
110 | " | 114 | " |
111 | SRC_URI[code.sha256sum] = "67a7e6e51f61faf1306b6935333e13b2c48abd8da6d2f46ce6adca24b1e21ebf" | 115 | SRC_URI[code.sha256sum] = "a2d2d38217092a7ed56635e34467f92f976b370e20182ad325edea6681a71d68" |
112 | SRC_URI[data.sha256sum] = "e3882b4fece6e5e039f22c3189b7ba224180fd26fdbfa9db284617455b93e804" | 116 | SRC_URI[data.sha256sum] = "ee19f876507d6c23d9e0a2b631096f6b0eaa6fa61728c33a89efdb55e3385dea" |
113 | 117 | ||
114 | UPSTREAM_CHECK_REGEX = "releases/tag/release-(?P<pver>(?!.+rc).+)" | 118 | UPSTREAM_CHECK_REGEX = "releases/tag/release-(?P<pver>(?!.+rc).+)" |
115 | GITHUB_BASE_URI = "https://github.com/unicode-org/icu/releases" | 119 | GITHUB_BASE_URI = "https://github.com/unicode-org/icu/releases" |