diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-08-23 22:20:28 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-25 16:00:11 +0100 |
commit | 2457432ad9a1f232dd67e06918bc2d7e3831d305 (patch) | |
tree | c4651d363bf6201bbc17e076d2933d6b62280242 /meta/recipes-core/gettext/gettext_0.21.bb | |
parent | 742c773a93d1b7a5ca9d2f04e15492b170439180 (diff) | |
download | poky-2457432ad9a1f232dd67e06918bc2d7e3831d305.tar.gz |
gettext: update 0.20.2 -> 0.21
Drop add-with-bisonlocaledir.patch as upstream (gnulib, not bison)
now determines the directory from datadir.
(From OE-Core rev: 8a89c77e5b5a7915b9cce4979ee8caa593847e51)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/gettext/gettext_0.21.bb')
-rw-r--r-- | meta/recipes-core/gettext/gettext_0.21.bb | 209 |
1 files changed, 209 insertions, 0 deletions
diff --git a/meta/recipes-core/gettext/gettext_0.21.bb b/meta/recipes-core/gettext/gettext_0.21.bb new file mode 100644 index 0000000000..54305623dd --- /dev/null +++ b/meta/recipes-core/gettext/gettext_0.21.bb | |||
@@ -0,0 +1,209 @@ | |||
1 | SUMMARY = "Utilities and libraries for producing multi-lingual messages" | ||
2 | DESCRIPTION = "GNU gettext is a set of tools that provides a framework to help other programs produce multi-lingual messages. \ | ||
3 | These tools include a set of conventions about how programs should be written to support message catalogs, a directory and file \ | ||
4 | naming organization for the message catalogs themselves, a runtime library supporting the retrieval of translated messages, and \ | ||
5 | a few stand-alone programs to massage in various ways the sets of translatable and already translated strings." | ||
6 | HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" | ||
7 | SECTION = "libs" | ||
8 | LICENSE = "GPLv3+ & LGPL-2.1+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e" | ||
10 | |||
11 | # Because po-gram-gen.y has been modified by fix-CVE-2018-18751.patch, | ||
12 | # it requires yacc which provided by bison-native | ||
13 | # Please remove bison-native from DEPENDS* when next upgrade | ||
14 | DEPENDS = "bison-native gettext-native virtual/libiconv" | ||
15 | DEPENDS_class-native = "bison-native gettext-minimal-native" | ||
16 | PROVIDES = "virtual/libintl virtual/gettext" | ||
17 | PROVIDES_class-native = "virtual/gettext-native" | ||
18 | RCONFLICTS_${PN} = "proxy-libintl" | ||
19 | SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ | ||
20 | file://parallel.patch \ | ||
21 | file://use-pkgconfig.patch \ | ||
22 | file://run-ptest \ | ||
23 | file://serial-tests-config.patch \ | ||
24 | file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \ | ||
25 | file://0001-init-env.in-do-not-add-C-CXX-parameters.patch \ | ||
26 | file://mingw.patch \ | ||
27 | " | ||
28 | SRC_URI[sha256sum] = "c77d0da3102aec9c07f43671e60611ebff89a996ef159497ce8e59d075786b12" | ||
29 | |||
30 | inherit autotools texinfo pkgconfig ptest | ||
31 | |||
32 | EXTRA_OECONF += "--without-lispdir \ | ||
33 | --disable-csharp \ | ||
34 | --disable-libasprintf \ | ||
35 | --disable-java \ | ||
36 | --disable-native-java \ | ||
37 | --disable-openmp \ | ||
38 | --disable-acl \ | ||
39 | --without-emacs \ | ||
40 | --without-cvs \ | ||
41 | --without-git \ | ||
42 | --cache-file=${B}/config.cache \ | ||
43 | " | ||
44 | EXTRA_OECONF_append_class-target = " \ | ||
45 | --with-bisonlocaledir=${datadir}/locale \ | ||
46 | gt_cv_locale_fr_utf8=fr_FR \ | ||
47 | gt_cv_locale_fr=fr_FR.ISO-8859-1 \ | ||
48 | gt_cv_locale_de_utf8=de_DE \ | ||
49 | gt_cv_locale_de=de_DE.ISO-8859-1 \ | ||
50 | " | ||
51 | |||
52 | PACKAGECONFIG ??= "croco glib libxml" | ||
53 | PACKAGECONFIG_class-native = "" | ||
54 | PACKAGECONFIG_class-nativesdk = "" | ||
55 | |||
56 | PACKAGECONFIG[croco] = "--without-included-libcroco,--with-included-libcroco,libcroco" | ||
57 | PACKAGECONFIG[glib] = "--without-included-glib,--with-included-glib,glib-2.0" | ||
58 | PACKAGECONFIG[libxml] = "--without-included-libxml,--with-included-libxml,libxml2" | ||
59 | # Need paths here to avoid host contamination but this can cause RPATH warnings | ||
60 | # or problems if $libdir isn't $prefix/lib. | ||
61 | PACKAGECONFIG[libunistring] = "--with-libunistring-prefix=${STAGING_LIBDIR}/..,--with-included-libunistring,libunistring" | ||
62 | PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses," | ||
63 | |||
64 | acpaths = '-I ${S}/gettext-runtime/m4 \ | ||
65 | -I ${S}/gettext-tools/m4' | ||
66 | |||
67 | do_install_append_libc-musl () { | ||
68 | rm -f ${D}${libdir}/charset.alias | ||
69 | rm -f ${D}${includedir}/libintl.h | ||
70 | rm -f ${D}${libdir}/libintl.la | ||
71 | } | ||
72 | |||
73 | # these lack the .x behind the .so, but shouldn't be in the -dev package | ||
74 | # Otherwise you get the following results: | ||
75 | # 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
76 | # 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
77 | # because gettext depends on gettext-dev, which pulls in more -dev packages: | ||
78 | # 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk | ||
79 | # 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk | ||
80 | # 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk | ||
81 | # 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk | ||
82 | |||
83 | PACKAGES =+ "libgettextlib libgettextsrc" | ||
84 | FILES_libgettextlib = "${libdir}/libgettextlib-*.so*" | ||
85 | FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*" | ||
86 | |||
87 | PACKAGES =+ "gettext-runtime gettext-runtime-dev gettext-runtime-doc" | ||
88 | |||
89 | FILES_${PN} += "${libdir}/${BPN}/*" | ||
90 | |||
91 | # The its/Makefile.am has defined: | ||
92 | # itsdir = $(pkgdatadir)$(PACKAGE_SUFFIX)/its | ||
93 | # not itsdir = $(pkgdatadir), so use wildcard to match the version. | ||
94 | FILES_${PN} += "${datadir}/${BPN}-*/*" | ||
95 | |||
96 | FILES_gettext-runtime = "${bindir}/gettext \ | ||
97 | ${bindir}/ngettext \ | ||
98 | ${bindir}/envsubst \ | ||
99 | ${bindir}/gettext.sh \ | ||
100 | ${libdir}/libasprintf.so* \ | ||
101 | ${libdir}/GNU.Gettext.dll \ | ||
102 | " | ||
103 | FILES_gettext-runtime-dev += "${libdir}/libasprintf.a \ | ||
104 | ${includedir}/autosprintf.h \ | ||
105 | " | ||
106 | FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \ | ||
107 | ${mandir}/man1/ngettext.* \ | ||
108 | ${mandir}/man1/envsubst.* \ | ||
109 | ${mandir}/man1/.* \ | ||
110 | ${mandir}/man3/* \ | ||
111 | ${docdir}/gettext/gettext.* \ | ||
112 | ${docdir}/gettext/ngettext.* \ | ||
113 | ${docdir}/gettext/envsubst.* \ | ||
114 | ${docdir}/gettext/*.3.html \ | ||
115 | ${datadir}/gettext/ABOUT-NLS \ | ||
116 | ${docdir}/gettext/csharpdoc/* \ | ||
117 | ${docdir}/libasprintf/autosprintf.html \ | ||
118 | ${infodir}/autosprintf.info \ | ||
119 | " | ||
120 | |||
121 | do_install_append() { | ||
122 | rm -f ${D}${libdir}/preloadable_libintl.so | ||
123 | } | ||
124 | |||
125 | do_install_append_class-native () { | ||
126 | rm ${D}${datadir}/aclocal/* | ||
127 | rm ${D}${datadir}/gettext/config.rpath | ||
128 | rm ${D}${datadir}/gettext/po/Makefile.in.in | ||
129 | rm ${D}${datadir}/gettext/po/remove-potcdate.sin | ||
130 | |||
131 | create_wrapper ${D}${bindir}/msgfmt \ | ||
132 | GETTEXTDATADIR="${STAGING_DATADIR_NATIVE}/gettext-${PV}/" | ||
133 | |||
134 | } | ||
135 | |||
136 | do_compile_ptest() { | ||
137 | cd ${B}/gettext-tools/tests/ | ||
138 | sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_PROGRAMS)' Makefile | ||
139 | oe_runmake buildtest-TESTS | ||
140 | cd - | ||
141 | } | ||
142 | |||
143 | do_install_ptest() { | ||
144 | if [ ${PTEST_ENABLED} = "1" ]; then | ||
145 | mkdir -p ${D}${PTEST_PATH}/tests | ||
146 | mkdir -p ${D}${PTEST_PATH}/src | ||
147 | mkdir -p ${D}${PTEST_PATH}/po | ||
148 | mkdir -p ${D}${PTEST_PATH}/misc | ||
149 | mkdir -p ${D}${PTEST_PATH}/its | ||
150 | mkdir -p ${D}${PTEST_PATH}/styles | ||
151 | mkdir -p ${D}${PTEST_PATH}/gnulib-lib | ||
152 | mkdir -p ${D}${PTEST_PATH}/examples | ||
153 | cp -rf ${S}/gettext-tools/its/* ${D}${PTEST_PATH}/its | ||
154 | cp -rf ${S}/gettext-tools/styles/* ${D}${PTEST_PATH}/styles | ||
155 | cp -rf ${S}/gettext-tools/gnulib-lib/gettext.h ${D}${PTEST_PATH}/gnulib-lib | ||
156 | cp -rf ${S}/gettext-tools/examples/hello-c ${D}${PTEST_PATH}/examples | ||
157 | cp -rf ${S}/gettext-tools/tests/* ${D}${PTEST_PATH}/tests | ||
158 | cp -rf ${B}/gettext-tools/tests/.libs/* ${D}${PTEST_PATH}/tests | ||
159 | cp -rf ${B}/gettext-runtime/intl/.libs/libgnuintl.so.8* ${D}${libdir}/ | ||
160 | cp -rf ${B}/gettext-tools/tests/Makefile ${D}${PTEST_PATH}/tests | ||
161 | cp -rf ${B}/gettext-tools/tests/init-env ${D}${PTEST_PATH}/tests | ||
162 | sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile | ||
163 | sed -i -e 's:lang-c lang-c++:lang-c++:g' ${D}${PTEST_PATH}/tests/Makefile | ||
164 | install ${S}/gettext-tools/src/msgunfmt.tcl ${D}${PTEST_PATH}/src | ||
165 | install ${S}/gettext-tools/src/project-id ${D}${PTEST_PATH}/src | ||
166 | install ${B}/gettext-runtime/src/gettext.sh ${D}${PTEST_PATH}/src | ||
167 | install ${B}/gettext-runtime/src/ngettext ${D}${PTEST_PATH}/src | ||
168 | install ${B}/gettext-runtime/src/envsubst ${D}${PTEST_PATH}/src | ||
169 | install ${B}/gettext-runtime/src/gettext ${D}${PTEST_PATH}/src | ||
170 | install ${B}/gettext-tools/src/.libs/cldr-plurals ${D}${PTEST_PATH}/src | ||
171 | install ${S}/gettext-tools/po/gettext-tools.pot ${D}${PTEST_PATH}/po | ||
172 | install ${B}/gettext-tools/misc/* ${D}${PTEST_PATH}/misc | ||
173 | find ${D}${PTEST_PATH}/ -name "*.o" -exec rm {} \; | ||
174 | chmod 0755 ${D}${PTEST_PATH}/tests/lang-vala ${D}${PTEST_PATH}/tests/plural-1 ${D}${PTEST_PATH}/tests/xgettext-tcl-4 \ | ||
175 | ${D}${PTEST_PATH}/tests/xgettext-vala-1 ${D}${PTEST_PATH}/tests/xgettext-po-2 | ||
176 | fi | ||
177 | } | ||
178 | |||
179 | RDEPENDS_${PN}-ptest += "make" | ||
180 | RDEPENDS_${PN}-ptest_append_libc-glibc = "\ | ||
181 | glibc-gconv-big5 \ | ||
182 | glibc-charmap-big5 \ | ||
183 | glibc-gconv-cp1251 \ | ||
184 | glibc-charmap-cp1251 \ | ||
185 | glibc-charmap-iso-8859-9 \ | ||
186 | glibc-gconv-iso8859-9 \ | ||
187 | glibc-charmap-koi8-r \ | ||
188 | glibc-gconv-koi8-r \ | ||
189 | glibc-gconv-iso8859-2 \ | ||
190 | glibc-charmap-iso-8859-2 \ | ||
191 | glibc-gconv-iso8859-1 \ | ||
192 | glibc-charmap-iso-8859-1 \ | ||
193 | glibc-gconv-euc-kr \ | ||
194 | glibc-charmap-euc-kr \ | ||
195 | glibc-gconv-euc-jp \ | ||
196 | glibc-charmap-euc-jp \ | ||
197 | locale-base-de-de \ | ||
198 | locale-base-fr-fr \ | ||
199 | " | ||
200 | |||
201 | RRECOMMENDS_${PN}-ptest_append_libc-glibc = "\ | ||
202 | locale-base-de-de.iso-8859-1 \ | ||
203 | locale-base-fr-fr.iso-8859-1 \ | ||
204 | " | ||
205 | |||
206 | INSANE_SKIP_${PN}-ptest += "ldflags" | ||
207 | INSANE_SKIP_${PN}-ptest += "rpaths" | ||
208 | |||
209 | BBCLASSEXTEND = "native nativesdk" | ||