Ravenports generated: 08 Jan 2020 15:51
[ravenports.git] / bucket_2C / gettext
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               gettext
4 VERSION=                0.20.1
5 REVISION=               1
6 KEYWORDS=               devel
7 VARIANTS=               standard
8 SDESC[standard]=        GNU internationalization and localization system
9 HOMEPAGE=               http://www.gnu.org/software/gettext/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            GNU/gettext
14 DISTFILE[1]=            gettext-0.20.1.tar.xz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         runtime
18                         tools
19                         asprintf
20                         docs
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 RUN_DEPENDS=            libiconv:static:standard
26
27 USES=                   charsetfix cpe iconv libtool c++:asprintf
28
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
33 LICENSE_SCHEME=         multi
34
35 INFO=                   runtime:autosprintf
36                         runtime:gettext
37 CPE_PRODUCT=            gettext
38 CPE_VENDOR=             gnu
39 FPC_EQUIVALENT=         devel/gettext
40 INFO_SUBDIR=            .
41
42 MUST_CONFIGURE=         gnu
43 CONFIGURE_ARGS=         --disable-csharp
44                         --disable-java
45                         --disable-openmp
46                         --with-included-glib
47                         --with-included-libcroco
48                         --with-included-libunistring
49                         --with-included-libxml
50                         --with-xz
51                         --without-emacs
52                         --without-git
53 CONFIGURE_ENV=          ac_cv_lib_rt_sched_yield=no
54
55 INSTALL_TARGET=         install-strip
56 INSTALL_REQ_TOOLCHAIN=  yes
57 PLIST_SUB=              VERSION=0.20
58                         GETTEXTPO=0.5.5
59                         LIBINTL=8.1.6
60
61 TEST_TARGET=            check
62
63 post-patch:
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.
68         ${REINPLACE_CMD} \
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
74
75 post-install:
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
80 .else
81         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libintl.${LIBEXT}
82 .endif
83         ${RM} ${STAGEDIR}${PREFIX}/share/info/libtextstyle.info
84
85 post-extract:
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
90
91 [FILE:164:descriptions/desc.runtime]
92 GNU gettext is a framework of libraries and tools for internationalisation
93 and localisation of software.
94
95 This package contains the runtime libraries and programs.
96
97
98 [FILE:163:descriptions/desc.tools]
99 GNU gettext is a framework of libraries and tools for internationalisation
100 and localisation of software.
101
102 This package contains development and translation tools.
103
104
105 [FILE:194:descriptions/desc.asprintf]
106 GNU gettext is a framework of libraries and tools for internationalisation
107 and localisation of software.
108
109 This package contains the asprintf library which has a runtime dependency
110 on libstdc++.
111
112
113 [FILE:100:distinfo]
114 53f02fbbec9e798b0faaf7c73272f83608e835c6288dd58be6c9bb54624a3800      9346544 gettext-0.20.1.tar.xz
115
116
117 [FILE:3084:manifests/plist.runtime.standard]
118 %%ONLY-DARWIN%%include/libintl.h
119 %%ONLY-DARWIN%%lib/
120  libintl.a
121  libintl.so
122  libintl.so.8
123  libintl.so.%%LIBINTL%%
124 %%ONLY-DARWIN%%share/locale/locale.alias
125 %%ONLY-DRAGONFLY%%include/libintl.h
126 %%ONLY-DRAGONFLY%%lib/
127  libintl.a
128  libintl.so
129  libintl.so.8
130  libintl.so.%%LIBINTL%%
131 %%ONLY-DRAGONFLY%%share/locale/locale.alias
132 %%ONLY-FREEBSD%%include/libintl.h
133 %%ONLY-FREEBSD%%lib/
134  libintl.a
135  libintl.so
136  libintl.so.8
137  libintl.so.%%LIBINTL%%
138 %%ONLY-FREEBSD%%share/locale/locale.alias
139 %%ONLY-LINUX%%lib/preloadable_libintl.so
140 %%ONLY-SUNOS%%include/libintl.h
141 %%ONLY-SUNOS%%lib/
142  libintl.a
143  libintl.so
144  libintl.so.8
145  libintl.so.%%LIBINTL%%
146 %%ONLY-SUNOS%%share/locale/locale.alias
147 bin/
148  envsubst
149  gettext
150  gettext.sh
151  ngettext
152 include/textstyle.h
153 include/textstyle/
154  stdbool.h
155  version.h
156  woe32dll.h
157 lib/
158  libtextstyle.a
159  libtextstyle.so
160  libtextstyle.so.0
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
204 share/man/man1/
205  envsubst.1.gz
206  gettext.1.gz
207  ngettext.1.gz
208 share/man/man3/
209  bind_textdomain_codeset.3.gz
210  bindtextdomain.3.gz
211  dcgettext.3.gz
212  dcngettext.3.gz
213  dgettext.3.gz
214  dngettext.3.gz
215  gettext.3.gz
216  ngettext.3.gz
217  textdomain.3.gz
218
219
220 [FILE:3366:manifests/plist.tools.standard]
221 bin/
222  autopoint
223  gettextize
224  msgattrib
225  msgcat
226  msgcmp
227  msgcomm
228  msgconv
229  msgen
230  msgexec
231  msgfilter
232  msgfmt
233  msggrep
234  msginit
235  msgmerge
236  msgunfmt
237  msguniq
238  recode-sr-latin
239  xgettext
240 include/gettext-po.h
241 lib/
242  libgettextlib-%%VERSION%%.1.so
243  libgettextlib.so
244  libgettextpo.a
245  libgettextpo.so
246  libgettextpo.so.0
247  libgettextpo.so.%%GETTEXTPO%%
248  libgettextsrc-%%VERSION%%.1.so
249  libgettextsrc.so
250 lib/gettext/
251  cldr-plurals
252  hostname
253  project-id
254  urlget
255  user-email
256 share/aclocal/
257  gettext.m4
258  host-cpu-c-abi.m4
259  iconv.m4
260  intlmacosx.m4
261  lib-ld.m4
262  lib-link.m4
263  lib-prefix.m4
264  nls.m4
265  po.m4
266  progtest.m4
267 share/gettext/
268  archive.dir.tar.xz
269  config.rpath
270  gettext.h
271  javaversion.class
272  msgunfmt.tcl
273 share/gettext/%%VERSION%%/its/
274  glade.loc
275  glade1.its
276  glade2.its
277  gsettings.its
278  gsettings.loc
279  gtkbuilder.its
280  metainfo.its
281  metainfo.loc
282 share/gettext/po/
283  Makefile.in.in
284  Makevars.template
285  Rules-quot
286  boldquot.sed
287  en@boldquot.header
288  en@quot.header
289  insert-header.sin
290  quot.sed
291  remove-potcdate.sin
292 share/gettext/projects/
293  index
294  team-address
295 share/gettext/projects/GNOME/
296  team-address
297  teams.html
298  teams.url
299  trigger
300 share/gettext/projects/KDE/
301  team-address
302  teams.html
303  teams.url
304  trigger
305 share/gettext/projects/TP/
306  team-address
307  teams.html
308  teams.url
309  trigger
310 share/gettext/styles/
311  po-default.css
312  po-emacs-x.css
313  po-emacs-xterm.css
314  po-emacs-xterm16.css
315  po-emacs-xterm256.css
316  po-vim.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
354 share/man/man1/
355  autopoint.1.gz
356  gettextize.1.gz
357  msgattrib.1.gz
358  msgcat.1.gz
359  msgcmp.1.gz
360  msgcomm.1.gz
361  msgconv.1.gz
362  msgen.1.gz
363  msgexec.1.gz
364  msgfilter.1.gz
365  msgfmt.1.gz
366  msggrep.1.gz
367  msginit.1.gz
368  msgmerge.1.gz
369  msgunfmt.1.gz
370  msguniq.1.gz
371  recode-sr-latin.1.gz
372  xgettext.1.gz
373
374
375 [FILE:98:manifests/plist.asprintf.standard]
376 include/autosprintf.h
377 lib/
378  libasprintf.a
379  libasprintf.so
380  libasprintf.so.0
381  libasprintf.so.0.0.0
382
383
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
387 @@ -29,11 +29,10 @@
388  
389  # if PTHREAD_IN_USE_DETECTION_HARD
390  
391 -/* The function to be executed by a dummy thread.  */
392 -static void *
393 -dummy_thread_func (void *arg)
394 +static pthread_once_t dummy_once_control = PTHREAD_ONCE_INIT;
395 +static void
396 +dummy_once_func (void)
397  {
398 -  return arg;
399  }
400  
401  int
402 @@ -44,19 +43,10 @@ glthread_in_use (void)
403  
404    if (!tested)
405      {
406 -      pthread_t thread;
407 -
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)
411          result = 0;
412        else
413 -        {
414 -          /* Thread creation works.  */
415 -          void *retval;
416 -          if (pthread_join (thread, &retval) != 0)
417 -            abort ();
418 -          result = 1;
419 -        }
420 +        result = 1;
421        tested = 1;
422      }
423    return result;
424
425
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
429 @@ -29,11 +29,10 @@
430  
431  # if PTHREAD_IN_USE_DETECTION_HARD
432  
433 -/* The function to be executed by a dummy thread.  */
434 -static void *
435 -dummy_thread_func (void *arg)
436 +static pthread_once_t dummy_once_control = PTHREAD_ONCE_INIT;
437 +static void
438 +dummy_once_func (void)
439  {
440 -  return arg;
441  }
442  
443  int
444 @@ -44,19 +43,10 @@ glthread_in_use (void)
445  
446    if (!tested)
447      {
448 -      pthread_t thread;
449 -
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)
453          result = 0;
454        else
455 -        {
456 -          /* Thread creation works.  */
457 -          void *retval;
458 -          if (pthread_join (thread, &retval) != 0)
459 -            abort ();
460 -          result = 1;
461 -        }
462 +        result = 1;
463        tested = 1;
464      }
465    return result;
466
467
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
471 @@ -29,11 +29,10 @@
472  
473  # if PTHREAD_IN_USE_DETECTION_HARD
474  
475 -/* The function to be executed by a dummy thread.  */
476 -static void *
477 -dummy_thread_func (void *arg)
478 +static pthread_once_t dummy_once_control = PTHREAD_ONCE_INIT;
479 +static void
480 +dummy_once_func (void)
481  {
482 -  return arg;
483  }
484  
485  int
486 @@ -44,19 +43,10 @@ glthread_in_use (void)
487  
488    if (!tested)
489      {
490 -      pthread_t thread;
491 -
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)
495          result = 0;
496        else
497 -        {
498 -          /* Thread creation works.  */
499 -          void *retval;
500 -          if (pthread_join (thread, &retval) != 0)
501 -            abort ();
502 -          result = 1;
503 -        }
504 +        result = 1;
505        tested = 1;
506      }
507    return result;
508
509
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
515  translations.
516
517 Reported by Don Lawrence <dlawrence@iecok.com>
518 in <https://lists.freedesktop.org/archives/p11-glue/2019-May/000700.html>
519 via Daiki Ueno
520 in <https://lists.gnu.org/archive/html/bug-gettext/2019-05/msg00124.html>.
521
522 * gettext-tools/src/msgmerge.c (main): Treat force_po like true if for_msgfmt
523 is true.
524 * gettext-tools/tests/msgmerge-26: Add test of PO file with no translations.
525 ---
526  gettext-tools/src/msgmerge.c    |  4 ++--
527  gettext-tools/tests/msgmerge-26 | 36 +++++++++++++++++++++++++++++++++---
528  2 files changed, 35 insertions(+), 5 deletions(-)
529
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\
535    else
536      {
537        /* Write the merged message list out.  */
538 -      msgdomain_list_print (result, output_file, output_syntax, force_po,
539 -                            false);
540 +      msgdomain_list_print (result, output_file, output_syntax,
541 +                            for_msgfmt || force_po, false);
542      }
543  
544    exit (EXIT_SUCCESS);
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"
550  EOF
551  
552  : ${DIFF=diff}
553 -${DIFF} mm-test26.ok mm-test26.out
554 -result=$?
555 +${DIFF} mm-test26.ok mm-test26.out || Exit 1
556  
557 -exit $result
558 +# Test with a PO file that has no translated messages.
559 +
560 +cat <<\EOF > mm-test26a.in1
561 +msgid ""
562 +msgstr ""
563 +"Content-Type: text/plain; charset=UTF-8\n"
564 +
565 +msgid "Hello world"
566 +msgstr "Hallo Welt"
567 +EOF
568 +
569 +cat <<\EOF > mm-test26a.in2
570 +msgid ""
571 +msgstr ""
572 +"Content-Type: text/plain; charset=ASCII\n"
573 +
574 +msgid "Hello, world!"
575 +msgstr ""
576 +EOF
577 +
578 +: ${MSGMERGE=msgmerge}
579 +${MSGMERGE} --for-msgfmt -o mm-test26a.tmp mm-test26a.in1 mm-test26a.in2 \
580 +    || Exit 1
581 +LC_ALL=C tr -d '\r' < mm-test26a.tmp > mm-test26a.out || Exit 1
582 +
583 +cat <<\EOF > mm-test26a.ok
584 +msgid ""
585 +msgstr "Content-Type: text/plain; charset=UTF-8\n"
586 +EOF
587 +
588 +: ${DIFF=diff}
589 +${DIFF} mm-test26a.ok mm-test26a.out || Exit 1
590 -- 
591 1.9.1
592