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