json-glib: update to 1.10.6
[oi-userland.git] / components / library / icu / patches / 055-man-pages.patch
blobff4eb76a9587cbd453bc6a5d2058fe7ca7ab270d
2 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
4 Description: supply manual page for program that doesn't have one
5 Author: Jay Berkenbilt <qjb@debian.org>
7 https://unicode-org.atlassian.net/browse/ICU-7665
8 https://unicode-org.atlassian.net/browse/ICU-7554
10 --- /dev/null
11 +++ icu/source/tools/gennorm2/Makefile.in.orig
12 @@ -0,0 +1,81 @@
13 +## Makefile.in for ICU - tools/gennorm2
14 +## Copyright (C) 2016 and later: Unicode, Inc. and others.
15 +## License & terms of use: http://www.unicode.org/copyright.html
16 +## Copyright (c) 2009-2011, International Business Machines Corporation and
17 +## others. All Rights Reserved.
18 +## Steven R. Loomis/Markus W. Scherer
20 +## Source directory information
21 +srcdir = @srcdir@
22 +top_srcdir = @top_srcdir@
24 +top_builddir = ../..
26 +include $(top_builddir)/icudefs.mk
28 +## Build directory information
29 +subdir = tools/gennorm2
31 +TARGET_STUB_NAME = gennorm2
33 +## Extra files to remove for 'make clean'
34 +CLEANFILES = *~ $(DEPS)
36 +## Target information
37 +TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
39 +CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(srcdir)/../toolutil
40 +LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
42 +OBJECTS = gennorm2.o n2builder.o
44 +DEPS = $(OBJECTS:.o=.d)
46 +## List of phony targets
47 +.PHONY : all all-local install install-local clean clean-local \
48 +distclean distclean-local dist dist-local check check-local install-man
50 +## Clear suffix list
51 +.SUFFIXES :
53 +## List of standard targets
54 +all: all-local
55 +install: install-local
56 +clean: clean-local
57 +distclean : distclean-local
58 +dist: dist-local
59 +check: all check-local
61 +all-local: $(TARGET)
63 +install-local: all-local
64 + $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
65 + $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
67 +dist-local:
69 +clean-local:
70 + test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 + $(RMV) $(TARGET) $(OBJECTS)
73 +distclean-local: clean-local
74 + $(RMV) Makefile
76 +check-local: all-local
78 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
79 + cd $(top_builddir) \
80 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82 +$(TARGET) : $(OBJECTS)
83 + $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
84 + $(POST_BUILD_STEP)
87 +ifeq (,$(MAKECMDGOALS))
88 +-include $(DEPS)
89 +else
90 +ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
91 +-include $(DEPS)
92 +endif
93 +endif
94 --- icu/source/tools/gennorm2/Makefile.in.orig
95 +++ icu/source/tools/gennorm2/Makefile.in
96 @@ -18,8 +18,13 @@
98 TARGET_STUB_NAME = gennorm2
100 +SECTION = 8
102 +MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
105 ## Extra files to remove for 'make clean'
106 -CLEANFILES = *~ $(DEPS)
107 +CLEANFILES = *~ $(DEPS) $(MAN_FILES)
109 ## Target information
110 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
111 @@ -47,12 +52,16 @@
112 dist: dist-local
113 check: all check-local
115 -all-local: $(TARGET)
116 +all-local: $(TARGET) $(MAN_FILES)
118 -install-local: all-local
119 +install-local: all-local install-man
120 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
121 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
123 +install-man: $(MAN_FILES)
124 + $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
125 + $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
127 dist-local:
129 clean-local:
130 @@ -73,6 +82,11 @@
131 $(POST_BUILD_STEP)
134 +%.$(SECTION): $(srcdir)/%.$(SECTION).in
135 + cd $(top_builddir) \
136 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
139 ifeq (,$(MAKECMDGOALS))
140 -include $(DEPS)
141 else
142 --- /dev/null
143 +++ icu/source/tools/gennorm2/gennorm2.8.in
144 @@ -0,0 +1,71 @@
145 +.\" Hey, Emacs! This is -*-nroff-*- you know...
146 +.\"
147 +.\" gennorm2.8: manual page for the gennorm2 utility
148 +.\"
149 +.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
150 +.\"
151 +.TH GENNORM2 8 "15 March 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
152 +.SH NAME
153 +.B gennorm2
154 +\- Builds binary data file with Unicode normalization data.
155 +.SH SYNOPSIS
156 +.B gennorm2
158 +.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
161 +.BR "\-V\fP, \fB\-\-version"
164 +.BR "\-c\fP, \fB\-\-copyright"
167 +.BR "\-v\fP, \fB\-\-verbose"
170 +.BI "\-u\fP, \fB\-\-unicode" " unicode\-version\-number"
173 +.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
176 +.BI "\-o\fP, \fB\-\-output" " output\-filename"
178 +.BI "\fB\-\-fast"
179 +.SH DESCRIPTION
180 +.B gennorm2
181 +reads text files that define Unicode normalization,
182 +them, and builds a binary data file.
183 +.SH OPTIONS
184 +.TP
185 +.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
186 +Print help about usage and exit.
187 +.TP
188 +.BR "\-V\fP, \fB\-\-version"
189 +Print the version of
190 +.B gennorm2
191 +and exit.
192 +.TP
193 +.BR "\-c\fP, \fB\-\-copyright"
194 +Include a copyright notice.
195 +.TP
196 +.BR "\-v\fP, \fB\-\-verbose"
197 +Display extra informative messages during execution.
198 +.TP
199 +.BR "\-u\fP, \fB\-\-unicode"
200 +Specify Unicode version number, such as 5.2.0.
201 +.TP
202 +.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
203 +Specify the input directory.
204 +.TP
205 +.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
206 +Set the name of the output file.
207 +.TP
208 +.BI "\fB\-\-fast"
209 +optimize the .nrm file for fast normalization,
210 +which might increase its size (Writes fully decomposed
211 +regular mappings instead of delta mappings.
212 +You should measure the runtime speed to make sure that
213 +this is a good trade-off.)
214 +.SH COPYRIGHT
215 +Copyright (C) 2009-2010 International Business Machines Corporation and others
216 --- /dev/null
217 +++ icu/source/tools/icuinfo/Makefile.in.orig
218 @@ -0,0 +1,115 @@
219 +## Makefile.in for ICU - tools/icuinfo
220 +## Copyright (C) 2016 and later: Unicode, Inc. and others.
221 +## License & terms of use: http://www.unicode.org/copyright.html
222 +## Copyright (c) 1999-2015, International Business Machines Corporation and
223 +## others. All Rights Reserved.
224 +## Madhu Katragadda
226 +## Source directory information
227 +srcdir = @srcdir@
228 +top_srcdir = @top_srcdir@
230 +top_builddir = ../..
232 +include $(top_builddir)/icudefs.mk
234 +## Build directory information
235 +subdir = tools/icuinfo
237 +## Extra files to remove for 'make clean'
238 +CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN)
240 +## Target information
241 +TARGET = icuinfo$(EXEEXT)
243 +CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(top_srcdir)/tools/ctestfw
244 +CPPFLAGS+= -I$(top_srcdir)/i18n
245 +LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
247 +OBJECTS = icuinfo.o
248 +@PLUGINS_TRUE@PLUGIN_OBJECTS = testplug.o
250 +DEPS = $(OBJECTS:.o=.d)
252 +# pass some information
254 +ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)/config/icuinfo.xml -v -K
256 +## List of phony targets
257 +.PHONY : all all-local install install-local clean clean-local \
258 +distclean distclean-local dist dist-local check check-local plugin-check
260 +## Clear suffix list
261 +.SUFFIXES :
263 +## List of standard targets
264 +all: all-local
265 +install: install-local
266 +clean: clean-local
267 +distclean : distclean-local
268 +dist: dist-local
269 +check: all check-local
271 +all-local: $(TARGET)
273 +install-local: all-local
274 + $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
275 + $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
277 +dist-local:
279 +clean-local:
280 + test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
281 + $(RMV) $(TARGET) $(OBJECTS)
283 +distclean-local: clean-local
284 + $(RMV) Makefile
286 +check-local: $(TARGET)
287 + $(INVOKE) ./$(TARGET) $(ICUINFO_OPTS)
289 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
290 + cd $(top_builddir) \
291 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
292 +-include Makefile.local
294 +$(TARGET) : $(OBJECTS)
295 + $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
296 + $(POST_BUILD_STEP)
298 +PLUGIN=$(LIBPREFIX)plugin.$(SO)
299 +SO_TARGET=$(PLUGIN)
301 +PLUGINDIR=$(shell pwd)
303 +PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt
305 +CFLAGS+=$(SHAREDLIBCFLAGS)
307 +@PLUGINS_TRUE@HAVE_PLUGINS=yes
309 +ifeq ($(HAVE_PLUGINS),yes)
310 +$(PLUGINFILE): Makefile
311 + echo "$(CURR_FULL_DIR)/$(PLUGIN) myPlugin x=4" > $@
314 +$(PLUGIN): $(PLUGIN_OBJECTS)
315 + $(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
317 +plugin: $(PLUGIN)
319 +plugin-check: $(PLUGIN) $(PLUGINFILE)
320 + $(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L
321 +else
322 +plugin plugin-check $(PLUGIN):
323 + @echo "Plugins are disabled (use --enable-plugins to enable)"
324 +endif
326 +ifeq (,$(MAKECMDGOALS))
327 +-include $(DEPS)
328 +else
329 +ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
330 +-include $(DEPS)
331 +endif
332 +endif
334 --- icu/source/tools/icuinfo/Makefile.in.orig
335 +++ icu/source/tools/icuinfo/Makefile.in
336 @@ -16,8 +16,15 @@
337 ## Build directory information
338 subdir = tools/icuinfo
340 +TARGET_STUB_NAME = icuinfo
342 +SECTION = 1
344 +MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
347 ## Extra files to remove for 'make clean'
348 -CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN)
349 +CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN) $(MAN_FILES)
351 ## Target information
352 TARGET = icuinfo$(EXEEXT)
353 @@ -39,7 +46,8 @@
355 ## List of phony targets
356 .PHONY : all all-local install install-local clean clean-local \
357 -distclean distclean-local dist dist-local check check-local plugin-check
358 +distclean distclean-local dist dist-local check check-local plugin-check \
359 +install-man
361 ## Clear suffix list
362 .SUFFIXES :
363 @@ -52,12 +60,16 @@
364 dist: dist-local
365 check: all check-local
367 -all-local: $(TARGET)
368 +all-local: $(TARGET) $(MAN_FILES)
370 -install-local: all-local
371 +install-local: all-local install-man
372 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
373 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
375 +install-man: $(MAN_FILES)
376 + $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
377 + $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
379 dist-local:
381 clean-local:
382 @@ -107,6 +119,9 @@
383 @echo "Plugins are disabled (use --enable-plugins to enable)"
384 endif
386 +%.$(SECTION): $(srcdir)/%.$(SECTION).in
387 + cd $(top_builddir) \
388 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
389 ifeq (,$(MAKECMDGOALS))
390 -include $(DEPS)
391 else
392 --- /dev/null
393 +++ icu/source/tools/icuinfo/icuinfo.1.in
394 @@ -0,0 +1,76 @@
395 +.\" Hey, Emacs! This is -*-nroff-*- you know...
396 +.\"
397 +.\" icuinfo.1: manual page for the icuinfo utility
398 +.\"
399 +.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
400 +.\"
401 +.TH ICUINFO 1 "1 May 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
402 +.SH NAME
403 +.B icuinfo
404 +\- Shows some basic info about the current ICU
405 +.SH SYNOPSIS
406 +.B icuinfo
408 +.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
411 +.BR "\-V\fP, \fB\-\-version"
414 +.BR "\-c\fP, \fB\-\-copyright"
417 +.BI "\-i\fP, \fB\-\-icudatadir" " directory"
420 +.BR "\-v\fP, \fB\-\-verbose"
423 +.BI "\-L\fP, \fB\-\-list-plugins"
426 +.BI "\-m\fP, \fB\-\-milisecond-time"
429 +.BI "\-K\fP, \fB\-\-cleanup"
431 +.SH DESCRIPTION
432 +.B icuinfo
433 +prints basic information about the current version of ICU.
434 +.SH OPTIONS
435 +.TP
436 +.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
437 +Print help about usage and exit.
438 +.TP
439 +.BR "\-V\fP, \fB\-\-version"
440 +Print the version of
441 +.B icuinfo
442 +and exit.
443 +.TP
444 +.BR "\-c\fP, \fB\-\-copyright"
445 +Embeds the standard ICU copyright into the
446 +.IR output-file .
447 +.TP
448 +.BR "\-v\fP, \fB\-\-verbose"
449 +Display extra informative messages during execution.
450 +.TP
451 +.BI "\-i\fP, \fB\-\-icudatadir" " directory"
452 +Look for any necessary ICU data files in
453 +.IR directory .
454 +For example, the file
455 +.B pnames.icu
456 +must be located when ICU's data is not built as a shared library.
457 +The default ICU data directory is specified by the environment variable
458 +.BR ICU_DATA .
459 +Most configurations of ICU do not require this argument.
460 +.TP
461 +.BI "\-L\fP, \fB\-\-list-plugins"
462 +If specified, list and diagnose issues with ICU plugins.
463 +.TP
464 +.BI "\-K\fP, \fB\-\-cleanup"
465 +Attempt to unload plugins before exiting.
466 +.TP
467 +.BI "\-m\fP, \fB\-\-milisecond-time"
468 +Print the current UTC time in milliseconds.
469 +.SH COPYRIGHT
470 +Copyright (C) 2010 International Business Machines Corporation and others