Package: dh-make-perl Version: 0.23 Severity: wishlist Tags: patch So, I figured it would be nice to have an option to just append something to the version string (defaulting to -1) rather than having to keep track of the CPAN version. So I wrote this patch, which should take care of that.
Please ignore the system information. Yeah, my desktop is Ubuntu :-) -- System Information: Debian Release: testing/unstable APT prefers dapper-updates APT policy: (500, 'dapper-updates'), (500, 'dapper-security'), (500, 'dapper') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-26-386 Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8) Versions of packages dh-make-perl depends on: ii debhelper 5.0.7ubuntu13 helper programs for debian/rules ii dpkg-dev 1.13.11ubuntu6 package building tools for Debian ii fakeroot 1.5.6ubuntu2 Gives a fake root environment ii libmodule-depends-perl 0.10-1 identify the dependencies of a dis ii libyaml-perl 0.39-1 YAML Ain't Markup Language (tm) ii make 3.80+3.81.b4-1 The GNU version of the "make" util ii perl 5.8.7-10ubuntu1 Larry Wall's Practical Extraction ii perl-modules [libpod-par 5.8.7-10ubuntu1 Core Perl modules Versions of packages dh-make-perl recommends: ii apt-file 2.0.7ubuntu5 APT package searching utility -- c ii libmodule-build-perl 0.26-1 Subclassable and make-independant -- no debconf information
--- /usr/bin/dh-make-perl 2006-08-29 04:01:02.000000000 +0200 +++ /usr/local/bin/dh-make-perl 2006-09-12 10:46:32.624366278 +0200 @@ -160,9 +160,10 @@ # $version is the version from the perl module itself $version, # $pkgversion is the resulting version of the package: User's - # --version=s or "$version-1" - $pkgversion, + # --version=s or "$version-1" $appversion is just the appendix. + $pkgversion, $desc, $longdesc, $copyright, $author); +my $appversion = '-1'; my ($extrasfields, $extrapfields); my (@docs, $changelog, @args); my ($cpanmodule, $cpanplusmodule, $cpanmirror, $build, $install, $dbflags, @@ -180,6 +181,7 @@ "desc=s" => \$desc, "arch=s" => \$arch, "version=s" => \$pkgversion, + "append-to-version=s" => \$appversion, "help" => sub {die "\n"}, # disabled: see build_package() "dbflags=s" => \$dbflags, @@ -204,7 +206,7 @@ $meta = process_meta("$maindir/META.yml") if (-f "$maindir/META.yml"); ($pkgname, $version) = extract_basic(); if (! defined $pkgversion) { - $pkgversion = $version . "-1"; + $pkgversion = $version . $appversion; } move ($tarball, dirname($tarball) . "/${pkgname}_${version}.orig.tar.gz") if ($tarball && $tarball =~ /(?:\.tar\.gz|\.tgz)$/); my $module_build = (-f "$maindir/Build.PL") ? "Module-Build" : "MakeMaker"; @@ -894,6 +896,10 @@ Specifies the version of the resulting package. +=item B<--append-to-version> I<VERSION> + +Specifies a string to append to the CPAN version of the package. Defaults to '-1'. + =item B<--cpan-mirror> I<MIRROR> Specifies a CPAN site to use as mirror.
pgpoFxyuQoMJa.pgp
Description: PGP signature