r21991 - in /trunk/libtext-pdf-perl: debian/changelog debian/control debian/dirs debian/docs debian/patches/ debian/patches/scripts-pod.patch debian/patches/series debian/rules scripts/pdfbklt scripts/pdfrevert scripts/pdfstamp
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Fri Jun 20 18:39:01 UTC 2008
Author: gregoa
Date: Fri Jun 20 18:39:01 2008
New Revision: 21991
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=21991
Log:
* Refresh debian/rules, no functional changes.
* Split changes to scripts into a patch; add quilt framework.
* Remove unneeded debian/{docs,dirs}.
* Fix permissions of examples.
Added:
trunk/libtext-pdf-perl/debian/patches/
trunk/libtext-pdf-perl/debian/patches/scripts-pod.patch
trunk/libtext-pdf-perl/debian/patches/series
Removed:
trunk/libtext-pdf-perl/debian/dirs
trunk/libtext-pdf-perl/debian/docs
Modified:
trunk/libtext-pdf-perl/debian/changelog
trunk/libtext-pdf-perl/debian/control
trunk/libtext-pdf-perl/debian/rules
trunk/libtext-pdf-perl/scripts/pdfbklt
trunk/libtext-pdf-perl/scripts/pdfrevert
trunk/libtext-pdf-perl/scripts/pdfstamp
Modified: trunk/libtext-pdf-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-pdf-perl/debian/changelog?rev=21991&op=diff
==============================================================================
--- trunk/libtext-pdf-perl/debian/changelog (original)
+++ trunk/libtext-pdf-perl/debian/changelog Fri Jun 20 18:39:01 2008
@@ -5,6 +5,10 @@
Vcs-Svn fields.
* debian/watch: use dist-based URL.
* debian/rules: delete /usr/lib/perl5 only if it exists.
+ * Refresh debian/rules, no functional changes.
+ * Split changes to scripts into a patch; add quilt framework.
+ * Remove unneeded debian/{docs,dirs}.
+ * Fix permissions of examples.
-- gregor herrmann <gregor+debian at comodo.priv.at> Tue, 09 Oct 2007 22:32:37 +0200
Modified: trunk/libtext-pdf-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-pdf-perl/debian/control?rev=21991&op=diff
==============================================================================
--- trunk/libtext-pdf-perl/debian/control (original)
+++ trunk/libtext-pdf-perl/debian/control Fri Jun 20 18:39:01 2008
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Gunnar Wolf <gwolf at debian.org>, gregor herrmann <gregor+debian at comodo.priv.at>
-Build-Depends: debhelper (>= 5.0.0)
+Build-Depends: debhelper (>= 5.0.0), quilt (>= 0.40)
Build-Depends-Indep: perl (>=5.8.0), perl-modules, libcompress-zlib-perl
Standards-Version: 3.7.2
Homepage: http://search.cpan.org/dist/Text-PDF/
Added: trunk/libtext-pdf-perl/debian/patches/scripts-pod.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-pdf-perl/debian/patches/scripts-pod.patch?rev=21991&op=file
==============================================================================
--- trunk/libtext-pdf-perl/debian/patches/scripts-pod.patch (added)
+++ trunk/libtext-pdf-perl/debian/patches/scripts-pod.patch Fri Jun 20 18:39:01 2008
@@ -1,0 +1,91 @@
+--- libtext-pdf-perl-0.29a.orig/scripts/pdfbklt
++++ libtext-pdf-perl-0.29a/scripts/pdfbklt
+@@ -1,5 +1,36 @@
+ #!/usr/bin/perl
+
++=head1 NAME
++
++pdfbklt.plx - Turns documents into booklets
++
++=head1 DESCRIPTION
++
++Converts a PDF file into a booklet. It edits the pdffile to add the
++ modifications at the end.
++
++=head1 SYNOPSIS
++
++ PDFBKLT [-b num/size] [-p num] [-q] [-r] [-s size] pdffile
++
++ -b num/size Specifies which page contains the output page size details [1]
++ or gives the dimensions of the page in pts (x;y) or A4,ltr,lgl,A5
++ -l Flag to indicate linear scaling
++ -p num Specifies the number of pages on the output page (1, 2, 4) [2]
++ If 4, can be 4s to flip on short edge
++ -q Quiet (no on screen messages)
++ -r Rotates the output (-p 2 rotates automatically, -r rotates back)
++ -s size Specifies the the location of the actual text on a page:
++ 2 half page right and left (big gutter)
++ 2r half page always on right
++ 2l half page always on left
++ 4 1/4 page right and left bottom (very big gutter)
++ 4t 1/4 page right and left top (very big gutter)
++ 4r/4l/4rt/4lt 1/4 page always on right or left bottom or top
++ location as a single string: minx,miny,maxx,maxy in pts
++
++=cut
++
+ use Text::PDF::File;
+ use Text::PDF::Utils;
+ use Getopt::Std;
+--- libtext-pdf-perl-0.29a.orig/scripts/pdfrevert
++++ libtext-pdf-perl-0.29a/scripts/pdfrevert
+@@ -1,5 +1,20 @@
+ #!/usr/bin/perl
+
++=head1 NAME
++
++pdfrevert.plx - Removes one layer of edits from a PDF file
++
++=head1 DESCRIPTION
++
++Removes one layer of changes to a PDF file, trying to maximise the
++ size of the output file (to account for linearised PDF).
++
++=head1 SYNOPSIS
++
++ PDFREVERT infile
++
++=cut
++
+ use Text::PDF::File;
+
+ unless (defined $ARGV[0])
+--- libtext-pdf-perl-0.29a.orig/scripts/pdfstamp
++++ libtext-pdf-perl-0.29a/scripts/pdfstamp
+@@ -1,5 +1,26 @@
+ #!/usr/bin/perl
+
++=head1 NAME
++
++pdfstamp.plx - Adds the given text in a given fonts, size to all pages
++ at given location
++
++=head1 DESCRIPTION
++
++Adds the given string to the infile .pdf file at the given location,
++ font and size.
++
++=head1 SYNOPSIS
++
++ pdfstamp [-f font] [-l locx,locy] [-s size] infile string
++
++ -f font Font name from the standard fonts [Helvetica]
++ -l locx,locy Location in points from bottom left of page [0,0]
++ -s size Font size to print at [11]
++ -t ttfile TrueType font file to use (instead of -f)
++
++=cut
++
+ use Text::PDF::File;
+ use Text::PDF::SFont;
+ use Text::PDF::Utils;
Added: trunk/libtext-pdf-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-pdf-perl/debian/patches/series?rev=21991&op=file
==============================================================================
--- trunk/libtext-pdf-perl/debian/patches/series (added)
+++ trunk/libtext-pdf-perl/debian/patches/series Fri Jun 20 18:39:01 2008
@@ -1,0 +1,1 @@
+scripts-pod.patch
Modified: trunk/libtext-pdf-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-pdf-perl/debian/rules?rev=21991&op=diff
==============================================================================
--- trunk/libtext-pdf-perl/debian/rules (original)
+++ trunk/libtext-pdf-perl/debian/rules Fri Jun 20 18:39:01 2008
@@ -1,52 +1,65 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
+# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
+# be used freely wherever it is useful.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-PACKAGE= libtext-pdf-perl
-config = INSTALLDIRS=vendor
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
+include /usr/share/quilt/quilt.make
-build:
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
dh_testdir
- # Add here commands to compile the package.
- perl Makefile.PL $(config)
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
$(MAKE)
-clean:
+ $(MAKE) test
+ touch $@
+
+clean: unpatch
dh_testdir
dh_testroot
- dh_clean
- [ ! -f Makefile ] || $(MAKE) distclean
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
-install:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ $(RM) $(TMP)/usr/share/perl5/Text/PDF/changes
+ [ ! -d $(TMP)/usr/lib/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/lib/perl5
+ touch $@
- $(MAKE) test
- $(MAKE) install PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr
- [ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5
- -rm $(CURDIR)/debian/$(PACKAGE)/usr/share/perl5/Text/PDF/changes
+binary-arch:
+# We have nothing to do here for an architecture-independent package
-binary-arch:;
binary-indep: build install
dh_testdir
dh_testroot
- dh_installdocs
- dh_installman
+ dh_installexamples examples/*
+ chmod 644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
+ dh_installdocs readme.txt
dh_installchangelogs lib/Text/PDF/changes
- dh_link
- dh_strip
+ dh_perl
dh_compress
dh_fixperms
dh_installdeb
- dh_perl
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install
Modified: trunk/libtext-pdf-perl/scripts/pdfbklt
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-pdf-perl/scripts/pdfbklt?rev=21991&op=diff
==============================================================================
--- trunk/libtext-pdf-perl/scripts/pdfbklt (original)
+++ trunk/libtext-pdf-perl/scripts/pdfbklt Fri Jun 20 18:39:01 2008
@@ -1,35 +1,4 @@
#!/usr/bin/perl
-
-=head1 NAME
-
-pdfbklt.plx - Turns documents into booklets
-
-=head1 DESCRIPTION
-
-Converts a PDF file into a booklet. It edits the pdffile to add the
- modifications at the end.
-
-=head1 SYNOPSIS
-
- PDFBKLT [-b num/size] [-p num] [-q] [-r] [-s size] pdffile
-
- -b num/size Specifies which page contains the output page size details [1]
- or gives the dimensions of the page in pts (x;y) or A4,ltr,lgl,A5
- -l Flag to indicate linear scaling
- -p num Specifies the number of pages on the output page (1, 2, 4) [2]
- If 4, can be 4s to flip on short edge
- -q Quiet (no on screen messages)
- -r Rotates the output (-p 2 rotates automatically, -r rotates back)
- -s size Specifies the the location of the actual text on a page:
- 2 half page right and left (big gutter)
- 2r half page always on right
- 2l half page always on left
- 4 1/4 page right and left bottom (very big gutter)
- 4t 1/4 page right and left top (very big gutter)
- 4r/4l/4rt/4lt 1/4 page always on right or left bottom or top
- location as a single string: minx,miny,maxx,maxy in pts
-
-=cut
use Text::PDF::File;
use Text::PDF::Utils;
Modified: trunk/libtext-pdf-perl/scripts/pdfrevert
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-pdf-perl/scripts/pdfrevert?rev=21991&op=diff
==============================================================================
--- trunk/libtext-pdf-perl/scripts/pdfrevert (original)
+++ trunk/libtext-pdf-perl/scripts/pdfrevert Fri Jun 20 18:39:01 2008
@@ -1,19 +1,4 @@
#!/usr/bin/perl
-
-=head1 NAME
-
-pdfrevert.plx - Removes one layer of edits from a PDF file
-
-=head1 DESCRIPTION
-
-Removes one layer of changes to a PDF file, trying to maximise the
- size of the output file (to account for linearised PDF).
-
-=head1 SYNOPSIS
-
- PDFREVERT infile
-
-=cut
use Text::PDF::File;
Modified: trunk/libtext-pdf-perl/scripts/pdfstamp
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-pdf-perl/scripts/pdfstamp?rev=21991&op=diff
==============================================================================
--- trunk/libtext-pdf-perl/scripts/pdfstamp (original)
+++ trunk/libtext-pdf-perl/scripts/pdfstamp Fri Jun 20 18:39:01 2008
@@ -1,25 +1,4 @@
#!/usr/bin/perl
-
-=head1 NAME
-
-pdfstamp.plx - Adds the given text in a given fonts, size to all pages
- at given location
-
-=head1 DESCRIPTION
-
-Adds the given string to the infile .pdf file at the given location,
- font and size.
-
-=head1 SYNOPSIS
-
- pdfstamp [-f font] [-l locx,locy] [-s size] infile string
-
- -f font Font name from the standard fonts [Helvetica]
- -l locx,locy Location in points from bottom left of page [0,0]
- -s size Font size to print at [11]
- -t ttfile TrueType font file to use (instead of -f)
-
-=cut
use Text::PDF::File;
use Text::PDF::SFont;
More information about the Pkg-perl-cvs-commits
mailing list