--- aafigure-0.4.orig/debian/control +++ aafigure-0.4/debian/control @@ -0,0 +1,21 @@ +Source: aafigure +Section: python +Priority: optional +Maintainer: Jakub Wilk +Uploaders: Debian Python Modules Team +Vcs-Svn: svn://svn.debian.org/python-modules/packages/aafigure/trunk +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/aafigure/trunk/ +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. --- aafigure-0.4.orig/debian/README.source +++ aafigure-0.4/debian/README.source @@ -0,0 +1,9 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. Please see: + + /usr/share/doc/quilt/README.source + +for more information on how to apply the patches, modify patches, or +remove a patch. + --- aafigure-0.4.orig/debian/manpages +++ aafigure-0.4/debian/manpages @@ -0,0 +1 @@ +debian/*.1 --- aafigure-0.4.orig/debian/copyright +++ aafigure-0.4/debian/copyright @@ -0,0 +1,41 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=59 +Name: aafigure +Maintainer: Chris Liechti +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: docutils/setup-docutils-plugin.py +License: other + Author: Lea Wiemann + Author: Chris Liechti + Copyright: This file has been placed in the public domain. + +Files: debian/* +Copyright: 2009, Jakub Wilk +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. --- aafigure-0.4.orig/debian/examples +++ aafigure-0.4/debian/examples @@ -0,0 +1,2 @@ +examples/* +docutils/ --- aafigure-0.4.orig/debian/docs +++ aafigure-0.4/debian/docs @@ -0,0 +1,2 @@ +README.txt +documentation/*.rst --- aafigure-0.4.orig/debian/watch +++ aafigure-0.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pypi.python.org/packages/source/a/aafigure/aafigure-([0-9.]+).tar.gz --- aafigure-0.4.orig/debian/compat +++ aafigure-0.4/debian/compat @@ -0,0 +1 @@ +7 --- aafigure-0.4.orig/debian/rules +++ aafigure-0.4/debian/rules @@ -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: + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install + +# vim:ts=4 sw=4 noet --- aafigure-0.4.orig/debian/aafigure.xml +++ aafigure-0.4/debian/aafigure.xml @@ -0,0 +1,208 @@ + + + +]> + + + + + &p; manual + &p; + + Jakub Wilk + Wrote this manpage for the Debian system. +
ubanus@users.sf.net
+
+ + 2009 + Jakub Wilk + + + + This manual page was written for the Debian system (and 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, as published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public License Version 2 can be found in + /usr/share/common-licenses/GPL-2. + + +
+ + + &p; + 1 + &version; + + + + &p; + convert ASCII art to an image + + + + + &p; + option + input-file + + + &p; + + + + + + + + + + Description + + &p; is an ASCII art to image converter. + + + ASCII art figures can be parsed and output as SVG, PNG, PDF and more. + + + + + Options + + The program follows the usual GNU command line syntax, with long options starting with two dashes + (--). Mandatory or optional arguments to long options are also mandatory or optional for any + corresponding short options. + + + + + + + + Write output to file rather than to the standard output. + + + + + + + + + Use the provided output format. By default, output format is inferred from the output file name + extension. + + + The following formats are supported: SVG, PDF, PNG and any file format supported by Python Imaging + Library. + + + + + + + + + Enable debug outputs. + + + + + + + + + Disable horizontal fill detection. + + + + + + + + + Use the specified scale. + + + + + + + + + Use the specified aspect ratio. + + + + + + + + + For SVG output format, use the specified line width. + + + + + + + + Use a proportional font rather than a fixed-width font. + + + + + + + + + Use the specified foreground color. The default is black (#000000). + + + + + + + + + Use the specified fill color. The default is the foreground color. + + + + + + + + + Use the specified background color. The default is white (#ffffff). + + + + + + + + + Pass special options to backends. (For expert users only.) + + + + + + + Display help and exit. + + + + Display version information and exit. + + + + +
+ + --- aafigure-0.4.orig/debian/changelog +++ aafigure-0.4/debian/changelog @@ -0,0 +1,13 @@ +aafigure (0.4-2) unstable; urgency=low + + * debian/copyright: docutils/setup-docutils-plugin.py is in the public + domain; thanks to Charles Plessy for spotting that. + + -- Jakub Wilk Fri, 17 Jul 2009 19:04:12 +0200 + +aafigure (0.4-1) unstable; urgency=low + + * Initial release (closes: #531922). + * Use free Liberation fonts rather than Microsoft core fonts. + + -- Jakub Wilk Wed, 15 Jul 2009 20:28:33 +0200 --- aafigure-0.4.orig/debian/patches/ttf-liberation.patch +++ aafigure-0.4/debian/patches/ttf-liberation.patch @@ -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 --- aafigure-0.4.orig/debian/patches/series +++ aafigure-0.4/debian/patches/series @@ -0,0 +1 @@ +ttf-liberation.patch