[SCM] Debian packaging of Module-Build-Tiny CPAN distribution branch, master, updated. 98d81cf77a7200cd764a28e5913c0bdb9f67db53
gregor herrmann
gregoa at debian.org
Fri Jun 28 17:33:50 UTC 2013
The following commit has been merged in the master branch:
commit 98d81cf77a7200cd764a28e5913c0bdb9f67db53
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Jun 28 19:32:51 2013 +0200
add (disabled) patch option-parsing.patch to accept old-style key=value
Git-Dch: Ignore
diff --git a/debian/changelog b/debian/changelog
index adc82db..0b8c781 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,10 @@ libmodule-build-tiny-perl (0.023-1) UNRELEASED; urgency=low
https://rt.cpan.org/Public/Bug/Display.html?id=85006
https://rt.cpan.org/Public/Bug/Display.html?id=86240
+ option-parsing.patch is a quick ugly implementation of accepting key=value
+ options; disabled for now, let's see what upstream sys in CPAN RT#85006
+ if there is a change or we enable the patch, d/rules can be reverted
+
* Initial release (closes: #714382).
-- gregor herrmann <gregoa at debian.org> Fri, 28 Jun 2013 16:38:14 +0200
diff --git a/debian/patches/option-parsing.patch b/debian/patches/option-parsing.patch
new file mode 100644
index 0000000..62d1d0b
--- /dev/null
+++ b/debian/patches/option-parsing.patch
@@ -0,0 +1,20 @@
+Description: also accept key=value command line options
+Origin: vendor
+Bug: https://rt.cpan.org/Ticket/Display.html?id=85006
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-06-28
+
+--- a/lib/Module/Build/Tiny.pm
++++ b/lib/Module/Build/Tiny.pm
+@@ -112,6 +112,10 @@
+ my @env = defined $ENV{PERL_MB_OPT} ? split_like_shell($ENV{PERL_MB_OPT}) : ();
+ unshift @ARGV, map { @{$_} } $bpl, \@env;
+ GetOptions(\my %opt, qw/install_base=s install_path=s% installdirs=s destdir=s prefix=s config=s% uninst:1 verbose:1 dry_run:1 pureperl-only:1 create_packlist=i/);
++ foreach (@ARGV) {
++ my ( $key, $value ) = split('=');
++ $opt{$key} = $value if defined $value;
++ }
+ $_ = detildefy($_) for grep { defined } @opt{qw/install_base destdir prefix/}, values %{ $opt{install_path} };
+ @opt{'config', 'meta'} = (ExtUtils::Config->new($opt{config}), get_meta());
+ $actions{$action}->(%opt, install_paths => ExtUtils::InstallPaths->new(%opt, dist_name => $opt{meta}->name));
diff --git a/debian/patches/series b/debian/patches/series
index ad39c44..9a016db 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
manpage-section-mismatch.patch
+#option-parsing.patch
--
Debian packaging of Module-Build-Tiny CPAN distribution
More information about the Pkg-perl-cvs-commits
mailing list