--- libgd-gd2-perl-2.39.orig/debian/control.in
+++ libgd-gd2-perl-2.39/debian/control.in
@@ -0,0 +1,39 @@
+Source: libgd-gd2-perl
+Section: perl
+Priority: extra
+Maintainer: GD team <pkg-gd-devel@lists.alioth.debian.org>
+Uploaders: Jonas Smedegaard <dr@jones.dk>, Sean Finney <seanius@debian.org>
+Build-Depends: @cdbs@
+Vcs-Svn: svn://svn.debian.org/svn/pkg-gd/libgd-gd2-perl/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-gd/libgd-gd2-perl/trunk
+Standards-Version: 3.7.2
+Homepage: http://search.cpan.org/dist/GD/
+
+Package: libgd-gd2-perl
+Architecture: any
+Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends}
+Conflicts: libgd-noxpm-perl, libgd-perl, libgd-gd1-perl, libgd-gd1-noxpm-perl, libgd-gd2-noxpm-perl
+Description: Perl module wrapper for libgd - gd2 variant
+ This is a autoloadable interface module for libgd, a popular library
+ for creating and manipulating PNG files.  With this library you can
+ create PNG images on the fly or modify existing files.  Features
+ include:
+ .
+  * Lines, polygons, rectangles and arcs, both filled and unfilled
+  * Flood fills
+  * The use of arbitrary images as brushes and as tiled fill patterns
+  * Line styling (dashed lines and the like)
+  * Horizontal and vertical text rendering
+  * Support for transparency and interlacing
+  * Support for TrueType font rendering, via libfreetype.
+  * Support for spline curves, via GD::Polyline
+  * Support for symbolic font names, such as "helvetica:italic"
+  * Support for symbolic color names, such as "green", via GD::Simple
+  * Produces output in png, gif, jpeg and xbm format
+  * Produces output in svg format via GD::SVG.
+ .
+ Included with the example code is the perl script qd.pl with QuickDraw
+ routines for generating PICT2 files (used on Apple Macintosh).
+ .
+ This package is linked against libgd2, with Xpm (X pixmap)
+ support.
--- libgd-gd2-perl-2.39.orig/debian/rules
+++ libgd-gd2-perl-2.39/debian/rules
@@ -0,0 +1,41 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2003-2008 Jonas Smedegaard <dr@jones.dk>
+
+# NB! Local CDBS tweaks in use. More info in README.cdbs-tweaks
+include debian/cdbs/1/rules/upstream-tarball.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include debian/cdbs/1/rules/buildinfo.mk
+include debian/cdbs/1/rules/copyright-check.mk
+# Put perlmodule.mk last to dh_clean temporary files not in MANIFEST
+include /usr/share/cdbs/1/class/perlmodule.mk
+
+DEB_UPSTREAM_PACKAGE = GD
+DEB_UPSTREAM_URL = http://www.cpan.org/modules/by-module/GD
+DEB_UPSTREAM_TARBALL_MD5 = 5fdb681e5614236e7a952a07eabc8791
+
+DEB_INSTALL_DOCS_ALL += GD.html README.unix README.QUICKDRAW
+DEB_INSTALL_EXAMPLES_ALL = demos bdf_scripts qd.pl
+DEB_INSTALL_EXAMPLES_libgd-gd2-perl = $(DEB_INSTALL_EXAMPLES_ALL)
+DEB_INSTALL_EXAMPLES_libgd-gd2-noxpm-perl = $(DEB_INSTALL_EXAMPLES_ALL)
+
+common-post-build-arch::
+	pod2html --outfile=GD.html GD.pm
+
+# qd.pl and bdf2gdfont.pl are installed as example scripts instead
+common-binary-post-install-arch::
+	find "$(DEB_DESTDIR)" -type f -and '(' -name '*qd.pl*' -or -name '*bdf2gdfont.pl*' ')' -and -not -path '*/usr/share/doc/*' -exec rm -r '{}' ';'
+
+# Remove stray empty dirs (due to MakeMaker stupidity and above cleanup)
+common-binary-post-install-arch::
+	find "$(DEB_DESTDIR)" -empty -depth -exec rm -rf '{}' ';'
+
+# Manually clean leftovers
+clean::
+	rm -f GD.html pod2html*
+
+# Needed for by upstream build process
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), libgd2-xpm-dev (>= 2.0.28), libjpeg62-dev, libpng12-dev, libz-dev, libfreetype6-dev, libxpm-dev, libx11-dev
+
+# Fix double cdbs build-dependencies
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.39)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\)) *,* */, /g' -e 's/^ *, *//' -e 's/ *, *$$//')
--- libgd-gd2-perl-2.39.orig/debian/copyright
+++ libgd-gd2-perl-2.39/debian/copyright
@@ -0,0 +1,30 @@
+This is the perl module GD packaged for Debian GNU systems.
+
+Upstream source: http://www.cpan.org/modules/by-module/GD/
+
+Upstream author: Lincoln Stein <lstein@cshl.org>
+
+Copyright and licensing info, most files:
+
+The GD.pm interface is copyright 1995-2004, Lincoln D. Stein.  It is
+covered by the Perl "Artistic License", which allows for free usage
+and redistribution.  See the Artistic License in the Perl source
+package for details.
+
+
+
+Copyright and licensing info, bdf_scripts/bdf2gdfont.{pl,PLS}:
+
+Lincoln Stein <lstein@cshl.org>, heavily adapted from bdftogd from
+Jan Pazdziora <adelton@fi.muni.cz>.
+
+Copyright (c) 2004 Cold Spring Harbor Laboratory
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+
+
+On Debian GNU/Linux systems, the complete text of the Artistic Licence
+(the license used for Perl itself) can be found in
+`/usr/share/common-licenses/Artistic'.
--- libgd-gd2-perl-2.39.orig/debian/copyright_hints
+++ libgd-gd2-perl-2.39/debian/copyright_hints
@@ -0,0 +1,87 @@
+*No copyright* UNKNOWN []: ChangeLog
+	GD/Polyline.pm
+	GD/Simple.pm
+	MANIFEST
+	META.yml
+	Makefile.PL
+	README.QUICKDRAW
+	README.unix
+	bdf_scripts/README
+	bdf_scripts/bdf2gdfont.PLS
+	bdf_scripts/bdf2gdfont.pl
+	bdf_scripts/bdftogd
+	demos/brushes.pl
+	demos/copies.pl
+	demos/fills.pl
+	demos/font_list.png
+	demos/fonttest
+	demos/gd_example.cgi
+	demos/polys.pl
+	demos/shapes.pl
+	demos/tile.png
+	demos/transform.pl
+	demos/truetype_test
+	demos/ttf.pl
+	qd.pl
+	t/GD.t
+	t/Generic.ttf
+	t/Polyline.t
+	t/frog.jpg
+	t/frog.xpm
+	t/palettemap.png
+	t/test.out.1.png
+	t/test.out.10.gif
+	t/test.out.10.jpeg
+	t/test.out.10.png
+	t/test.out.10.png-2
+	t/test.out.10.png-3
+	t/test.out.2.gif
+	t/test.out.2.jpeg
+	t/test.out.2.png
+	t/test.out.2.png-1
+	t/test.out.3.gif
+	t/test.out.3.jpeg
+	t/test.out.3.png
+	t/test.out.3.png-1
+	t/test.out.4.gif
+	t/test.out.4.jpeg
+	t/test.out.4.png
+	t/test.out.4.png-1
+	t/test.out.4.png-2
+	t/test.out.5.gif
+	t/test.out.5.jpeg
+	t/test.out.5.png
+	t/test.out.5.png-1
+	t/test.out.6.gif
+	t/test.out.6.jpeg
+	t/test.out.6.png
+	t/test.out.6.png-1
+	t/test.out.7.gif
+	t/test.out.7.jpeg
+	t/test.out.7.png
+	t/test.out.7.png-1
+	t/test.out.8.gif
+	t/test.out.8.jpeg
+	t/test.out.8.png-1
+	t/test.out.8.png-2
+	t/test.out.8.png-3
+	t/test.out.8.png-4
+	t/test.out.8.png-5
+	t/test.out.9.jpeg
+	t/tile.gif
+	t/tile.jpeg
+	t/tile.png
+	typemap
+UNKNOWN [D<M6-qBTQ)E!7]: t/test.out.8.png
+	t/test.out.8.png-6
+*No copyright* GENERATED FILE []: demos/polyline.pl
+GENERATED FILE [1995-2005, Lincoln D. Stein. It is]: GD/Image.pm.PLS
+UNKNOWN [1995 - 1998, Lincoln D. Stein. See accompanying README file for]: GD.xs
+UNKNOWN [1995 Lincoln D. Stein. See accompanying README file for]: GD.pm
+UNKNOWN [1995-2004, Lincoln D. Stein. It is]: README
+UNKNOWN [1995-2005, Lincoln D. Stein. It is]: GD/Polygon.pm
+UNKNOWN [L+7hF;DflW[5<Elf[&~[8gWtYz74n\C7H9G7Ydl4!%DTqw?oI7xPFp`hFdE9=tr C|&@_$9W$d7de:il<ADl|a@}QeY*zYgWlD\\Px/|Pr,4HD\DqUDBy_mQTtx`@W\<dM,|iBfDwo9xL9J(c'\1\MIYs79*L12Pj<8U[ \b<(BGV!8thDVTwyT~Tz\l8%^w['%aA{Gl<\7T7=.pLp$$HRh<7T4,<TdH>G32(,00?rzzL P<"arE)Z2,^NA"B Of E%24*)ByvBdjGY@Ue{lZsx>A(R(l6Y<^Q;$E0@"SHx"T('8b.Sw#q6rc!Wcm*!1}~XNNxP+_K$I#v@"E1+?d'L0r!YGIBICLe/h+VBqU"cHe Xr' \' P!<L2+d[q=q@1vb1+G!7 B2Op||&d!N-O@:QCO!loL1F"|:*+c SDc7Z3S9dr"?04`| Ms=FA<IqI!.`p?lcC,F/P@?@<]: t/test.out.9.gif
+UNKNOWN [L+7hF;DflW[5<Elf[&~[8gWtYz74n\C7H9G7Ydl4!%DTqw?oI7xPFp`hFdE9=tr C|&@_$9W$d7de:il<ADl|a@}QeY*zYgWlD\\Px/|Pr,4HD\DqUDBy_mQTtx`@W\<dM,|iBfDwo9xL9J(c'\1\MIYs79*L12Pj<8U[ \b<(BGV!8thDVTwyT~Tz\l8%^w['%aA{Gl<\7T7=.pLp$$HRh<7T4,<TdH>G32(0IDATHmTXS>:U~$2hpgECb"nOhtZnSeb)86-s}}{~}<Zv}WIyV+y=|mV,lLaO / ^Vpsv@%"4V4pK`J%'0QrSX3I#RL&]: t/test.out.9.png-1
+UNKNOWN [L+7hF;DflW[5<Elf[&~[8gWtYz74n\C7H9G7Ydl4!%DTqw?oI7xPFp`hFdE9=tr C|&@_$9W$d7de:il<ADl|a@}QeY*zYgWlD\\Px/|Pr,4HD\DqUDBy_mQTtx`@W\<dM,|iBfDwo9xL9J(c'\1\MIYs79*L12Pj<8U[ \b<(BGV!8thDVTwyT~Tz\l8%^w['%aA{Gl<\7T7=.pLp$$HRh<7T4,<TdH>G32(0IDATmTXS>:U~$2hpgECb"nOhtZnSeb)86-s}}{~}<Zv}WIyV+y=|mV,lLaO / ^Vpsv@%"4V4pK`J%'0QrSX3I#RL&]: t/test.out.9.png-2
+UNKNOWN [L+7hF;DflW[5<Elf[&~[8gWtYz74n\C7H9G7Ydl4!%DTqw?oI7xPFp`hFdE9=tr C|&@_$9W$d7de:il<ADl|a@}QeY*zYgWlD\\Px/|Pr,4HD\DqUDBy_mQTtx`@W\<dM,|iBfDwo9xL9J(c'\1\MIYs79*L12Pj<8U[ \b<(BGV!8thDVTwyT~Tz\l8%^w['%aA{Gl<\7T7=.pLp$$HRh<7T4,<TdH>G32(0IDATxmTXS>:U~$2hpgECb"nOhtZnSeb)86-s}}{~}<Zv}WIyV+y=|mV,lLaO / ^Vpsv@%"4V4pK`J%'0QrSX3I#RL&]: t/test.out.9.png
+UNKNOWN [L+7hF;DflW[5<Elf[&~[8gWtYz74n\C7H9G7Ydl4!%DTqw?oI7xPFp`hFdE9=tr C|&@_$9W$d7de:il<ADl|a@}QeY*zYgWlD\\Px/|Pr,4HD\DqUDBy_mQTtx`@W\<dM,|iBfDwo9xL9J(c'\1\MIYs79*L12Pj<8U[ \b<(BGV!8thDVTwyT~Tz\l8%^w['%aA{Gl<\7T7=.pLp$$HRh<7T4,<TdH>G32(0IDATxmT\SvZ\O e/>J&-h> nVmKaVPKiYGYS~hKCGmC{?"^_/6{ch!J\Q]: t/test.out.10.png-1
--- libgd-gd2-perl-2.39.orig/debian/compat
+++ libgd-gd2-perl-2.39/debian/compat
@@ -0,0 +1 @@
+6
--- libgd-gd2-perl-2.39.orig/debian/control
+++ libgd-gd2-perl-2.39/debian/control
@@ -0,0 +1,39 @@
+Source: libgd-gd2-perl
+Section: perl
+Priority: extra
+Maintainer: GD team <pkg-gd-devel@lists.alioth.debian.org>
+Uploaders: Jonas Smedegaard <dr@jones.dk>, Sean Finney <seanius@debian.org>
+Build-Depends: cdbs (>= 0.4.39), debhelper (>= 5.0.44), dh-buildinfo, devscripts (>= 2.10.7), perl (>= 5.6.0-16), libgd2-xpm-dev (>= 2.0.28), libjpeg62-dev, libpng12-dev, libz-dev, libfreetype6-dev, libxpm-dev, libx11-dev
+Vcs-Svn: svn://svn.debian.org/svn/pkg-gd/libgd-gd2-perl/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-gd/libgd-gd2-perl/trunk
+Standards-Version: 3.7.2
+Homepage: http://search.cpan.org/dist/GD/
+
+Package: libgd-gd2-perl
+Architecture: any
+Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends}
+Conflicts: libgd-noxpm-perl, libgd-perl, libgd-gd1-perl, libgd-gd1-noxpm-perl, libgd-gd2-noxpm-perl
+Description: Perl module wrapper for libgd - gd2 variant
+ This is a autoloadable interface module for libgd, a popular library
+ for creating and manipulating PNG files.  With this library you can
+ create PNG images on the fly or modify existing files.  Features
+ include:
+ .
+  * Lines, polygons, rectangles and arcs, both filled and unfilled
+  * Flood fills
+  * The use of arbitrary images as brushes and as tiled fill patterns
+  * Line styling (dashed lines and the like)
+  * Horizontal and vertical text rendering
+  * Support for transparency and interlacing
+  * Support for TrueType font rendering, via libfreetype.
+  * Support for spline curves, via GD::Polyline
+  * Support for symbolic font names, such as "helvetica:italic"
+  * Support for symbolic color names, such as "green", via GD::Simple
+  * Produces output in png, gif, jpeg and xbm format
+  * Produces output in svg format via GD::SVG.
+ .
+ Included with the example code is the perl script qd.pl with QuickDraw
+ routines for generating PICT2 files (used on Apple Macintosh).
+ .
+ This package is linked against libgd2, with Xpm (X pixmap)
+ support.
--- libgd-gd2-perl-2.39.orig/debian/README.cdbs-tweaks
+++ libgd-gd2-perl-2.39/debian/README.cdbs-tweaks
@@ -0,0 +1,111 @@
+CDBS tweak
+==========
+
+CDBS is great. In some corner cases, however, some parts of CDBS
+sometimes needs a few tweaks to work optimally.
+
+This is a collection of such tweaks. The goal is for these tweaks to be
+absorbed into upstream CDBS. We just haven't found time yet to discuss
+them at the CDBS developers' mailinglist. And possible we do not all
+agree that the tweaks are so great - therefore this "staging area".
+
+If you found this file below debian/ subdir in a source package, most
+probably only a subset of the below mentioned tweaks are relevant and
+have been shipped with the package. The repository of all these tweaks
+is here: svn://svn.debian.org/build-common/people/js/overlay/
+
+Web access: http://svn.debian.org/wsvn/build-common/people/js/overlay/
+
+
+
+New buildinfo rule
+------------------
+
+See package description for "buildinfo" for more info.
+
+
+
+Improved support for multiple compilations
+------------------------------------------
+
+Create and clean builddir _after_ resolving per-package DEB_BUILDDIR.
+
+Honour per-package DEB_BUILDDIR in makefile and autotools classes.
+
+Support multiple build flavors in makefile and autotools classes.
+
+
+
+Various improvements to python-distutils class
+----------------------------------------------
+
+Use full path to Python interpreter (Python Policy section 1.3.2).
+
+Add CDBS_BUILD_DEPENDS to old policy method.
+
+Fix CDBS_BUILD_DEPENDS in new policy methods to only depend on debhelper
+when actually used.
+
+Fix DEB_PYTHON_SIMPLE_PACKAGES sometimes installed twice (and only one
+of them honouring DEB_PYTHON_COMPILE_VERSION).
+
+Unify install path using new DEB_PYTHON_DESTDIR.
+
+Quote install path.
+
+
+
+New python-autotools class
+--------------------------
+
+Handle autotools-based Python packaging.
+
+
+
+New python-sugar class
+----------------------
+
+Handle packaging of Sugar activities.
+
+
+
+New copyright-check rule
+------------------------
+
+Refuse to build if the source is found to contain different copyright
+info than earlier builds.
+
+
+
+New kernelpatches rule
+----------------------
+
+Small wrapper around dh-kpatches, taking care of build-dependencies too.
+
+
+
+New routines for handling upstream tarball
+------------------------------------------
+
+Rules and variables to help downloading, validating and repackaging
+upstream tarball.
+
+Implements the rules print-version and get-orig-source commonly used
+for group-maintained packages with Debian-specific patches maintained in
+SVN or some other VCS, and automated fetching virgin upstream tarball
+(possibly massaged after download e.g. to strip non-DFSG material).
+
+
+
+Support for custom BTS info
+---------------------------
+
+Include BTS control info found in debian/*.bts files, or alternatively
+redirect bug reports to the email address defined in DEB_BTS_EMAIL.
+
+
+
+New dict class
+--------------
+
+Rules for packaging ispell, aspell, myspell and wordlist dictionaries.
--- libgd-gd2-perl-2.39.orig/debian/changelog
+++ libgd-gd2-perl-2.39/debian/changelog
@@ -0,0 +1,306 @@
+libgd-gd2-perl (1:2.39-2) unstable; urgency=medium
+
+  * Invoke svn-upgrade (not uupdate) in debian/watch.
+  * Set urgency=medium as 1:2.39-2 included a FTBFS bugfix (similar to
+    bug#487066).
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sat, 28 Jun 2008 20:40:23 +0200
+
+libgd-gd2-perl (1:2.39-1) unstable; urgency=low
+
+  * New upstream release.
+  * Really advertise README.cdbs-tweaks as promised in -1.
+  * Add Vcs-Svn and Vcs-Browser fields to debian/control.
+  * Move Homepage to own field (from pseudo-field in long description).
+  * Update local cdbs tweaks:
+    + Major updates to copyright-check.mk, most importantly relax to
+      only warn by default.
+    + Various updates to update-tarball.mk, including changed wget
+      options to work with recent versions of wget.
+    + Drop buildcore.mk (set hints manually instead as needed).
+    + Cosmetic updates to README.cdbs-tweaks.
+  * Update debian/copyright-hints.
+  * Bump debhelper compatibility level to 6.
+  * Fix double cdbs build-dependencies in debian/rules.
+  * Semi-auto-update debian/control to update build-dependencies:
+      DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
+
+ -- Jonas Smedegaard <dr@jones.dk>  Fri, 27 Jun 2008 20:20:16 +0200
+
+libgd-gd2-perl (1:2.35-1) unstable; urgency=low
+
+  * New upstream release.
+  * Switch to team maintainance using Alioth project pkg-gd, and myself
+    and Sean Finney as uploaders. If you (yes, you!) want to help
+    packaging GD and related packages for Debian, please get in touch
+    with us at pgk-gd-devel@lists.alioth.debian.org .
+  * Update CDBS tweaks:
+    + Replace auto-update.mk with overloading buildcore.mk.
+    + Fix applying buildinfo only once.
+    + Fix race condition: check copyright strings in pre-build target
+      (not clean target). Closes: bug#424523, thanks to Lucas Nussbaum
+      for discovering and Patrick Winnertz for reporting.
+    + Add upstream-tarball.mk to implement get-orig-source target.
+    + Add debian/README.cdbs-tweaks and advertise it in debian/rules.
+  * Declare build-dependencies in debian/rules. Drop deprecated fallback
+    build-dependencies on old X11 packages.
+  * Semi-auto-update debian/control:
+      DEB_BUILD_OPTIONS=cdbs-autoupdate fakeroot debian/rules pre-build
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun, 12 Aug 2007 20:05:39 +0200
+
+libgd-gd2-perl (1:2.34-1) unstable; urgency=low
+
+  * New upstream release.
+  * Bump standards-version to 3.7.2 (no changes needed).
+  * Advertise search.cpan.org as Homepage (not "Website") in long
+    description.
+  * Bump watch file version and use uversionmangle to chop 3-digit minor
+    version into manageable pieces (2.041->2.04.1 is lower than 2.05).
+  * Add local cdbs snippet copyright-check.mk.
+  * Move cdbs auto-update activation to local snippet auto-update.mk.
+  * Update local cdbs snippet buildinfo.mk to use correct namespace.
+  * Quote a couple of install paths (even though cdbs itself does not
+    claim to support funny characters in builddir).
+  * Update debian/copyright, thanks to copyright-check.mk: bdf2gdfont.pl
+    has same license but different owner.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun, 16 Jul 2006 19:28:07 +0200
+
+libgd-gd2-perl (1:2.30-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun, 30 Oct 2005 13:13:09 +0100
+
+libgd-gd2-perl (1:2.28-1) unstable; urgency=low
+
+  * New upstream release.
+  * Raise to standards version 3.6.2 (no changes needed).
+  * Use cdbs auto-update feature (enabled only when environment includes
+    DEB_BUILD_OPTIONS=update).
+  * Auto-update build-dependencies (and manually rip out build-essential
+    buggily sneaking in).
+
+ -- Jonas Smedegaard <dr@jones.dk>  Wed, 14 Sep 2005 13:24:44 +0200
+
+libgd-gd2-perl (1:2.23-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sat, 26 Mar 2005 04:07:10 +0100
+
+libgd-gd2-perl (1:2.19-1) unstable; urgency=low
+
+  * New upstream release.
+    + Tests updated, which closes: Bug#282370 (thanks to Kurt Roeckx
+      <Q@ping.be>).
+  * Build-depend on libxpm-dev and libx11-dev, and on xlibs-dev only as
+    fallback.
+  * Improve debian/rules:
+    + Correctly install docs and example code.
+    + Invoke dh-buildinfo from cdbs snippet (included locally for now).
+    + Clean temporary files slightly more agressively.
+    + Install bdf2gdfont.pl only as example script (not below /usr/bin).
+    + Add more comments.
+    + Make it generic: same file for both libgd-gd2-noxpm-perl and
+      libgd-gd2-perl.
+  * Tighten build-dependency on debhelper to please linda.
+  * Rewrite long description: Mention some of the features and supported
+    graphics formats.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Fri, 26 Nov 2004 15:47:08 +0100
+
+libgd-gd2-perl (1:2.16-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Thu,  2 Sep 2004 11:56:50 +0200
+
+libgd-gd2-perl (1:2.15-1) unstable; urgency=low
+
+  * New upstream source.
+  * This release supports GIF (the LZW patent has expired). Closes:
+    Bug#260885 (thanks to Kilian Krause <kk@verfaction.de> - and sorry
+    for misunderstanding: I thought the bugreport related to the core
+    libgd2 library).
+  * Tighten dependency on libgd2 to ensure GIF support gets compiled in.
+  * Stop explicit setting configure options (libgd-config is used now).
+  * Cleaned up debian/copyright:
+    + Replace info contained in changelog with note on "GNU systems".
+    + Declare each topic more strictly.
+    + Mention "licensing info" together with copyright.
+  * Improved long descriptions:
+    + General introduction to GD in all (non-transitional) packages
+    + Website URL added
+  * Standards-Version: 3.6.1.
+  * Add more comments to debian/rules.
+  * Improve watch file:
+    + Add hint on usage
+    + Use web URL (instead of ftp)
+    + Tweak regex slightly
+
+ -- Jonas Smedegaard <dr@jones.dk>  Fri, 23 Jul 2004 23:21:50 +0200
+
+libgd-gd2-perl (1:2.12-1) unstable; urgency=low
+
+  * New upstream release. Closes: Bug#227307 (anyhow, thanks to Daniel
+    Schepler <schepler@math.berkeley.edu>, Bencsath Boldizsar
+    <boldi+dbug@mail2003.etl.hu>, and Marc 'HE' Brockschmidt
+    <marc@marcbrockschmidt.de> for their efforts).
+  * Add epoch to get back to sane version number again.
+  * Use "debian" as current version in watch file.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Fri, 16 Apr 2004 18:14:03 +0200
+
+libgd-gd2-perl (2.110-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fixed FTBFS failure caused by the new gd lib. Patch based on patch
+    by Bencsath Boldizsar <boldi+dbug@mail2003.etl.hu> (Thanks!). Closes:
+    #227307.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Fri, 19 Mar 2004 20:53:43 +0100
+
+libgd-gd2-perl (2.110-2) unstable; urgency=low
+
+  * This is not a native package. Source is now correctly upstream
+    tarball + diff.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun, 19 Oct 2003 23:09:40 +0200
+
+libgd-gd2-perl (2.110-1) unstable; urgency=low
+
+  * New upstream release.
+  * Update watch file.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun, 19 Oct 2003 22:56:19 +0200
+
+libgd-gd2-perl (2.070-2) unstable; urgency=low
+
+  * Rebuild against latest libpng12.
+  * Switch to packaging using cdbs.
+  * Hack watch file to avoid not-newer 2.041.
+  * Standards version 3.6.0 (no changes needed).
+  * Include (and build-depend on) dh_buildinfo.
+  * Add bdf_scripts as example files.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Thu, 24 Jul 2003 13:19:26 +0200
+
+libgd-gd2-perl (2.070-1) unstable; urgency=low
+
+  * New upstream release.
+  * Tighten build-dependency on libgd2 (required by new features in this
+    release).
+  * All tests succeed now compiled against libgd2 2.0.12, which closes:
+    Bug#191888 (thanks to Daniel Schepler <schepler@math.berkeley.edu>).
+  * Use new command-line options instead of patching Makefile.PL.
+  * Use debhelper v4. Tighten build-dependency, switch debhelper hint
+    from DH_COMPAT to debian/compat, and include ${misc:Depends}.
+  * Avoid including -g build option twice.
+  * Lower build-dependency on perl as described in perl-policy 3.3 to
+    allow building on woody.
+  * Bump up Standards-Version to 3.5.9.
+  * Change section to perl.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun,  4 May 2003 22:55:40 +0200
+
+libgd-gd2-perl (2.060-1) unstable; urgency=low
+
+  * New upstream release (append a zero to avoid using an epoch).
+  * Build-depend on libgd-gd2-perl at least version 2.0.5 to pass all
+    tests (and because it claims to require it ;-) ).
+  * Reenable test 8 (it is relaxed upstream now).
+  * Update Makefile.PL patch(es).
+  * Install qd.pl only as example.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun, 16 Feb 2003 04:30:52 +0100
+
+libgd-gd2-perl (2.041-3) unstable; urgency=low
+
+  * Claim to be in compliance with policy 3.5.8.0.
+    + Stricten build-dependency on debhelper to at least 3.0.18.
+    + Include debug info and respect noopt option at build time.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun,  1 Dec 2002 01:36:42 +0100
+
+libgd-gd2-perl (2.041-2) unstable; urgency=low
+
+  * Change wording in copyright about location of Artstic License to
+    silence lintian (it was in fact correct already as it was).
+
+ -- Jonas Smedegaard <dr@jones.dk>  Wed,  6 Nov 2002 05:03:17 +0100
+
+libgd-gd2-perl (2.041-1) unstable; urgency=low
+
+  * New upstream release.
+  * Remove free -> gd_free patch now corrected upstream.
+  * Enable all tests (except test 8, probably failing because of
+    Debian-specific FreeType patches) again - tests corrected/updated
+    upstream.
+  * Tighten build-depends on libgd2-xpm-dev to at least 2.0.4-4 (which
+    has a proper shlibs file and correct dependencies).
+  * Add watch file.
+  * Change build-depends to only the virtual libz-dev and libpng12-dev
+    (not their real counterparts as well).
+  * Tighten build-dependencies on perl and debhelper.
+  * Rewrite debian/rules inspired by newer dh-make-perl template:
+    + Credit where credit is due.
+    + Use debhelper v3
+    + Support DESTDIR and DEB_BUILD_OPTIONS debug.
+    + Separate install target.
+    + Remove unnecessary debhelper calls.
+  * Remove virtual package libgd-perl (now provided as a transitional
+    package by source-package libgd-perl (>= 1.41-3)).
+  * Mention in description that this package is built with Xpm support.
+  * Conflict on all other libgd-*-perl variants.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Wed,  6 Nov 2002 03:45:02 +0100
+
+libgd-gd2-perl (2.02-1) unstable; urgency=low
+
+  * New upstream release.
+  * Patch GD.xs to follow libgd2 2.0.4 free -> gdFree change, and build-
+    depend on libgd2-dev 2.0.4 or newer.
+  * Build-depend on new libpng12-0-dev and on zlib1g-dev, with fallback
+    to their virtual packages.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Tue, 29 Oct 2002 03:39:17 +0100
+
+libgd-gd2-perl (2.01-2) unstable; urgency=low
+
+  * Add build-dependency on perl (>= 5.8) to force building against new
+    perl on all platforms.
+  * Update debian/copyright (closes: #157587).
+
+ -- Jonas Smedegaard <dr@jones.dk>  Thu, 29 Aug 2002 06:11:31 +0200
+
+libgd-gd2-perl (2.01-1) unstable; urgency=low
+
+  * New upstream release.
+  * Change source URL to use cpan.org.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Mon, 19 Aug 2002 21:45:38 +0200
+
+libgd-gd2-perl (1.40-3) unstable; urgency=low
+
+  * Tighten ependency on libgd2-xpm-dev to ensure libpng3-only build
+    environment.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun, 18 Aug 2002 22:52:31 +0200
+
+libgd-gd2-perl (1.40-2) unstable; urgency=low
+
+  * Build against libpng3 (thanks to Junichi Uekawa for cleaning up the
+    mess finally!).
+  * Conflict with new package libgd-gd2-noxpm-perl.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Sun, 18 Aug 2002 18:47:29 +0200
+
+libgd-gd2-perl (1.40-1) unstable; urgency=low
+
+  * New variant of libgd-perl, built against libgd2 (Closes: #151240).
+  * disable tests 2, 3, 6 and 10 and get in touch with upstream...
+  * See libgd-perl for older changes.
+
+ -- Jonas Smedegaard <dr@jones.dk>  Tue, 23 Jul 2002 15:40:37 +0200
--- libgd-gd2-perl-2.39.orig/debian/watch
+++ libgd-gd2-perl-2.39/debian/watch
@@ -0,0 +1,4 @@
+# Run the "uscan" command to check for upstream updates and more.
+version=3
+opts="uversionmangle=s/(\d)\.(\d{2})(\d+)/$1.$2.$3/" \
+	http://www.cpan.org/modules/by-module/GD/GD-([\d+\.]+)\.tar\.gz debian svn-upgrade
--- libgd-gd2-perl-2.39.orig/debian/cdbs/1/rules/upstream-tarball.mk
+++ libgd-gd2-perl-2.39/debian/cdbs/1/rules/upstream-tarball.mk
@@ -0,0 +1,139 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2007-2008 Jonas Smedegaard <dr@jones.dk>
+# Description: Convenience rules for dealing with upstream tarballs
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_upstream_tarball
+_cdbs_rules_upstream_tarball := 1
+
+include $(_cdbs_rules_path)/buildvars.mk$(_cdbs_makefile_suffix)
+
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), cdbs (>= 0.4.39)
+
+# Prefix for upstream location of all upstream tarballs (mandatory!)
+#DEB_UPSTREAM_URL = 
+
+DEB_UPSTREAM_PACKAGE = $(DEB_SOURCE_PACKAGE)
+DEB_UPSTREAM_TARBALL_VERSION = $(if $(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE)),$(DEB_UPSTREAM_VERSION:$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG)=),$(DEB_UPSTREAM_VERSION))
+DEB_UPSTREAM_TARBALL_EXTENSION = tar.gz
+# Checksum to ensure integrity of downloadeds using get-orig-source (optional)
+#DEB_UPSTREAM_TARBALL_MD5 = 
+
+DEB_UPSTREAM_WORKDIR = ../tarballs
+
+# Perl regexp to change locally used string into that in upstream URL and srcdir
+#DEB_UPSTREAM_TARBALL_VERSION_MANGLE
+cdbs_upstream_tarball_version_mangled = $(if $(strip $(DEB_UPSTREAM_TARBALL_VERSION_MANGLE)),$(shell echo '$(DEB_UPSTREAM_TARBALL_VERSION)' | perl -pe '$(DEB_UPSTREAM_TARBALL_VERSION_MANGLE)'),$(DEB_UPSTREAM_TARBALL_VERSION))
+
+# Base filename (without extension) as used in upstream URL
+DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_PACKAGE)-$(cdbs_upstream_tarball_version_mangled)
+
+# Base directory within tarball
+DEB_UPSTREAM_TARBALL_SRCDIR = $(DEB_UPSTREAM_PACKAGE)-$(cdbs_upstream_tarball_version_mangled)
+
+# Space-delimited list of directories and files to strip (optional)
+#DEB_UPSTREAM_REPACKAGE_EXCLUDE = CVS .cvsignore doc/rfc*.txt doc/draft*.txt
+DEB_UPSTREAM_REPACKAGE_TAG = dfsg
+DEB_UPSTREAM_REPACKAGE_DELIMITER = ~
+
+cdbs_upstream_tarball = $(DEB_UPSTREAM_TARBALL_BASENAME).$(DEB_UPSTREAM_TARBALL_EXTENSION)
+cdbs_upstream_local_tarball = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION).orig.$(if $(findstring $(DEB_UPSTREAM_TARBALL_EXTENSION),tgz),tar.gz,$(DEB_UPSTREAM_TARBALL_EXTENSION))
+cdbs_upstream_repackaged_basename = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION)$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG).orig
+cdbs_upstream_uncompressed_tarball = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION).orig.tar
+
+# # These variables are deprecated
+_cdbs_deprecated_vars += DEB_UPSTREAM_TARBALL DEB_UPSTREAM_LOCAL_TARBALL DEB_UPSTREAM_REPACKAGE_TARBALL
+_cdbs_deprecated_vars += DEB_UPSTREAM_REPACKAGE_EXCLUDES
+DEB_UPSTREAM_REPACKAGE_EXCLUDE += $(DEB_UPSTREAM_REPACKAGE_EXCLUDES)
+
+print-version:
+	@@echo "Debian version:          $(DEB_VERSION)"
+	@@echo "Upstream version:        $(DEB_UPSTREAM_TARBALL_VERSION)"
+
+get-orig-source:
+	@@dh_testdir
+	@@mkdir -p "$(DEB_UPSTREAM_WORKDIR)"
+
+	@if [ ! -s "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ] ; then \
+		if [ -f "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ] ; then \
+			rm "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ; \
+		fi ; \
+		echo "Downloading $(cdbs_upstream_local_tarball) from $(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball) ..." ; \
+		wget -nv -T10 -t3 -O "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" "$(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball)" ; \
+	else \
+		echo "Upstream source tarball have been already downloaded: $(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ; \
+	fi
+
+	@md5current=`md5sum "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" | sed -e 's/ .*//'`; \
+	if [ -n "$(DEB_UPSTREAM_TARBALL_MD5)" ] ; then \
+		if [ "$$md5current" != "$(DEB_UPSTREAM_TARBALL_MD5)" ] ; then \
+			echo "Expecting upstream tarball md5sum $(DEB_UPSTREAM_TARBALL_MD5), but $$md5current found" ; \
+			echo "Upstream tarball md5sum is NOT trusted! Possible upstream tarball forge!" ; \
+			echo "Purging downloaded file. Try new download." ; \
+			rm -f "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ; \
+			false ; \
+		else \
+			echo "Upstream tarball is trusted!" ; \
+		fi; \
+	else \
+		echo "Upstream tarball NOT trusted (current md5sum is $$md5current)!" ; \
+	fi
+
+# TODO: Rewrite using make variables like cdbs_upstream_unpack_cmd and
+# DEB_UPSTREAM_SUPPORTED_COMPRESSIONS (recent dpkg supports bz2)
+	@untar="tar -x -C"; \
+	case "$(cdbs_upstream_local_tarball)" in \
+	    *.tar.gz)  unpack="gunzip -c";; \
+	    *.tar.bz2) unpack="bunzip2 -c";    uncompress="bunzip2";; \
+	    *.tar.Z)   unpack="uncompress -c"; uncompress="uncompress";; \
+	    *.zip)     unpack="unzip -q";      uncompress="false";       untar="-d"; nopipe="true";; \
+	    *.tar)     unpack="cat";           uncompress="true";; \
+	    *) echo "Unknown extension for upstream tarball $(cdbs_upstream_local_tarball)"; false;; \
+	esac && \
+	if [ -n "$(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE))" ] || [ "$$uncompress" = "false" ]; then \
+		echo "Repackaging tarball ..." && \
+		mkdir -p "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" && \
+		if [ -n "$$nopipe" ]; then \
+			$$unpack "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" \
+				$$untar "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" $(patsubst %,--exclude='%',$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)); \
+		else \
+			$$unpack "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" \
+				| $$untar "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" $(patsubst %,--exclude='%',$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)); \
+		fi && \
+		if [ "$(DEB_UPSTREAM_TARBALL_SRCDIR)" != "$(cdbs_upstream_repackaged_basename)" ]; then \
+			mv -T "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)/$(DEB_UPSTREAM_TARBALL_SRCDIR)" "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)/$(cdbs_upstream_repackaged_basename)"; \
+		fi && \
+		if [ -n "$(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE))" ]; then \
+			GZIP=-9 tar -b1 -czf "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_repackaged_basename).tar.gz" -C "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" "$(cdbs_upstream_repackaged_basename)"; \
+		else \
+			GZIP=-9 tar -b1 -czf "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_uncompressed_tarball).gz" -C "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" "$(cdbs_upstream_repackaged_basename)"; \
+		fi && \
+		echo "Cleaning up" && \
+		rm -rf "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)"; \
+	elif [ -n "$$uncompress" ]; then \
+		echo "Recompressing tarball ..." && \
+		$$uncompress "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)"; \
+		gzip -9 "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_uncompressed_tarball)"; \
+	fi
+
+DEB_PHONY_RULES += print-version get-orig-source
+
+endif
--- libgd-gd2-perl-2.39.orig/debian/cdbs/1/rules/copyright-check.mk
+++ libgd-gd2-perl-2.39/debian/cdbs/1/rules/copyright-check.mk
@@ -0,0 +1,97 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2005-2008 Jonas Smedegaard <dr@jones.dk>
+# Description: Check for changes to copyright notices in source
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_copyright-check
+_cdbs_rules_copyright-check := 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), devscripts (>= 2.10.7)
+
+# Set to yes to fail on changed/new hints are found
+#DEB_COPYRIGHT_CHECK_STRICT := yes
+
+# Single regular expression for files to include or ignore
+DEB_COPYRIGHT_CHECK_REGEX = .*
+DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(debian/.*|(.*/)?config\.(guess|sub|rpath)(\..*)?)$
+
+pre-build:: debian/stamp-copyright-check
+
+debian/stamp-copyright-check:
+	@echo 'Scanning upstream source for new/changed copyright notices (except debian subdir!)...'
+
+# Perl in shell in make requires extra care:
+#  * Single-quoting ('...') protects against shell expansion
+#  * Double-dollar ($$) expands to plain dollar ($) in make
+	licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \
+		| LC_ALL=C perl -e \
+	'$$n=0; while (<>) {'\
+	'	s/[^[:print:]]//g;'\
+	'	if (/^([^:\s][^:]+):[\s]+(\S.*?)\s*$$/) {'\
+	'		$$files[$$n]{name}=$$1;'\
+	'		$$files[$$n]{license}=$$2;'\
+	'	};'\
+	'	if (/^\s*\[Copyright:\s*(\S.*?)\s*\]/) {'\
+	'		$$files[$$n]{copyright}=$$1;'\
+	'	};'\
+	'	/^$$/ and $$n++;'\
+	'};'\
+	'foreach $$file (@files) {'\
+	'	$$file->{license} =~ s/\s*\(with incorrect FSF address\)//;'\
+	'	$$file->{license} =~ s/\s+\(v([^)]+) or later\)/-$$1+/;'\
+	'	$$file->{copyright} =~ s/(?<=(\b\d{4}))(?{$$y=$$^N})\s*[,-]\s*((??{$$y+1}))\b/-$$2/g;'\
+	'	$$file->{copyright} =~ s/(?<=\b\d{4})\s*-\s*\d{4}(?=\s*-\s*(\d{4})\b)//g;'\
+	'	$$pattern = "$$file->{license} [$$file->{copyright}]";'\
+	'	push @{ $$patternfiles{"$$pattern"} }, $$file->{name};'\
+	'};'\
+	'foreach $$pattern ( sort {'\
+	'			@{$$patternfiles{$$b}} <=> @{$$patternfiles{$$a}}'\
+	'			||'\
+	'			$$a cmp $$b'\
+	'		} keys %patternfiles ) {'\
+	'	print "$$pattern: ", join("\n\t", sort @{ $$patternfiles{$$pattern} }), "\n";'\
+	'};'\
+		> debian/copyright_newhints
+	@patterncount="`cat debian/copyright_newhints | sed 's/^[^:]*://' | LANG=C sort -u | grep . -c -`"; \
+		echo "Found $$patterncount different copyright and licensing combinations."
+	@if [ ! -f debian/copyright_hints ]; then touch debian/copyright_hints; fi
+	@newstrings=`diff -u debian/copyright_hints debian/copyright_newhints | sed '1,2d' | egrep '^\+' - | sed 's/^\+//'`; \
+		if [ -n "$$newstrings" ]; then \
+			echo "$(if $(DEB_COPYRIGHT_CHECK_STRICT),ERROR,WARNING): The following new or changed copyright notices discovered:"; \
+			echo; \
+			echo "$$newstrings"; \
+			echo; \
+			echo "To fix the situation please do the following:"; \
+			echo "  1) Investigate the above changes and update debian/copyright as needed"; \
+			echo "  2) Replace debian/copyright_hints with debian/copyright_newhints"; \
+			$(if $(DEB_COPYRIGHT_CHECK_STRICT),exit 1,:); \
+		else \
+			echo 'No new copyright notices found - assuming no news is good news...'; \
+			rm -f debian/copyright_newhints; \
+		fi
+	touch $@
+
+clean::
+	rm -f debian/stamp-copyright-check
+
+endif
--- libgd-gd2-perl-2.39.orig/debian/cdbs/1/rules/buildinfo.mk
+++ libgd-gd2-perl-2.39/debian/cdbs/1/rules/buildinfo.mk
@@ -0,0 +1,40 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2004-2006 Jonas Smedegaard <dr@jones.dk>
+# Description: Generate and include build information
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_buildinfo
+_cdbs_rules_buildinfo = 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), dh-buildinfo
+
+common-install-arch common-install-indep:: debian/stamp-buildinfo
+
+debian/stamp-buildinfo:
+	dh_buildinfo
+	touch debian/stamp-buildinfo
+
+clean::
+	rm -f debian/stamp-buildinfo
+
+endif
