[Python-modules-commits] r435 - in /packages/pyscript/trunk/debian: control.in pyscript.dbk python-pyscript.manpages rules

arnau-guest at users.alioth.debian.org arnau-guest at users.alioth.debian.org
Fri May 5 15:17:32 UTC 2006


Author: arnau-guest
Date: Fri May  5 15:17:29 2006
New Revision: 435

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=435
Log:
Update Standards-Version to 3.7.2, add the manpage using docbook

Added:
    packages/pyscript/trunk/debian/pyscript.dbk
    packages/pyscript/trunk/debian/python-pyscript.manpages
Modified:
    packages/pyscript/trunk/debian/control.in
    packages/pyscript/trunk/debian/rules

Modified: packages/pyscript/trunk/debian/control.in
URL: http://svn.debian.org/wsvn/python-modules/packages/pyscript/trunk/debian/control.in?rev=435&op=diff
==============================================================================
--- packages/pyscript/trunk/debian/control.in (original)
+++ packages/pyscript/trunk/debian/control.in Fri May  5 15:17:29 2006
@@ -4,7 +4,8 @@
 Maintainer: Arnaud Fontaine <arnaud at andesi.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Build-Depends: @cdbs@, python-dev
-Standards-Version: 3.7.0
+Build-Depends-Indep: xsltproc, docbook-xsl, docbook-xml
+Standards-Version: 3.7.2
 
 Package: python-pyscript
 Architecture: all

Added: packages/pyscript/trunk/debian/pyscript.dbk
URL: http://svn.debian.org/wsvn/python-modules/packages/pyscript/trunk/debian/pyscript.dbk?rev=435&op=file
==============================================================================
--- packages/pyscript/trunk/debian/pyscript.dbk (added)
+++ packages/pyscript/trunk/debian/pyscript.dbk Fri May  5 15:17:29 2006
@@ -1,0 +1,190 @@
+<?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>Arnaud</firstname>">
+  <!ENTITY dhsurname   "<surname>Fontaine</surname>">
+
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>may 05, 2006</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>arnaud at andesi.org</email>">
+  <!ENTITY dhusername  "Arnaud Fontaine">
+  <!ENTITY dhucpackage "<refentrytitle>PYSCRIPT</refentrytitle>">
+  <!ENTITY dhpackage   "pyscript">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<!-- ====================================================================== -->
+<refentry lang="fr">
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+
+    <copyright>
+      <year>2006</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+
+  <!-- ============================================================ -->
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+
+  <!-- ============================================================ -->
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>Pyscript tool for generating a Generate an Encapsulated PostScript (EPS)</refpurpose>
+  </refnamediv>
+
+  <!-- ============================================================ -->
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg><option>--version</option></arg>
+    </cmdsynopsis>
+
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg choice="plain"><replaceable>file.py</replaceable></arg>
+      <arg><option>options</option></arg>
+      <arg><option>-o  <replaceable>output file name
+            file</replaceable></option></arg>
+      <arg><option>-l <replaceable>log file</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+
+  <!-- ============================================================ -->
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <simpara>
+      Pyscript  allows to  write images  using the  Python programming
+      language.   Use  <command>&dhpackage;</command>  to   create  an
+      Encapsulated  PostScript  (EPS)  from  a  python  program  using
+      pyscript objects.
+    </simpara>
+
+    <simpara>
+      An source  python file name  has to be  given to the  script. By
+      default, <command>&dhpackage;</command> is written its output to
+      foo.eps where  foo.py is  the file name  of the  python program.
+      this behavior can be change by specifying
+     <option>-o output</option> or <option>--output=output</option> to
+     the script.
+    </simpara>
+
+    <simpara>
+      The path  of an alternative log  file can also  be written using
+      the <option>-l file</option> or <option>--logfile=file</option>.
+    </simpara>
+
+  </refsect1>
+
+  <!-- ============================================================ -->
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <variablelist>
+    
+      <varlistentry>
+        <term>
+          <option>--version/-V</option>
+        </term>
+        <listitem>
+          <simpara>print version and URL of the project.</simpara>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>--help/-h</option></term>
+        <listitem><simpara>print usage information</simpara>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>--output/-o</option></term>
+        <listitem><simpara>Output is written to the given file name</simpara>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>--logfile/-l</option></term>
+        <listitem><simpara>Write the logfile to the given file name</simpara>
+        </listitem>
+      </varlistentry>
+      
+    </variablelist>
+  </refsect1>
+
+  <!-- ============================================================ -->
+  <refsect1>
+    <title>AUTHORS</title>
+
+    <para>Pyscript was written by 
+      <personname>
+        <firstname>Alexei</firstname>
+	<surname>Gilchrist</surname>
+      </personname>
+      <email>aalexei at users.sourceforge.net</email>
+      and 
+      <personname>
+	<firstname>Paul</firstname>
+	<surname>Cochrane</surname>
+      </personname>
+      <email>paultcochrane at users.sourceforge.net</email>.
+    </para>
+
+    <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  2 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
+      <filename>/usr/share/common-licenses/GPL</filename>.
+    </para>
+
+  </refsect1>
+</refentry>

Added: packages/pyscript/trunk/debian/python-pyscript.manpages
URL: http://svn.debian.org/wsvn/python-modules/packages/pyscript/trunk/debian/python-pyscript.manpages?rev=435&op=file
==============================================================================
--- packages/pyscript/trunk/debian/python-pyscript.manpages (added)
+++ packages/pyscript/trunk/debian/python-pyscript.manpages Fri May  5 15:17:29 2006
@@ -1,0 +1,1 @@
+debian/pyscript.1

Modified: packages/pyscript/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/pyscript/trunk/debian/rules?rev=435&op=diff
==============================================================================
--- packages/pyscript/trunk/debian/rules (original)
+++ packages/pyscript/trunk/debian/rules Fri May  5 15:17:29 2006
@@ -13,6 +13,16 @@
 # python-support
 DEB_PYTHON_INSTALL_ARGS_ALL += --install-lib usr/share/python-support/pyscript
 
+# Manpages stuff 
+MANPAGES = debian/pyscript.1
+XSLT_CMD = xsltproc -nonet
+DB2MAN   = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
+
+install/python-pyscript:: $(MANPAGES)
+
+%.1: %.dbk
+	cd $(<D) && $(XSLT_CMD) $(DB2MAN) $(<F)
+
 common-binary-post-install-indep::
 	# Clean the python-pyscript-doc packages by removing *.py files
 	rm -rf debian/python-pyscript-doc/usr/share/python-support \




More information about the Python-modules-commits mailing list