a588c1
Description: supply manual page for program that doesn't have one
a588c1
Author: Jay Berkenbilt <qjb@debian.org>
a588c1
Bug: http://bugs.icu-project.org/trac/ticket/7554
a588c1
a588c1
diff -r -u -N icu.orig/source/tools/gennorm2/gennorm2.8.in icu/source/tools/gennorm2/gennorm2.8.in
a588c1
--- icu.orig/source/tools/gennorm2/gennorm2.8.in	1970-01-01 01:00:00.000000000 +0100
a588c1
+++ icu/source/tools/gennorm2/gennorm2.8.in	2013-02-25 16:43:28.297062638 +0100
a588c1
@@ -0,0 +1,71 @@
a588c1
+.\" Hey, Emacs! This is -*-nroff-*- you know...
a588c1
+.\"
a588c1
+.\" gennorm2.8: manual page for the gennorm2 utility
a588c1
+.\"
a588c1
+.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
a588c1
+.\"
a588c1
+.TH GENNORM2 8 "15 March 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
a588c1
+.SH NAME
a588c1
+.B gennorm2
a588c1
+\- Builds binary data file with Unicode normalization data.
a588c1
+.SH SYNOPSIS
a588c1
+.B gennorm2
a588c1
+[
a588c1
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
a588c1
+]
a588c1
+[
a588c1
+.BR "\-V\fP, \fB\-\-version"
a588c1
+]
a588c1
+[
a588c1
+.BR "\-c\fP, \fB\-\-copyright"
a588c1
+]
a588c1
+[
a588c1
+.BR "\-v\fP, \fB\-\-verbose"
a588c1
+]
a588c1
+[
a588c1
+.BI "\-u\fP, \fB\-\-unicode" " unicode\-version\-number"
a588c1
+]
a588c1
+[
a588c1
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
a588c1
+]
a588c1
+[
a588c1
+.BI "\-o\fP, \fB\-\-output" " output\-filename"
a588c1
+]
a588c1
+.BI "\fB\-\-fast"
a588c1
+.SH DESCRIPTION
a588c1
+.B gennorm2
a588c1
+reads text files that define Unicode normalization,
a588c1
+them, and builds a binary data file.
a588c1
+.SH OPTIONS
a588c1
+.TP
a588c1
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
a588c1
+Print help about usage and exit.
a588c1
+.TP
a588c1
+.BR "\-V\fP, \fB\-\-version"
a588c1
+Print the version of
a588c1
+.B gennorm2
a588c1
+and exit.
a588c1
+.TP
a588c1
+.BR "\-c\fP, \fB\-\-copyright"
a588c1
+Include a copyright notice.
a588c1
+.TP
a588c1
+.BR "\-v\fP, \fB\-\-verbose"
a588c1
+Display extra informative messages during execution.
a588c1
+.TP
a588c1
+.BR "\-u\fP, \fB\-\-unicode"
a588c1
+Specify Unicode version number, such as 5.2.0.
a588c1
+.TP
a588c1
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
a588c1
+Specify the input directory.
a588c1
+.TP
a588c1
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
a588c1
+Set the name of the output file.
a588c1
+.TP
a588c1
+.BI "\fB\-\-fast"
a588c1
+optimize the .nrm file for fast normalization,
a588c1
+which might increase its size  (Writes fully decomposed
a588c1
+regular mappings instead of delta mappings.
a588c1
+You should measure the runtime speed to make sure that
a588c1
+this is a good trade-off.)
a588c1
+.SH COPYRIGHT
a588c1
+Copyright (C) 2009-2010 International Business Machines Corporation and others
a588c1
diff -r -u -N icu.orig/source/tools/gennorm2/Makefile.in icu/source/tools/gennorm2/Makefile.in
a588c1
--- icu.orig/source/tools/gennorm2/Makefile.in	2013-01-11 01:23:32.000000000 +0100
a588c1
+++ icu/source/tools/gennorm2/Makefile.in	2013-02-25 16:43:28.296062632 +0100
a588c1
@@ -16,8 +16,13 @@
a588c1
 
a588c1
 TARGET_STUB_NAME = gennorm2
a588c1
 
a588c1
+SECTION = 8
a588c1
+
a588c1
+MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
a588c1
+
a588c1
+
a588c1
 ## Extra files to remove for 'make clean'
a588c1
-CLEANFILES = *~ $(DEPS)
a588c1
+CLEANFILES = *~ $(DEPS) $(MAN_FILES)
a588c1
 
a588c1
 ## Target information
a588c1
 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
a588c1
@@ -44,12 +49,16 @@
a588c1
 dist: dist-local
a588c1
 check: all check-local
a588c1
 
a588c1
-all-local: $(TARGET)
a588c1
+all-local: $(TARGET) $(MAN_FILES)
a588c1
 
a588c1
-install-local: all-local
a588c1
+install-local: all-local install-man
a588c1
 	$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
a588c1
 	$(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
a588c1
 
a588c1
+install-man: $(MAN_FILES)
a588c1
+	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
a588c1
+	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
a588c1
+
a588c1
 dist-local:
a588c1
 
a588c1
 clean-local:
a588c1
@@ -70,6 +79,11 @@
a588c1
 	$(POST_BUILD_STEP)
a588c1
 
a588c1
 
a588c1
+%.$(SECTION): $(srcdir)/%.$(SECTION).in
a588c1
+	cd $(top_builddir) \
a588c1
+	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
a588c1
+
a588c1
+
a588c1
 ifeq (,$(MAKECMDGOALS))
a588c1
 -include $(DEPS)
a588c1
 else