diff options
author | Colin Watson <cjwatson@debian.org> | 2018-07-10 12:40:02 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-07-10 12:40:02 +0100 |
commit | 1d835b8b356755ac79796555bb7615b091ca0cc0 (patch) | |
tree | 8929eb53265786ba5940d9004fb0ea15810ca44b | |
parent | 4559deefdfc34d0b031e1bd0342dcc8f48d7d64b (diff) |
Import libgetargs-long-perl_1.1011.orig.tar.gz
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | LICENSE | 6 | ||||
-rw-r--r-- | META.yml | 4 | ||||
-rw-r--r-- | inc/Module/Install.pm | 35 | ||||
-rw-r--r-- | inc/Module/Install/AutoLicense.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/AutomatedTester.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/Base.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/Bugtracker.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/Can.pm | 13 | ||||
-rw-r--r-- | inc/Module/Install/Fetch.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/Include.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/Makefile.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/Metadata.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/Win32.pm | 2 | ||||
-rw-r--r-- | inc/Module/Install/WriteAll.pm | 2 | ||||
-rw-r--r-- | lib/Getargs/Long.pm | 2 |
16 files changed, 36 insertions, 47 deletions
@@ -1,3 +1,6 @@ +Version 1.1011: +- Updating META.yml + Version 1.1010: - Trying once again to fix the compile test on windows @@ -1,4 +1,4 @@ -This software is copyright (c) 2015 by David Coppit. +This software is copyright (c) 2018 by David Coppit. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2015 by David Coppit. +This software is Copyright (c) 2018 by David Coppit. This is free software, licensed under: @@ -272,7 +272,7 @@ That's all there is to it! --- The Artistic License 1.0 --- -This software is Copyright (c) 2015 by David Coppit. +This software is Copyright (c) 2018 by David Coppit. This is free software, licensed under: @@ -12,7 +12,7 @@ configure_requires: URI::Escape: 0 distribution_type: module dynamic_config: 1 -generated_by: 'Module::Install version 1.14' +generated_by: 'Module::Install version 1.19' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -32,4 +32,4 @@ resources: homepage: https://github.com/coppit/getargs-long/ license: http://dev.perl.org/licenses/ repository: https://github.com/coppit/getargs-long.git -version: '1.1007' +version: '1.1011' diff --git a/inc/Module/Install.pm b/inc/Module/Install.pm index ff767fa..7ba98c2 100644 --- a/inc/Module/Install.pm +++ b/inc/Module/Install.pm @@ -31,7 +31,7 @@ BEGIN { # This is not enforced yet, but will be some time in the next few # releases once we can make sure it won't clash with custom # Module::Install extensions. - $VERSION = '1.14'; + $VERSION = '1.19'; # Storage for the pseudo-singleton $MAIN = undef; @@ -244,6 +244,8 @@ sub new { } return $args{_self} if $args{_self}; + $base_path = VMS::Filespec::unixify($base_path) if $^O eq 'VMS'; + $args{dispatch} ||= 'Admin'; $args{prefix} ||= 'inc'; $args{author} ||= ($^O eq 'VMS' ? '_author' : '.author'); @@ -322,7 +324,7 @@ sub find_extensions { my ($self, $path) = @_; my @found; - File::Find::find( sub { + File::Find::find( {no_chdir => 1, wanted => sub { my $file = $File::Find::name; return unless $file =~ m!^\Q$path\E/(.+)\.pm\Z!is; my $subpath = $1; @@ -336,7 +338,7 @@ sub find_extensions { # correctly. Otherwise, root through the file to locate the case-preserved # version of the package name. if ( $subpath eq lc($subpath) || $subpath eq uc($subpath) ) { - my $content = Module::Install::_read($subpath . '.pm'); + my $content = Module::Install::_read($File::Find::name); my $in_pod = 0; foreach ( split /\n/, $content ) { $in_pod = 1 if /^=\w/; @@ -351,7 +353,7 @@ sub find_extensions { } push @found, [ $file, $pkg ]; - }, $path ) if -d $path; + }}, $path ) if -d $path; @found; } @@ -373,8 +375,6 @@ sub _caller { return $call; } -# Done in evals to avoid confusing Perl::MinimumVersion -eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; sub _read { local *FH; open( FH, '<', $_[0] ) or die "open($_[0]): $!"; @@ -383,16 +383,6 @@ sub _read { close FH or die "close($_[0]): $!"; return $string; } -END_NEW -sub _read { - local *FH; - open( FH, "< $_[0]" ) or die "open($_[0]): $!"; - binmode FH; - my $string = do { local $/; <FH> }; - close FH or die "close($_[0]): $!"; - return $string; -} -END_OLD sub _readperl { my $string = Module::Install::_read($_[0]); @@ -413,8 +403,6 @@ sub _readpod { return $string; } -# Done in evals to avoid confusing Perl::MinimumVersion -eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; sub _write { local *FH; open( FH, '>', $_[0] ) or die "open($_[0]): $!"; @@ -424,17 +412,6 @@ sub _write { } close FH or die "close($_[0]): $!"; } -END_NEW -sub _write { - local *FH; - open( FH, "> $_[0]" ) or die "open($_[0]): $!"; - binmode FH; - foreach ( 1 .. $#_ ) { - print FH $_[$_] or die "print($_[0]): $!"; - } - close FH or die "close($_[0]): $!"; -} -END_OLD # _version is for processing module versions (eg, 1.03_05) not # Perl versions (eg, 5.8.1). diff --git a/inc/Module/Install/AutoLicense.pm b/inc/Module/Install/AutoLicense.pm index 97cc1fd..ecd4452 100644 --- a/inc/Module/Install/AutoLicense.pm +++ b/inc/Module/Install/AutoLicense.pm @@ -6,7 +6,7 @@ use warnings; use base qw(Module::Install::Base); use vars qw($VERSION); -$VERSION = '0.08'; +$VERSION = '0.10'; my %licenses = ( perl => 'Software::License::Perl_5', diff --git a/inc/Module/Install/AutomatedTester.pm b/inc/Module/Install/AutomatedTester.pm index 3a12e6f..324c5b2 100644 --- a/inc/Module/Install/AutomatedTester.pm +++ b/inc/Module/Install/AutomatedTester.pm @@ -6,7 +6,7 @@ use warnings; use base qw(Module::Install::Base); use vars qw($VERSION); -$VERSION = '0.02'; +$VERSION = '0.04'; sub auto_tester { return if $Module::Install::AUTHOR; diff --git a/inc/Module/Install/Base.pm b/inc/Module/Install/Base.pm index 4206347..9fa42c2 100644 --- a/inc/Module/Install/Base.pm +++ b/inc/Module/Install/Base.pm @@ -4,7 +4,7 @@ package Module::Install::Base; use strict 'vars'; use vars qw{$VERSION}; BEGIN { - $VERSION = '1.14'; + $VERSION = '1.19'; } # Suspend handler for "redefined" warnings diff --git a/inc/Module/Install/Bugtracker.pm b/inc/Module/Install/Bugtracker.pm index 1d077d8..cd839af 100644 --- a/inc/Module/Install/Bugtracker.pm +++ b/inc/Module/Install/Bugtracker.pm @@ -6,7 +6,7 @@ use warnings; use URI::Escape; use base qw(Module::Install::Base); -our $VERSION = sprintf "%d.%02d%02d", q/0.3.0/ =~ /(\d+)/g; +our $VERSION = sprintf "%d.%02d%02d", q/0.3.3/ =~ /(\d+)/g; sub auto_set_bugtracker { my $self = shift; diff --git a/inc/Module/Install/Can.pm b/inc/Module/Install/Can.pm index 9929b1b..d65c753 100644 --- a/inc/Module/Install/Can.pm +++ b/inc/Module/Install/Can.pm @@ -8,7 +8,7 @@ use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.14'; + $VERSION = '1.19'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } @@ -121,6 +121,15 @@ END_C # Can we locate a (the) C compiler sub can_cc { my $self = shift; + + if ($^O eq 'VMS') { + require ExtUtils::CBuilder; + my $builder = ExtUtils::CBuilder->new( + quiet => 1, + ); + return $builder->have_compiler; + } + my @chunks = split(/ /, $Config::Config{cc}) or return; # $Config{cc} may contain args; try to find out the program part @@ -151,4 +160,4 @@ if ( $^O eq 'cygwin' ) { __END__ -#line 236 +#line 245 diff --git a/inc/Module/Install/Fetch.pm b/inc/Module/Install/Fetch.pm index 3d8de76..3072b08 100644 --- a/inc/Module/Install/Fetch.pm +++ b/inc/Module/Install/Fetch.pm @@ -6,7 +6,7 @@ use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.14'; + $VERSION = '1.19'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff --git a/inc/Module/Install/Include.pm b/inc/Module/Install/Include.pm index f274f87..13fdcd0 100644 --- a/inc/Module/Install/Include.pm +++ b/inc/Module/Install/Include.pm @@ -6,7 +6,7 @@ use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.14'; + $VERSION = '1.19'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff --git a/inc/Module/Install/Makefile.pm b/inc/Module/Install/Makefile.pm index 66993af..13a4464 100644 --- a/inc/Module/Install/Makefile.pm +++ b/inc/Module/Install/Makefile.pm @@ -8,7 +8,7 @@ use Fcntl qw/:flock :seek/; use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.14'; + $VERSION = '1.19'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff --git a/inc/Module/Install/Metadata.pm b/inc/Module/Install/Metadata.pm index e547fa0..11bf971 100644 --- a/inc/Module/Install/Metadata.pm +++ b/inc/Module/Install/Metadata.pm @@ -6,7 +6,7 @@ use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.14'; + $VERSION = '1.19'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff --git a/inc/Module/Install/Win32.pm b/inc/Module/Install/Win32.pm index 9706e5f..f7aa615 100644 --- a/inc/Module/Install/Win32.pm +++ b/inc/Module/Install/Win32.pm @@ -6,7 +6,7 @@ use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.14'; + $VERSION = '1.19'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff --git a/inc/Module/Install/WriteAll.pm b/inc/Module/Install/WriteAll.pm index dbedc00..2db861a 100644 --- a/inc/Module/Install/WriteAll.pm +++ b/inc/Module/Install/WriteAll.pm @@ -6,7 +6,7 @@ use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.14'; + $VERSION = '1.19'; @ISA = qw{Module::Install::Base}; $ISCORE = 1; } diff --git a/lib/Getargs/Long.pm b/lib/Getargs/Long.pm index 48b55cb..a8b3155 100644 --- a/lib/Getargs/Long.pm +++ b/lib/Getargs/Long.pm @@ -6,7 +6,7 @@ use 5.005; package Getargs::Long; use vars qw($VERSION @ISA @EXPORT); -$VERSION = sprintf "%d.%02d%02d", q/1.10.10/ =~ /(\d+)/g; +$VERSION = sprintf "%d.%02d%02d", q/1.10.11/ =~ /(\d+)/g; BEGIN { |