[med-svn] [SCM] praat branch, master, updated. debian/5.3.14-1-45-geb6df89

Rafael Laboissiere rafael at laboissiere.net
Mon Apr 22 20:29:24 UTC 2013


The following commit has been merged in the master branch:
commit 83268397f8704cf1c791dfa26f01e376ea82d774
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Mon Apr 22 15:07:05 2013 +0200

    Restore the building of man pages from DocBook sources
    
    - debian/control: Build-Depends on xmlto
    - debian/manpage.xsl: Is now a fragment for xmlto and uses xsl:param
    - debian/rules: Adjust for building and cleaning the new manpages
    
    Git-Dch: Full

diff --git a/.gitignore b/.gitignore
index ddd51d6..3d28a8d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
 *.a
 /makefile.defs
 /praat
+/*.1
 /debian/files
 /debian/praat.dirs
 /debian/praat.install
diff --git a/debian/control b/debian/control
index 3d18ad4..6ee4719 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
 Uploaders: Andreas Tille <tille at debian.org>,
  Rafael Laboissiere <rafael at laboissiere.net>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 9), libasound2-dev, libgtk2.0-dev
+Build-Depends: debhelper (>= 9), libasound2-dev, libgtk2.0-dev, xmlto
 Standards-Version: 3.9.3
 Homepage: http://www.praat.org
 Vcs-Git: git://git.debian.org/debian-med/praat.git
diff --git a/debian/manpage.xsl b/debian/manpage.xsl
index 2d15f24..1c2f2fa 100644
--- a/debian/manpage.xsl
+++ b/debian/manpage.xsl
@@ -1,10 +1,5 @@
-<?xml version='1.0'?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version='1.0'>
-  <xsl:import href="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl"/>
-  <xsl:template match="articleinfo|bookinfo|refentryinfo" mode="authorsect">
-  </xsl:template>
-  <!-- Remove author and copyright sections -->
-  <xsl:template name="author.section"></xsl:template>
-  <xsl:template name="copyright.section"></xsl:template>
+  <xsl:param name="man.authors.section.enabled">0</xsl:param>
+  <xsl:param name="man.copyright.section.enabled">0</xsl:param>
 </xsl:stylesheet>
diff --git a/debian/praat.1 b/debian/praat.1
deleted file mode 100644
index 6bb2070..0000000
--- a/debian/praat.1
+++ /dev/null
@@ -1,59 +0,0 @@
-'\" t
-.\"     Title: PRAAT
-.\"    Author: Rafael Laboissiere
-.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
-.\"      Date: January 27, 2005
-.\"    Manual: [FIXME: manual]
-.\"    Source: [FIXME: source]
-.\"  Language: English
-.\"
-.TH "PRAAT" "1" "January 27, 2005" "[FIXME: source]" "[FIXME: manual]"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el       .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-praat \- doing phonetics by computer
-.SH "SYNOPSIS"
-.HP \w'\fBpraat\fR\ 'u
-\fBpraat\fR
-.SH "DESCRIPTION"
-.PP
-This manual page documents briefly the
-\fBpraat\fR
-command\&.
-.PP
-This manual page was written for the Debian distribution because the original program does not have a manual page\&.
-.PP
-\fBpraat\fR
-is a program for speech analysis and synthesis\&. Through its graphical interface, several speech analysis functionalities are available: spectrograms, cochleograms, and pitch and formant extraction\&. Articulatory synthesis, as well as synthesis from pitch, formant, and intensity are also available\&. Other features are segmentation, labelling using the phonetic alphabet, and computation of statistics\&. Praat is configurable and extensible through its own scripting language and has provisions for communicating with other programs\&.
-.SH "SEE ALSO"
-.PP
-\fBpraat\fR
-has an on\-line documentation; just launch praat and look at the Help menu entry\&.
-.PP
-For further information, see the Praat website (www\&.praat\&.org)\&. A very good Beginner\*(Aqs Guide is available at http://www\&.ling\&.lu\&.se/persons/Sidney/praate/frames\&.html
-.SH "AUTHOR"
-.PP
-This manual page was written by Rafael Laboissiere
-rafael at debian\&.org
-for the Debian system (but may be used by others)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the
-GNU
-General Public License, Version 2 any later version published by the Free Software Foundation\&.
-.PP
-On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&.
diff --git a/debian/praat.manpages b/debian/praat.manpages
index 3ec6388..b1f73bc 100644
--- a/debian/praat.manpages
+++ b/debian/praat.manpages
@@ -1 +1 @@
-debian/praat.1
+praat.1
diff --git a/debian/rules b/debian/rules
index 80aee1f..98d337b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,7 +28,7 @@ clean:
 	# Fix the lacking cleaning command for the main/ directory
 	[ ! -f makefile.defs ] || make -C main clean
 	rm -f makefile.defs $(DEBDIR)/praat.dirs		\
-		 $(DEBDIR)/praat.install $(DEBDIR)/praat.menu
+		 $(DEBDIR)/praat.install $(DEBDIR)/praat.menu praat.1
 
 override_dh_auto_configure:
 	# Generate the debhelper files
@@ -41,6 +41,13 @@ override_dh_auto_configure:
 	sed 's/^LIBS = /& -Wl,--as-needed /'	\
 		makefiles/makefile.defs.linux.alsa > makefile.defs
 
+%.1: $(DEBDIR)/%.dbk $(DEBDIR)/manpage.xsl
+	# Generate the man page from the DocBook source
+	xmlto -m $(DEBDIR)/manpage.xsl man $<
+
+override_dh_auto_build: praat.1
+	dh_auto_build
+
 override_dh_auto_install::
 	# Install the upstream changelog
 	dh_installchangelogs debian/What_s_new_.html

-- 
Debian packaging for Praat



More information about the debian-med-commit mailing list