[med-svn] [praat] 07/09: Add praat_nogui executable and manual page

Rafael Laboissiere rafael at debian.org
Fri Aug 11 20:49:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

rafael pushed a commit to branch master
in repository praat.

commit 1f6415983092f0cd41d874f76e409a57f59ae27d
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Fri Aug 11 12:13:24 2017 -0300

    Add praat_nogui executable and manual page
    
    The override_dh_auto_build rule in d/rules is hacked in order to build
    the praat_nogui executable without having to rebuild the whole sources.
---
 .gitignore             |   1 +
 debian/install.in      |   1 +
 debian/praat.manpages  |   1 +
 debian/praat_nogui.dbk | 129 +++++++++++++++++++++++++++++++++++++++++++++++++
 debian/rules           |  17 +++++--
 5 files changed, 145 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index 9591e27..08d2920 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,5 +3,6 @@
 /*.1
 /makefile.defs
 /praat
+/praat_nogui
 /sendpraat
 /.pc/
diff --git a/debian/install.in b/debian/install.in
index 127c165..000df01 100644
--- a/debian/install.in
+++ b/debian/install.in
@@ -1,4 +1,5 @@
 praat			@BINDIR@
+praat_nogui		@BINDIR@
 sendpraat		@BINDIR@
 debian/praat-open-files	@BINDIR@
 debian/praat.xpm	@PIXDIR@
diff --git a/debian/praat.manpages b/debian/praat.manpages
index acf9c69..ea64c77 100644
--- a/debian/praat.manpages
+++ b/debian/praat.manpages
@@ -1,3 +1,4 @@
 praat.1
+praat_nogui.1
 sendpraat.1
 praat-open-files.1
diff --git a/debian/praat_nogui.dbk b/debian/praat_nogui.dbk
new file mode 100644
index 0000000..d0c2cbf
--- /dev/null
+++ b/debian/praat_nogui.dbk
@@ -0,0 +1,129 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+
+<!--
+
+Process this file with an XSLT processor: `xsltproc \
+-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl manpage.dbk'.  A manual page
+<package>.<section> will be generated.  You may view the
+manual page with: nroff -man <package>.<section> | less'.  A
+typical entry in a Makefile or Makefile.am is:
+
+DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl
+XP=xsltproc -''-nonet
+
+manpage.1: manpage.dbk
+        $(XP) $(DB2MAN) $<
+
+The xsltproc binary is found in the xsltproc package.  The
+XSL files are in docbook-xsl.  Please remember that if you
+create the nroff version in one of the debian/rules file
+targets (such as build), you will need to include xsltproc
+and docbook-xsl in your Build-Depends control field.
+
+-->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Rafael</firstname>">
+  <!ENTITY dhsurname   "<surname>Laboissiere</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>April 22, 2013</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>rafael at laboissiere.net</email>">
+  <!ENTITY dhusername  "Rafael Laboissiere">
+  <!ENTITY dhucpackage "<refentrytitle>PRAAT</refentrytitle>">
+  <!ENTITY dhpackage   "praat_nogui">
+
+  <!ENTITY debian      "Debian">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2017</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+    &dhsection;
+    <refmiscinfo class="manual">User Commands</refmiscinfo>
+    <refmiscinfo class="source">Praat</refmiscinfo>
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>doing phonetics by computer</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command> <arg>[--run] script</arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> command.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.</para>
+
+    <para><command>&dhpackage;</command> is a program for speech
+      analysis and synthesis.  Severral 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.</para>
+      
+    <para>This is a non-GUI version of the praat program, intended for
+      running Praat script in batch mode, from the shell command line
+      or called from other shell scripts.</para>
+
+  </refsect1>
+
+  <refsect1>
+
+    <title>SEE ALSO</title>
+
+    <para>The GUI program <command>praat</command> has an on-line
+    documentation; just launch praat and look at the Help menu
+    entry.</para>
+
+    <para>For further information, see the Praat website
+    (http://www.praat.org).  A very good Beginner's Guide is available at
+    http://www.ling.lu.se/persons/Sidney/praate/frames.html.</para>
+
+  </refsect1>
+
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; <&dhemail;> 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 3 any
+      later version published by the Free Software Foundation.</para>
+
+    <para>On Debian systems, the complete text of the GNU General
+      Public License can be found in /usr/share/common-licenses/GPL-3.</para>
+
+  </refsect1>
+</refentry>
+
diff --git a/debian/rules b/debian/rules
index 6e42b10..3e71af3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,9 +29,11 @@ clean:
 	dh 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 				\
-		 sendpraat praat.1 sendpraat.1 praat-open-files.1
+	rm -f makefile.defs $(DEBDIR)/praat.dirs	\
+		 $(DEBDIR)/praat.install		\
+		 praat_nogui sendpraat			\
+		 praat.1 praat_nogui.1			\
+		 sendpraat.1 praat-open-files.1
 
 override_dh_auto_clean:
 	touch makefile.defs
@@ -63,7 +65,14 @@ sendpraat: sys/sendpraat.c
 		-o sendpraat sys/sendpraat.c			\
 		$(shell pkg-config --cflags --libs gtk+-2.0)
 
-override_dh_auto_build: sendpraat praat.1 sendpraat.1 praat-open-files.1
+override_dh_auto_build: sendpraat praat.1 praat_nogui.1 sendpraat.1 praat-open-files.1
+	dh_auto_build
+	sed 's/^LIBS = /& -Wl,--as-needed /'	\
+		makefiles/makefile.defs.linux.nogui > makefile.defs
+	# Add hardening flags
+	cat debian/mk-vars-hardening >> makefile.defs
+	rm -f sys/*.o fon/SoundRecorder.o fon/praat_Sound.o	\
+		fon/FunctionEditor.o external/portaudio/*.o
 	dh_auto_build
 
 override_dh_auto_install:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/praat.git



More information about the debian-med-commit mailing list