Blame SOURCES/0001-Add-man-pages.patch

6f00ef
diff -up glade-3.15.0/configure.ac.man-pages glade-3.15.0/configure.ac
6f00ef
--- glade-3.15.0/configure.ac.man-pages	2013-03-06 15:58:47.000000000 -0500
6f00ef
+++ glade-3.15.0/configure.ac	2013-06-26 15:02:30.060301314 -0400
6f00ef
@@ -195,6 +195,22 @@ AM_CONDITIONAL(BUILD_PYTHON, test x"$hav
6f00ef
 
6f00ef
 YELP_HELP_INIT
6f00ef
 
6f00ef
+# ==================================================================
6f00ef
+# Man pages (requires xsltproc)
6f00ef
+# ==================================================================
6f00ef
+
6f00ef
+AC_ARG_ENABLE(man-pages,
6f00ef
+              AC_HELP_STRING([--enable-man-pages],
6f00ef
+                             [build manual pages]),,
6f00ef
+              enable_man_pages=yes)
6f00ef
+if test x$enable_man_pages = xyes; then
6f00ef
+   AC_PATH_PROG([XSLTPROC], [xsltproc])
6f00ef
+   if test x$XSLTPROC = x; then
6f00ef
+      AC_MSG_ERROR([xsltproc is required to build manual pages])
6f00ef
+   fi
6f00ef
+fi
6f00ef
+AM_CONDITIONAL(BUILD_MAN_PAGES, test x$enable_man_pages = xyes)
6f00ef
+
6f00ef
 dnl ================================================================
6f00ef
 dnl Check for windows
6f00ef
 dnl ================================================================
6f00ef
@@ -298,6 +314,7 @@ po/Makefile.in
6f00ef
 doc/Makefile
6f00ef
 doc/version.xml
6f00ef
 help/Makefile
6f00ef
+man/Makefile
6f00ef
 build/mingw-w64/glade.nsi
6f00ef
 ])
6f00ef
 
6f00ef
@@ -314,4 +331,5 @@ Configuration:
6f00ef
 	Introspection Data:      ${found_introspection}
6f00ef
 
6f00ef
 	Build Reference Manual:  ${enable_gtk_doc}
6f00ef
+	Build Manual Pages:      ${enable_man_pages}
6f00ef
 "
6f00ef
diff -up glade-3.15.0/Makefile.am.man-pages glade-3.15.0/Makefile.am
6f00ef
--- glade-3.15.0/Makefile.am.man-pages	2013-06-26 15:04:34.414063451 -0400
6f00ef
+++ glade-3.15.0/Makefile.am	2013-06-26 15:05:09.949281239 -0400
6f00ef
@@ -1,6 +1,10 @@
6f00ef
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
6f00ef
 
6f00ef
 SUBDIRS = po data gladeui src plugins doc help
6f00ef
+if BUILD_MAN_PAGES
6f00ef
+SUBDIRS += man
6f00ef
+endif
6f00ef
+DIST_SUBDIRS = po data gladeui src plugins doc help man
6f00ef
 
6f00ef
 EXTRA_DIST = \
6f00ef
 	autogen.sh \
