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