1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= GNU internationalization and localization system
9 HOMEPAGE= http://www.gnu.org/software/gettext/
13 SITES[main]= GNU/gettext
14 DISTFILE[1]= gettext-0.20.1.tar.xz:main
16 SPKGS[standard]= complete
22 OPTIONS_AVAILABLE= none
23 OPTIONS_STANDARD= none
25 RUN_DEPENDS= libiconv:static:standard
27 USES= charsetfix cpe iconv libtool c++:asprintf
29 LICENSE= GPLv3+:runtime LGPL21+:runtime
30 LICENSE_TERMS= runtime:{{WRKDIR}}/TERMS
31 LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING
32 LGPL21+:{{WRKSRC}}/gettext-runtime/intl/COPYING.LIB
35 INFO= runtime:autosprintf
39 FPC_EQUIVALENT= devel/gettext
43 CONFIGURE_ARGS= --disable-csharp
47 --with-included-libcroco
48 --with-included-libunistring
49 --with-included-libxml
53 CONFIGURE_ENV= ac_cv_lib_rt_sched_yield=no
55 INSTALL_TARGET= install-strip
56 INSTALL_REQ_TOOLCHAIN= yes
57 PLIST_SUB= VERSION=0.20
64 # Do not install csharp and java documentation.
65 ${REINPLACE_CMD} -E '/^SUBDIRS =/s/(intl-csharp|intl-java)//g' \
66 ${WRKSRC}/gettext-runtime/Makefile.in
67 # Do not install html copies of manpages.
69 -e '/^all-local:/s/html-local//' \
70 -e '/^install-data-local:/s/install-html//' \
71 -e '/^installdirs-local:/s/installdirs-html//' \
72 ${WRKSRC}/gettext-runtime/libasprintf/Makefile.in \
73 ${WRKSRC}/gettext-runtime/man/Makefile.in
76 ${MV} ${STAGEDIR}${PREFIX}/share/gettext-0.20 \
77 ${STAGEDIR}${PREFIX}/share/gettext/0.20
78 .if "${.MAKE.OS.NAME}" == "Linux"
79 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/preloadable_libintl.so
81 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libintl.${LIBEXT}
83 ${RM} ${STAGEDIR}${PREFIX}/share/info/libtextstyle.info
86 ${AWK} '/HAVE_CONFIG_H/ {exit}; {print}' \
87 ${WRKSRC}/gettext-runtime/src/gettext.c > ${WRKDIR}/TERMS
88 ${AWK} '/HAVE_CONFIG_H/ {exit}; {print}' \
89 ${WRKSRC}/gettext-runtime/intl/textdomain.c >> ${WRKDIR}/TERMS
91 [FILE:164:descriptions/desc.runtime]
92 GNU gettext is a framework of libraries and tools for internationalisation
93 and localisation of software.
95 This package contains the runtime libraries and programs.
98 [FILE:163:descriptions/desc.tools]
99 GNU gettext is a framework of libraries and tools for internationalisation
100 and localisation of software.
102 This package contains development and translation tools.
105 [FILE:194:descriptions/desc.asprintf]
106 GNU gettext is a framework of libraries and tools for internationalisation
107 and localisation of software.
109 This package contains the asprintf library which has a runtime dependency
114 53f02fbbec9e798b0faaf7c73272f83608e835c6288dd58be6c9bb54624a3800 9346544 gettext-0.20.1.tar.xz
117 [FILE:3084:manifests/plist.runtime.standard]
118 %%ONLY-DARWIN%%include/libintl.h
123 libintl.so.%%LIBINTL%%
124 %%ONLY-DARWIN%%share/locale/locale.alias
125 %%ONLY-DRAGONFLY%%include/libintl.h
126 %%ONLY-DRAGONFLY%%lib/
130 libintl.so.%%LIBINTL%%
131 %%ONLY-DRAGONFLY%%share/locale/locale.alias
132 %%ONLY-FREEBSD%%include/libintl.h
137 libintl.so.%%LIBINTL%%
138 %%ONLY-FREEBSD%%share/locale/locale.alias
139 %%ONLY-LINUX%%lib/preloadable_libintl.so
140 %%ONLY-SUNOS%%include/libintl.h
145 libintl.so.%%LIBINTL%%
146 %%ONLY-SUNOS%%share/locale/locale.alias
161 libtextstyle.so.0.0.0
162 share/gettext/ABOUT-NLS
163 share/locale/ast/LC_MESSAGES/gettext-runtime.mo
164 share/locale/be/LC_MESSAGES/gettext-runtime.mo
165 share/locale/bg/LC_MESSAGES/gettext-runtime.mo
166 share/locale/ca/LC_MESSAGES/gettext-runtime.mo
167 share/locale/cs/LC_MESSAGES/gettext-runtime.mo
168 share/locale/da/LC_MESSAGES/gettext-runtime.mo
169 share/locale/de/LC_MESSAGES/gettext-runtime.mo
170 share/locale/el/LC_MESSAGES/gettext-runtime.mo
171 share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo
172 share/locale/en@quot/LC_MESSAGES/gettext-runtime.mo
173 share/locale/eo/LC_MESSAGES/gettext-runtime.mo
174 share/locale/es/LC_MESSAGES/gettext-runtime.mo
175 share/locale/et/LC_MESSAGES/gettext-runtime.mo
176 share/locale/fi/LC_MESSAGES/gettext-runtime.mo
177 share/locale/fr/LC_MESSAGES/gettext-runtime.mo
178 share/locale/ga/LC_MESSAGES/gettext-runtime.mo
179 share/locale/gl/LC_MESSAGES/gettext-runtime.mo
180 share/locale/hr/LC_MESSAGES/gettext-runtime.mo
181 share/locale/hu/LC_MESSAGES/gettext-runtime.mo
182 share/locale/id/LC_MESSAGES/gettext-runtime.mo
183 share/locale/it/LC_MESSAGES/gettext-runtime.mo
184 share/locale/ja/LC_MESSAGES/gettext-runtime.mo
185 share/locale/ko/LC_MESSAGES/gettext-runtime.mo
186 share/locale/nb/LC_MESSAGES/gettext-runtime.mo
187 share/locale/nl/LC_MESSAGES/gettext-runtime.mo
188 share/locale/nn/LC_MESSAGES/gettext-runtime.mo
189 share/locale/pl/LC_MESSAGES/gettext-runtime.mo
190 share/locale/pt/LC_MESSAGES/gettext-runtime.mo
191 share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo
192 share/locale/ro/LC_MESSAGES/gettext-runtime.mo
193 share/locale/ru/LC_MESSAGES/gettext-runtime.mo
194 share/locale/sk/LC_MESSAGES/gettext-runtime.mo
195 share/locale/sl/LC_MESSAGES/gettext-runtime.mo
196 share/locale/sr/LC_MESSAGES/gettext-runtime.mo
197 share/locale/sv/LC_MESSAGES/gettext-runtime.mo
198 share/locale/tr/LC_MESSAGES/gettext-runtime.mo
199 share/locale/uk/LC_MESSAGES/gettext-runtime.mo
200 share/locale/vi/LC_MESSAGES/gettext-runtime.mo
201 share/locale/zh_CN/LC_MESSAGES/gettext-runtime.mo
202 share/locale/zh_HK/LC_MESSAGES/gettext-runtime.mo
203 share/locale/zh_TW/LC_MESSAGES/gettext-runtime.mo
209 bind_textdomain_codeset.3.gz
220 [FILE:3366:manifests/plist.tools.standard]
242 libgettextlib-%%VERSION%%.1.so
247 libgettextpo.so.%%GETTEXTPO%%
248 libgettextsrc-%%VERSION%%.1.so
273 share/gettext/%%VERSION%%/its/
292 share/gettext/projects/
295 share/gettext/projects/GNOME/
300 share/gettext/projects/KDE/
305 share/gettext/projects/TP/
310 share/gettext/styles/
315 po-emacs-xterm256.css
317 share/locale/be/LC_MESSAGES/gettext-tools.mo
318 share/locale/bg/LC_MESSAGES/gettext-tools.mo
319 share/locale/ca/LC_MESSAGES/gettext-tools.mo
320 share/locale/cs/LC_MESSAGES/gettext-tools.mo
321 share/locale/da/LC_MESSAGES/gettext-tools.mo
322 share/locale/de/LC_MESSAGES/gettext-tools.mo
323 share/locale/el/LC_MESSAGES/gettext-tools.mo
324 share/locale/en@boldquot/LC_MESSAGES/gettext-tools.mo
325 share/locale/en@quot/LC_MESSAGES/gettext-tools.mo
326 share/locale/es/LC_MESSAGES/gettext-tools.mo
327 share/locale/et/LC_MESSAGES/gettext-tools.mo
328 share/locale/eu/LC_MESSAGES/gettext-tools.mo
329 share/locale/fi/LC_MESSAGES/gettext-tools.mo
330 share/locale/fr/LC_MESSAGES/gettext-tools.mo
331 share/locale/gl/LC_MESSAGES/gettext-tools.mo
332 share/locale/id/LC_MESSAGES/gettext-tools.mo
333 share/locale/it/LC_MESSAGES/gettext-tools.mo
334 share/locale/ja/LC_MESSAGES/gettext-tools.mo
335 share/locale/ko/LC_MESSAGES/gettext-tools.mo
336 share/locale/nb/LC_MESSAGES/gettext-tools.mo
337 share/locale/nl/LC_MESSAGES/gettext-tools.mo
338 share/locale/nn/LC_MESSAGES/gettext-tools.mo
339 share/locale/pa/LC_MESSAGES/gettext-tools.mo
340 share/locale/pl/LC_MESSAGES/gettext-tools.mo
341 share/locale/pt/LC_MESSAGES/gettext-tools.mo
342 share/locale/pt_BR/LC_MESSAGES/gettext-tools.mo
343 share/locale/ro/LC_MESSAGES/gettext-tools.mo
344 share/locale/ru/LC_MESSAGES/gettext-tools.mo
345 share/locale/sk/LC_MESSAGES/gettext-tools.mo
346 share/locale/sl/LC_MESSAGES/gettext-tools.mo
347 share/locale/sr/LC_MESSAGES/gettext-tools.mo
348 share/locale/sv/LC_MESSAGES/gettext-tools.mo
349 share/locale/tr/LC_MESSAGES/gettext-tools.mo
350 share/locale/uk/LC_MESSAGES/gettext-tools.mo
351 share/locale/vi/LC_MESSAGES/gettext-tools.mo
352 share/locale/zh_CN/LC_MESSAGES/gettext-tools.mo
353 share/locale/zh_TW/LC_MESSAGES/gettext-tools.mo
375 [FILE:98:manifests/plist.asprintf.standard]
376 include/autosprintf.h
384 [FILE:953:patches/patch-gettext-runtime_intl_threadlib.c]
385 --- gettext-runtime/intl/threadlib.c.orig 2016-03-20 07:37:53 UTC
386 +++ gettext-runtime/intl/threadlib.c
389 # if PTHREAD_IN_USE_DETECTION_HARD
391 -/* The function to be executed by a dummy thread. */
393 -dummy_thread_func (void *arg)
394 +static pthread_once_t dummy_once_control = PTHREAD_ONCE_INIT;
396 +dummy_once_func (void)
402 @@ -44,19 +43,10 @@ glthread_in_use (void)
408 - if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0)
409 - /* Thread creation failed. */
410 + if (pthread_once (&dummy_once_control, dummy_once_func) != 0)
414 - /* Thread creation works. */
416 - if (pthread_join (thread, &retval) != 0)
426 [FILE:979:patches/patch-gettext-tools_gnulib-lib_glthread_threadlib.c]
427 --- gettext-tools/gnulib-lib/glthread/threadlib.c.orig 2014-07-14 07:28:34 UTC
428 +++ gettext-tools/gnulib-lib/glthread/threadlib.c
431 # if PTHREAD_IN_USE_DETECTION_HARD
433 -/* The function to be executed by a dummy thread. */
435 -dummy_thread_func (void *arg)
436 +static pthread_once_t dummy_once_control = PTHREAD_ONCE_INIT;
438 +dummy_once_func (void)
444 @@ -44,19 +43,10 @@ glthread_in_use (void)
450 - if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0)
451 - /* Thread creation failed. */
452 + if (pthread_once (&dummy_once_control, dummy_once_func) != 0)
456 - /* Thread creation works. */
458 - if (pthread_join (thread, &retval) != 0)
468 [FILE:983:patches/patch-gettext-tools_libgettextpo_glthread_threadlib.c]
469 --- gettext-tools/libgettextpo/glthread/threadlib.c.orig 2014-07-14 07:29:10 UTC
470 +++ gettext-tools/libgettextpo/glthread/threadlib.c
473 # if PTHREAD_IN_USE_DETECTION_HARD
475 -/* The function to be executed by a dummy thread. */
477 -dummy_thread_func (void *arg)
478 +static pthread_once_t dummy_once_control = PTHREAD_ONCE_INIT;
480 +dummy_once_func (void)
486 @@ -44,19 +43,10 @@ glthread_in_use (void)
492 - if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0)
493 - /* Thread creation failed. */
494 + if (pthread_once (&dummy_once_control, dummy_once_func) != 0)
498 - /* Thread creation works. */
500 - if (pthread_join (thread, &retval) != 0)
510 [FILE:2413:patches/patch-git_2336451ed68d91ff]
511 From 2336451ed68d91ff4b5ae1acbc1eca30e47a86a9 Mon Sep 17 00:00:00 2001
512 From: Bruno Haible <bruno@clisp.org>
513 Date: Sun, 19 May 2019 13:10:06 +0200
514 Subject: [PATCH] msgmerge: Fix behaviour of --for-msgfmt on PO files with no
517 Reported by Don Lawrence <dlawrence@iecok.com>
518 in <https://lists.freedesktop.org/archives/p11-glue/2019-May/000700.html>
520 in <https://lists.gnu.org/archive/html/bug-gettext/2019-05/msg00124.html>.
522 * gettext-tools/src/msgmerge.c (main): Treat force_po like true if for_msgfmt
524 * gettext-tools/tests/msgmerge-26: Add test of PO file with no translations.
526 gettext-tools/src/msgmerge.c | 4 ++--
527 gettext-tools/tests/msgmerge-26 | 36 +++++++++++++++++++++++++++++++++---
528 2 files changed, 35 insertions(+), 5 deletions(-)
530 diff --git a/gettext-tools/src/msgmerge.c b/gettext-tools/src/msgmerge.c
531 index cd762c0..92c9b7a 100644
532 --- gettext-tools/src/msgmerge.c
533 +++ gettext-tools/src/msgmerge.c
534 @@ -520,8 +520,8 @@ There is NO WARRANTY, to the extent permitted by law.\n\
537 /* Write the merged message list out. */
538 - msgdomain_list_print (result, output_file, output_syntax, force_po,
540 + msgdomain_list_print (result, output_file, output_syntax,
541 + for_msgfmt || force_po, false);
545 diff --git a/gettext-tools/tests/msgmerge-26 b/gettext-tools/tests/msgmerge-26
546 index cd3862e..b86f7a0 100755
547 --- gettext-tools/tests/msgmerge-26
548 +++ gettext-tools/tests/msgmerge-26
549 @@ -73,7 +73,37 @@ msgstr "Papaya"
553 -${DIFF} mm-test26.ok mm-test26.out
555 +${DIFF} mm-test26.ok mm-test26.out || Exit 1
558 +# Test with a PO file that has no translated messages.
560 +cat <<\EOF > mm-test26a.in1
563 +"Content-Type: text/plain; charset=UTF-8\n"
569 +cat <<\EOF > mm-test26a.in2
572 +"Content-Type: text/plain; charset=ASCII\n"
574 +msgid "Hello, world!"
578 +: ${MSGMERGE=msgmerge}
579 +${MSGMERGE} --for-msgfmt -o mm-test26a.tmp mm-test26a.in1 mm-test26a.in2 \
581 +LC_ALL=C tr -d '\r' < mm-test26a.tmp > mm-test26a.out || Exit 1
583 +cat <<\EOF > mm-test26a.ok
585 +msgstr "Content-Type: text/plain; charset=UTF-8\n"
589 +${DIFF} mm-test26a.ok mm-test26a.out || Exit 1