6f00ef
diff -up glade-3.15.0/man/glade-previewer.xml.man-pages glade-3.15.0/man/glade-previewer.xml
6f00ef
--- glade-3.15.0/man/glade-previewer.xml.man-pages	2013-06-26 15:02:30.061301320 -0400
6f00ef
+++ glade-3.15.0/man/glade-previewer.xml	2013-06-26 15:02:30.060301314 -0400
6f00ef
@@ -0,0 +1,105 @@
6f00ef
+
6f00ef
+
6f00ef
+        "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6f00ef
+
6f00ef
+<refentry id="glade-previewer">
6f00ef
+
6f00ef
+        <refentryinfo>
6f00ef
+                <title>glade-previewer</title>
6f00ef
+                <productname>GNOME</productname>
6f00ef
+
6f00ef
+                <authorgroup>
6f00ef
+                        <author>
6f00ef
+                                <contrib>Maintainer</contrib>
6f00ef
+                                <firstname>Tristan Van Berkom</firstname>
6f00ef
+                                <surname>Van Berkom</surname>
6f00ef
+                                <email>tristan.van.berkom@gmail.com</email>
6f00ef
+                        </author>
6f00ef
+                        <author>
6f00ef
+                                <contrib>Maintainer</contrib>
6f00ef
+                                <firstname>Juan Pablo</firstname>
6f00ef
+                                <surname>Ugarte</surname>
6f00ef
+                                <email>juanpablougarte@gmail.com</email>
6f00ef
+                        </author>
6f00ef
+                </authorgroup>
6f00ef
+
6f00ef
+        </refentryinfo>
6f00ef
+
6f00ef
+        <refmeta>
6f00ef
+                <refentrytitle>glade-previewer</refentrytitle>
6f00ef
+                <manvolnum>1</manvolnum>
6f00ef
+                <refmiscinfo class="manual">User Commands</refmiscinfo>
6f00ef
+        </refmeta>
6f00ef
+
6f00ef
+        <refnamediv>
6f00ef
+                <refname>glade-previewer</refname>
6f00ef
+                <refpurpose>Preview glade user interface definitions</refpurpose>
6f00ef
+        </refnamediv>
6f00ef
+
6f00ef
+        <refsynopsisdiv>
6f00ef
+                <cmdsynopsis>
6f00ef
+                        <command>glade-previewer <arg choice="opt" rep="repeat">OPTION</arg></command>
6f00ef
+                </cmdsynopsis>
6f00ef
+        </refsynopsisdiv>
6f00ef
+
6f00ef
+        <refsect1>
6f00ef
+                <title>Description</title>
6f00ef
+
6f00ef
+                <para><command>glade-previewer</command> is a tool that
6f00ef
+                can load and display a User Interface that has been defined
6f00ef
+                with glade. glade itself uses glade-previewer, but it
6f00ef
+                can also be used as a standalone utility.</para>
6f00ef
+        </refsect1>
6f00ef
+
6f00ef
+        <refsect1>
6f00ef
+                <title>Options</title>
6f00ef
+
6f00ef
+                <para>The following options can be specified:</para>
6f00ef
+
6f00ef
+                <variablelist>
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>-f FILENAME</option>, <option>--filename=FILENAME</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Name of the file to preview.</para></listitem>
6f00ef
+
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>-t TOPLEVEL</option>, <option>--toplevel=TOPLEVEL</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Name of the toplevel to preview.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>-l</option>, <option>--listen</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Listen on standard input.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>-v</option>, <option>--version</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Output version information and exit.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>--display=DISPLAY</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>X display to use.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                </variablelist>
6f00ef
+
6f00ef
+                <para>One of the <option>--filename</option> or
6f00ef
+                <option>--listen</option> options has to be specified.</para>
6f00ef
+
6f00ef
+        </refsect1>
6f00ef
+
6f00ef
+        <refsect1>
6f00ef
+                <title>See Also</title>
6f00ef
+                <para>
6f00ef
+                        <citerefentry><refentrytitle>glade</refentrytitle><manvolnum>1</manvolnum></citerefentry>
6f00ef
+                </para>
6f00ef
+        </refsect1>
6f00ef
+
6f00ef
+</refentry>
6f00ef
diff -up glade-3.15.0/man/glade.xml.man-pages glade-3.15.0/man/glade.xml
6f00ef
--- glade-3.15.0/man/glade.xml.man-pages	2013-06-26 15:02:30.061301320 -0400
6f00ef
+++ glade-3.15.0/man/glade.xml	2013-06-26 15:02:30.061301320 -0400
6f00ef
@@ -0,0 +1,114 @@
6f00ef
+
6f00ef
+
6f00ef
+        "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6f00ef
+
6f00ef
+<refentry id="glade">
6f00ef
+
6f00ef
+        <refentryinfo>
6f00ef
+                <title>glade</title>
6f00ef
+                <productname>GNOME</productname>
6f00ef
+
6f00ef
+                <authorgroup>
6f00ef
+                        <author>
6f00ef
+                                <contrib>Maintainer</contrib>
6f00ef
+                                <firstname>Tristan Van Berkom</firstname>
6f00ef
+                                <surname>Van Berkom</surname>
6f00ef
+                                <email>tristan.van.berkom@gmail.com</email>
6f00ef
+                        </author>
6f00ef
+                        <author>
6f00ef
+                                <contrib>Maintainer</contrib>
6f00ef
+                                <firstname>Juan Pablo</firstname>
6f00ef
+                                <surname>Ugarte</surname>
6f00ef
+                                <email>juanpablougarte@gmail.com</email>
6f00ef
+                        </author>
6f00ef
+                </authorgroup>
6f00ef
+
6f00ef
+        </refentryinfo>
6f00ef
+
6f00ef
+        <refmeta>
6f00ef
+                <refentrytitle>glade</refentrytitle>
6f00ef
+                <manvolnum>1</manvolnum>
6f00ef
+                <refmiscinfo class="manual">User Commands</refmiscinfo>
6f00ef
+        </refmeta>
6f00ef
+
6f00ef
+        <refnamediv>
6f00ef
+                <refname>glade</refname>
6f00ef
+                <refpurpose>Create GTK+ user interfaces</refpurpose>
6f00ef
+        </refnamediv>
6f00ef
+
6f00ef
+        <refsynopsisdiv>
6f00ef
+                <cmdsynopsis>
6f00ef
+                        <command>glade <arg choice="opt" rep="repeat">OPTION</arg> <arg choice="opt" rep="repeat">FILE</arg></command>
6f00ef
+                </cmdsynopsis>
6f00ef
+        </refsynopsisdiv>
6f00ef
+
6f00ef
+        <refsect1>
6f00ef
+                <title>Description</title>
6f00ef
+
6f00ef
+                <para><command>glade</command> is a tool to create or edit
6f00ef
+                user interfaces for GTK+ or GNOME applications. It saves
6f00ef
+                the user interface descriptions in xml files which can be
6f00ef
+                read by the GtkBuilder API that is part of GTK+.</para>
6f00ef
+        </refsect1>
6f00ef
+
6f00ef
+        <refsect1>
6f00ef
+                <title>Options</title>
6f00ef
+
6f00ef
+                <para>The following options can be specified:</para>
6f00ef
+
6f00ef
+                <variablelist>
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>-h</option>, <option>--help</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Show help options.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>--help-all</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Show all help options.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>--help-debug</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Show Glade debug options.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>--help-gtk</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Show GTK+ options.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>--version</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Output version information
6f00ef
+                                and exit.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>--without-devhelp</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>Disable devhelp integration.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                        <varlistentry>
6f00ef
+                                <term><option>--display=DISPLAY</option></term>
6f00ef
+
6f00ef
+                                <listitem><para>X display to use.</para></listitem>
6f00ef
+                        </varlistentry>
6f00ef
+
6f00ef
+                </variablelist>
6f00ef
+
6f00ef
+        </refsect1>
6f00ef
+
6f00ef
+        <refsect1>
6f00ef
+                <title>See Also</title>
6f00ef
+                <para>
6f00ef
+                        <citerefentry><refentrytitle>devhelp</refentrytitle><manvolnum>1</manvolnum></citerefentry>
6f00ef
+                </para>
6f00ef
+        </refsect1>
6f00ef
+
6f00ef
+</refentry>
6f00ef
diff -up glade-3.15.0/man/Makefile.am.man-pages glade-3.15.0/man/Makefile.am
6f00ef
--- glade-3.15.0/man/Makefile.am.man-pages	2013-06-26 15:02:30.061301320 -0400
6f00ef
+++ glade-3.15.0/man/Makefile.am	2013-06-26 15:02:30.061301320 -0400
6f00ef
@@ -0,0 +1,22 @@
6f00ef
+XSLTPROC_FLAGS = \
6f00ef
+        --nonet \
6f00ef
+        --stringparam man.output.quietly 1 \
6f00ef
+        --stringparam funcsynopsis.style ansi \
6f00ef
+        --stringparam man.th.extra1.suppress 1 \
6f00ef
+        --stringparam man.authors.section.enabled 0 \
6f00ef
+        --stringparam man.copyright.section.enabled 0
6f00ef
+
6f00ef
+.xml.1:
6f00ef
+	$(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
6f00ef
+
6f00ef
+man_MANS = \
6f00ef
+	glade.1 \
6f00ef
+	glade-previewer.1
6f00ef
+
6f00ef
+xml_files = $(man_MANS:.1=.xml)
6f00ef
+
6f00ef
+EXTRA_DIST = $(xml_files)
6f00ef
+
6f00ef
+DISTCLEANFILES = $(man_MANS)
6f00ef
+
6f00ef
+-include $(top_srcdir)/git.mk