--- shanty-3.orig/debian/compat +++ shanty-3/debian/compat @@ -0,0 +1 @@ +5 --- shanty-3.orig/debian/copyright +++ shanty-3/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by Jorge Salamero Sanz on +Mon, 3 Oct 2005 18:10:03 +0200. + +It was downloaded from + +Upstream Authors(s): + + Duncan Martin + +Copyright: + + Copyright (C) 2004 Duncan Martin + +License: + +Copyright (c) 2004, Duncan Martin (www.codebunny.org). All rights reserved. + +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 software 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 COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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. + +The Debian packaging is (C) 2007, Jorge Salamero Sanz and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- shanty-3.orig/debian/dirs +++ shanty-3/debian/dirs @@ -0,0 +1,2 @@ +/usr/bin +/usr/share/man/man1 --- shanty-3.orig/debian/shanty.1 +++ shanty-3/debian/shanty.1 @@ -0,0 +1,48 @@ +.TH "SHANTY" "1" "6 October 2006" "Duncan Martin" "Shanty" +.SH "NAME" +Shanty \- Makes a PostScript file from an image and some text. +.SH "SYNOPSIS" +.PP +\fBshanty -i \fIimage_file \fR[\fB-t \fItext_file\fR] [\fB-o \fIoutput_file\fR] [\fB-s \fIpaper_size\fR] [\fB-d \fIdensity\fR] [\fB-m \fImargin\fR] [\fB-b \fIbackground_color\fR] [\fB-x \fIpadding\fR] [\fB-n \fItitle\fR] [\fB-l \fIorientation\fR] [\fB-rtl\fR] [\fB-btt\fR] [\fB-f \fIfont_name\fR] [\fB-altgd\fR] +.SH "DESCRIPTION" +.PP +\fBShanty\fR takes a text file and an image (PNG or JPG) and creates a PostScript file where one pixel in the image becomes one character in the PostScript. +.SH "OPTIONS" +.IP "\fB-i\fP, \fB-image\fP" 10 +Name of the image to load in. JPG and PNG images are supported. This is the only compulsory field. +.IP "\fB-t\fP, \fB-text\fP" 10 +Name of the text file to load in, if omitted STDIN is used. +.IP "\fB-o\fP, \fB-output\fP" 10 +Name of the PostScript file to produce, if omitted STDOUT is used. +.IP "\fB-s\fP, \fB-size\fP" 10 +Size of the paper to work with. This field should be one of: "a0", "a2", "a3", "a4", "a5", "a6", "letter", "broadsheet", "ledger", "tabloid", "legal", "executive" and "36x36". Default is "a4". +.IP "\fB-d\fP, \fB-density\fP" 10 +Density of the text. Higher numbers are more dense, default is 1.4. +.IP "\fB-m\fP, \fB-margin\fP" 10 +The margins of the page in cm. Default is 1. +.IP "\fB-b\fP, \fB-background\fP" 10 +The colour of a backing rectangle to place behind the text. Colours are specified as "R,G,B" with each value between 0 and 255. "off" means no backing colour. Default is "off". +.IP "\fB-x\fP, \fB-p\fP, \fB-padding\fP" 10 +Density of the text. Higher numbers are more dense, default is 1.4. +.IP "\fB-n\fP, \fB-title\fP" 10 +The title of the output to write as meta-data in the PostScript file. Default is "Shanty output". +.IP "\fB-l\fP, \fB-orientation\fP" 10 +The orientation of the paper, can be "portrait", "landscape" or "auto". Default is "auto". +.IP "\fB-rtl\fP" 10 +Switch to right-to-left text. +.IP "\fB-btt\fP" 10 +Switch to bottom-to-top text. +.IP "\fB-f\fP, \fB-font\fP" 10 +Specify font. The font name specified must be visible to the not just make a font magically appear. Default is "Courier-Bold". +.IP "\fB-altgd\fP" 10 +If you have problems loading the GD library, try this switch. +.SH "HOMEPAGE" +.PP + +.SH "AUTHOR" +.PP +Duncan Martin +.SH "ACKNOWLEDGEMENTS" +.PP +Many thanks to DFB and contributors to +comp.lang.postscript. --- shanty-3.orig/debian/watch +++ shanty-3/debian/watch @@ -0,0 +1,3 @@ +# watch control file for uscan +version=3 +http://www.codebunny.org/coding/shanty/index.html download/shanty-(.*)\.tar\.gz --- shanty-3.orig/debian/rules +++ shanty-3/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +configure: configure-stamp + +configure-stamp: + dh_testdir + + touch $@ + +build: build-stamp + +build-stamp: configure patch + dh_testdir + + touch $@ + +clean: clean1 unpatch + +clean1: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -o 0 -g 0 -m 0755 shanty $(CURDIR)/debian/shanty/usr/bin/shanty + +binary-indep: install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs changelog.txt + dh_installman debian/shanty.1 + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- shanty-3.orig/debian/changelog +++ shanty-3/debian/changelog @@ -0,0 +1,30 @@ +shanty (3-4) unstable; urgency=low + + * Priority changed to extra. + * Added Homepage header. + * Updated Standards-Version. + * Added patch descriptions. + * Minor updates on debian/rules. + * Changed to address. + + -- Jorge Salamero Sanz Tue, 08 Jul 2008 12:51:38 +0200 + +shanty (3-3) unstable; urgency=low + + * Debian Policy update and a bit of clean-up + + -- Jorge Salamero Sanz Mon, 5 Mar 2007 21:21:06 +0100 + +shanty (3-2) unstable; urgency=low + + * Takes default papersize from /etc/papersize if exists, closes: #334151 + + -- Jorge Salamero Sanz Tue, 18 Oct 2005 01:43:13 +0200 + + +oshanty (3-1) unstable; urgency=low + + * Initial release, closes: #332412 + + -- Jorge Salamero Sanz Mon, 3 Oct 2005 18:10:03 +0200 + --- shanty-3.orig/debian/control +++ shanty-3/debian/control @@ -0,0 +1,17 @@ +Source: shanty +Section: graphics +Priority: extra +Maintainer: Jorge Salamero Sanz +Build-Depends: debhelper (>= 5), dpatch +Standards-Version: 3.8.0 +Homepage: http://www.codebunny.org/coding/shanty/ + +Package: shanty +Architecture: all +Depends: perl, libgd-gd2-perl | libgd-gd2-noxpm-perl +Description: Makes a whopping great postscript file from an image and a text + Shanty takes a text file and an image (PNG or JPG) and creates a PostScript + file where one pixel in the image becomes one character in the PostScript. + . + You can use it for making posters with the source and logo of your favourite + project or with the letter and a photograph of your favourite group. --- shanty-3.orig/debian/patches/00list +++ shanty-3/debian/patches/00list @@ -0,0 +1 @@ +40papersize.dpatch --- shanty-3.orig/debian/patches/40papersize.dpatch +++ shanty-3/debian/patches/40papersize.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 40papersize.dpatch by +## DP: use /etc/papersize as default + +@DPATCH@ +diff -urNad shanty-3~/shanty shanty-3/shanty +--- shanty-3~/shanty 2004-04-20 02:40:28.000000000 +0200 ++++ shanty-3/shanty 2005-10-18 01:37:11.000000000 +0200 +@@ -68,7 +68,14 @@ + # overridable defaults + my $altGd = 0; + my $bottomToTop = 0; +-my $chosenSize = "a4"; ++my $chosenSize; ++if(open(FILE,"/etc/papersize")){ ++ $chosenSize = ; ++ chomp($chosenSize); ++} ++else{ ++ $chosenSize = "a4"; ++} + my $density = 1.4; + my $font = "Courier-Bold"; + my $margin = 1;