[Python-modules-commits] r9032 - in packages/aafigure/trunk (14 files)

jwilk-guest at users.alioth.debian.org jwilk-guest at users.alioth.debian.org
Sun Jul 12 20:37:06 UTC 2009


    Date: Sunday, July 12, 2009 @ 20:37:03
  Author: jwilk-guest
Revision: 9032

[svn-inject] Applying Debian modifications to trunk

Added:
  packages/aafigure/trunk/debian/
  packages/aafigure/trunk/debian/aafigure.xml
  packages/aafigure/trunk/debian/changelog
  packages/aafigure/trunk/debian/compat
  packages/aafigure/trunk/debian/control
  packages/aafigure/trunk/debian/copyright
  packages/aafigure/trunk/debian/docs
  packages/aafigure/trunk/debian/examples
  packages/aafigure/trunk/debian/manpages
  packages/aafigure/trunk/debian/patches/
  packages/aafigure/trunk/debian/patches/series
  packages/aafigure/trunk/debian/patches/ttf-liberation.patch
  packages/aafigure/trunk/debian/rules
  packages/aafigure/trunk/debian/watch


Property changes on: packages/aafigure/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/aafigure/trunk/debian/aafigure.xml
===================================================================
--- packages/aafigure/trunk/debian/aafigure.xml	                        (rev 0)
+++ packages/aafigure/trunk/debian/aafigure.xml	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,208 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN' 'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd'
+[
+    <!ENTITY p 'aafigure'>
+    <!ENTITY version '0.4'>
+]>
+
+<refentry>
+
+<refentryinfo>
+    <title>&p; manual</title>
+    <productname>&p;</productname>
+    <author>
+        <firstname>Jakub</firstname> <surname>Wilk</surname>
+        <contrib>Wrote this manpage for the Debian system.</contrib>
+        <address><email>ubanus at users.sf.net</email></address>
+    </author>
+    <copyright>
+        <year>2009</year>
+        <holder>Jakub Wilk</holder>
+    </copyright>
+    <legalnotice>
+        <para>
+            This manual page was written for the Debian system (and may be used by others).
+        </para>
+        <para>
+            Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General
+            Public License Version 2, as published by the Free Software Foundation.
+        </para>
+        <para>
+            On Debian systems, the complete text of the GNU General Public License Version 2 can be found in
+            <filename>/usr/share/common-licenses/GPL-2</filename>.
+        </para>
+    </legalnotice>
+</refentryinfo>
+
+<refmeta>
+    <refentrytitle>&p;</refentrytitle>
+    <manvolnum>1</manvolnum>
+    <refmiscinfo class='version'>&version;</refmiscinfo>
+</refmeta>
+
+<refnamediv>
+    <refname>&p;</refname>
+    <refpurpose>convert ASCII art to an image</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+    <cmdsynopsis>
+        <command>&p;</command>
+        <arg choice='opt' rep='repeat'><replaceable>option</replaceable></arg>
+        <arg choice='opt' rep='repeat'><replaceable>input-file</replaceable></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+        <command>&p;</command>
+        <group choice='req'>
+            <arg choice='plain'><option>-h</option></arg>
+            <arg choice='plain'><option>--help</option></arg>
+            <arg choice='plain'><option>--version</option></arg>
+        </group>
+    </cmdsynopsis>
+</refsynopsisdiv>
+
+<refsection>
+    <title>Description</title>
+    <para>
+        <command>&p;</command> is an ASCII art to image converter.
+    </para>
+    <para>
+        ASCII art figures can be parsed and output as SVG, PNG, PDF and more.
+    </para>
+</refsection>
+
+<refsection>
+    <title>Options</title>
+    <para>
+        The program follows the usual GNU command line syntax, with long options starting with two dashes
+        (<literal>--</literal>). Mandatory or optional arguments to long options are also mandatory or optional for any
+        corresponding short options.
+    </para>
+    <variablelist>
+    <varlistentry>
+        <term><option>-o</option></term>
+        <term><option>--output=<replaceable>file</replaceable></option></term>
+        <listitem>
+            <para>
+                Write output to <replaceable>file</replaceable> rather than to the standard output.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-t</option></term>
+        <term><option>--type=<replaceable>format</replaceable></option></term>
+        <listitem>
+            <para>
+                Use the provided output format. By default, output format is inferred from the output file name
+                extension.
+            </para>
+            <para>
+                The following formats are supported: SVG, PDF, PNG and any file format supported by Python Imaging
+                Library.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-D</option></term>
+        <term><option>--debug</option></term>
+        <listitem>
+            <para>
+                Enable debug outputs.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-T</option></term>
+        <term><option>--textual</option></term>
+        <listitem>
+            <para>
+                Disable horizontal fill detection.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-s</option></term>
+        <term><option>--scale=<replaceable>scale</replaceable></option></term>
+        <listitem>
+            <para>
+                Use the specified scale.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-a</option></term>
+        <term><option>--aspect=<replaceable>aspect</replaceable></option></term>
+        <listitem>
+            <para>
+                Use the specified aspect ratio.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-l</option></term>
+        <term><option>--line-width=<replaceable>width</replaceable></option></term>
+        <listitem>
+            <para>
+                For SVG output format, use the specified line width.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>--poportional</option></term>
+        <listitem>
+            <para>
+                Use a proportional font rather than a fixed-width font.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-f</option></term>
+        <term><option>--foreground=#<replaceable>rrggbb</replaceable></option></term>
+        <listitem>
+            <para>
+                Use the specified foreground color. The default is black (<literal>#000000</literal>).
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-x</option></term>
+        <term><option>--fill=#<replaceable>rrggbb</replaceable></option></term>
+        <listitem>
+            <para>
+                Use the specified fill color. The default is the foreground color.
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-b</option></term>
+        <term><option>--background=#<replaceable>rrggbb</replaceable></option></term>
+        <listitem>
+            <para>
+                Use the specified background color. The default is white (<literal>#ffffff</literal>).
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-O</option></term>
+        <term><option>--option=<replaceable>extra-options</replaceable></option></term>
+        <listitem>
+            <para>
+                Pass special options to backends. (For expert users only.)
+            </para>
+        </listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>-h</option></term>
+        <term><option>--help</option></term>
+        <listitem><para>Display help and exit.</para></listitem>
+    </varlistentry>
+    <varlistentry>
+        <term><option>--version</option></term>
+        <listitem><para>Display version information and exit.</para></listitem>
+    </varlistentry>
+    </variablelist>
+</refsection>
+
+</refentry>
+
+<!-- vim:set ts=4 sw=4 tw=120 et: -->


Property changes on: packages/aafigure/trunk/debian/aafigure.xml
___________________________________________________________________
Added: svn:mime-type
   + text/xml

Added: packages/aafigure/trunk/debian/changelog
===================================================================
--- packages/aafigure/trunk/debian/changelog	                        (rev 0)
+++ packages/aafigure/trunk/debian/changelog	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,6 @@
+aafigure (0.4-1) unstable; urgency=low
+
+  * Initial release (closes: #531922).
+  * Use free Liberation fonts rather than Microsoft core fonts.
+
+ -- Jakub Wilk <ubanus at users.sf.net>  Sun, 12 Jul 2009 22:27:43 +0200

Added: packages/aafigure/trunk/debian/compat
===================================================================
--- packages/aafigure/trunk/debian/compat	                        (rev 0)
+++ packages/aafigure/trunk/debian/compat	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1 @@
+7

Added: packages/aafigure/trunk/debian/control
===================================================================
--- packages/aafigure/trunk/debian/control	                        (rev 0)
+++ packages/aafigure/trunk/debian/control	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,18 @@
+Source: aafigure
+Section: python
+Priority: extra
+Maintainer: Jakub Wilk <ubanus at users.sf.net>
+Build-Depends: debhelper (>= 7.0.8), quilt (>= 0.46-7~), python-support (>= 0.90), docbook-xml (>= 4.5), docbook-xsl, xsltproc
+Standards-Version: 3.8.2
+Homepage: https://launchpad.net/aafigure
+
+Package: python-aafigure
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Recommends: python-reportlab, python-imaging, ttf-liberation
+Description: ASCII art to image converter
+ aafigure is an ASCII art to image converter.
+ .
+ ASCII art figures can be parsed and output as SVG, PNG, PDF and more.
+ .
+ This package provides a Python module and a command-line tool.

Added: packages/aafigure/trunk/debian/copyright
===================================================================
--- packages/aafigure/trunk/debian/copyright	                        (rev 0)
+++ packages/aafigure/trunk/debian/copyright	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,35 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=59
+Name: aafigure
+Maintainer: Chris Liechti <cliechti at gmx.net>
+Source: https://launchpad.net/aafigure
+
+Files: *
+Copyright: 2006-2009, aafigure-team
+License: BSD
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ * Neither the name of the aafigure-team nor the
+   names of its contributors may be used to endorse or promote products
+   derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AAFIGURE-TEAM ''AS IS'' AND ANY
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE AAFIGURE-TEAM BE LIABLE FOR ANY
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: debian/*
+Copyright: 2009, Jakub Wilk <ubanus at users.sf.net>
+License: GPL-2
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in the /usr/share/common-licenses/GPL-2 file.

Added: packages/aafigure/trunk/debian/docs
===================================================================
--- packages/aafigure/trunk/debian/docs	                        (rev 0)
+++ packages/aafigure/trunk/debian/docs	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,2 @@
+README.txt
+documentation/*.rst

Added: packages/aafigure/trunk/debian/examples
===================================================================
--- packages/aafigure/trunk/debian/examples	                        (rev 0)
+++ packages/aafigure/trunk/debian/examples	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,2 @@
+examples/*
+docutils/

Added: packages/aafigure/trunk/debian/manpages
===================================================================
--- packages/aafigure/trunk/debian/manpages	                        (rev 0)
+++ packages/aafigure/trunk/debian/manpages	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1 @@
+debian/*.1

Added: packages/aafigure/trunk/debian/patches/series
===================================================================
--- packages/aafigure/trunk/debian/patches/series	                        (rev 0)
+++ packages/aafigure/trunk/debian/patches/series	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1 @@
+ttf-liberation.patch

Added: packages/aafigure/trunk/debian/patches/ttf-liberation.patch
===================================================================
--- packages/aafigure/trunk/debian/patches/ttf-liberation.patch	                        (rev 0)
+++ packages/aafigure/trunk/debian/patches/ttf-liberation.patch	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,19 @@
+Use free Liberation fonts rather than Microsoft core fonts.
+
+diff --git a/aafigure/pil.py b/aafigure/pil.py
+--- a/aafigure/pil.py
++++ b/aafigure/pil.py
+@@ -35,10 +35,11 @@
+         else:
+             # XXX find a good way to locate font files... as the following does not
+             # work on all platforms
++            template = '/usr/share/fonts/truetype/ttf-liberation/Liberation%s.ttf'
+             if options['proportional']:
+-                self.font = 'Arial.ttf'
++                self.font = template % 'Sans-Regular'
+             else:
+-                self.font = 'Courier_New.ttf'
++                self.font = template % 'Mono-Regular'
+ 
+     def visit_image(self, aa_image):
+         """Process the given ASCIIArtFigure and draw the shapes in

Added: packages/aafigure/trunk/debian/rules
===================================================================
--- packages/aafigure/trunk/debian/rules	                        (rev 0)
+++ packages/aafigure/trunk/debian/rules	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+
+XSL = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
+XSLTPROC = xsltproc --nonet --param man.charmap.use.subset 0
+
+build: debian/aafigure.1
+
+%.1: %.xml
+	$(XSLTPROC) -o $(dir $(@)) $(XSL) $(<)
+
+clean:
+	dh --with quilt clean
+	rm -f debian/*.1
+	find \( -type d -name '*.egg-info' \) -or \( -type f -name '*.py[oc]' \) | xargs rm -Rf
+
+patch unpatch:
+	dh_quilt_$(@)
+
+install: build
+	dh --with quilt install 
+
+binary-indep: install
+	dh  --with quilt binary-indep
+
+binary-arch: install
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install
+
+# vim:ts=4 sw=4 noet


Property changes on: packages/aafigure/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/aafigure/trunk/debian/watch
===================================================================
--- packages/aafigure/trunk/debian/watch	                        (rev 0)
+++ packages/aafigure/trunk/debian/watch	2009-07-12 20:37:03 UTC (rev 9032)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/a/aafigure/aafigure-([0-9.]+).tar.gz




More information about the Python-modules-commits mailing list