From 136754a5f7e607e264779e2e6d9264ea6f305e51 Mon Sep 17 00:00:00 2001 From: Chris White Date: Tue, 9 Apr 2019 09:38:25 -0400 Subject: [PATCH] Changed min perl to 5.006 to see if it works Also added {META_MERGE}->{release_status} for trial releases --- Changes | 25 ++++++++++--------- Makefile.PL | 58 ++++++++++++++++++++++++++++---------------- lib/Getargs/Mixed.pm | 4 +-- 3 files changed, 53 insertions(+), 34 deletions(-) diff --git a/Changes b/Changes index c58bee1..dd09a7a 100644 --- a/Changes +++ b/Changes @@ -1,24 +1,27 @@ Revision history for Getargs-Mixed -1.05 2019-04-04 +1.05_1 2019-04-09 + Testing with 5.006 - no code changes other than the `use 5.006` line + +1.05 2019-04-04 Non-trial release of the code from 1.04_2 -1.04_2 2019-03-28 +1.04_2 2019-03-28 Better checking for invalid specifications; additional tests. -1.04_1 2019-02-23 +1.04_1 2019-02-23 Better handling of specifications that include multiple semicolons (which is unsupported). -1.04 2019-02-11 - Added OO interface (new()) and -undef_ok option. +1.04 2019-02-11 + Added OO interface (new()) and -undef_ok option. -1.03 2003-09-04 - Bugfixes and additional tests. +1.03 2003-09-04 + Bugfixes and additional tests. -1.02 2003-09-03 - Semicolon can come at the beginning of an argument name. +1.02 2003-09-03 + Semicolon can come at the beginning of an argument name. -1.01 2003-09-03 - Initial version, released on an unsuspecting world. +1.01 2003-09-03 + Initial version, released on an unsuspecting world. diff --git a/Makefile.PL b/Makefile.PL index 1a1accd..54bc58b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,16 +1,25 @@ -use 5.008; +use 5.006; use ExtUtils::MakeMaker; use File::Spec; my $source = File::Spec->catfile(qw(lib Getargs Mixed.pm)); - -# Module metadata {{{1 my $provides; -eval { +my $is_trial; + +# Fill in $provides {{{1 +eval { # ignore errors require Module::Metadata; $provides = Module::Metadata->provides(version => '2', dir => 'lib'); # Thanks to https://stackoverflow.com/a/28928985/2877364 by LEONT }; + +# }}}1 +# Fill in $is_trial {{{1 +eval { # ignore errors + my $version = MM->parse_version($source); + $is_trial = (index($version||'', '_') != -1); +}; +print "TRIAL version\n" if $is_trial; # }}}1 # Main options for EUMM @@ -22,31 +31,35 @@ my %opts = ( LICENSE => 'perl_5', AUTHOR => 'Andrew Sterling Hanenkamp ', - MIN_PERL_VERSION=> '5.008', + MIN_PERL_VERSION=> '5.006', PREREQ_PM => { - 'Carp' => '0', - 'Exporter' => '0', - 'strict' => '0', - 'warnings' => '0', + 'Carp' => '0', + 'Exporter' => '0', + 'strict' => '0', + 'warnings' => '0', }, CONFIGURE_REQUIRES => { - 'ExtUtils::MakeMaker' => '0', - 'File::Spec' => '3.2701', # for a Win32 bugfix + 'ExtUtils::MakeMaker' => '0', + 'File::Spec' => '3.2701', # for a Win32 bugfix }, + # Note: for the sake of ExtUtils::MakeMaker < 6.63_03, don't use + # TEST_REQUIRES. Put test requirements in PREREQ_PM instead. See, e.g., + # https://metacpan.org/source/CXW/List-AutoNumbered-0.000005/Makefile.PL#L202 + # for documentation links. META_MERGE => { - 'meta-spec' => { version => 2 }, + 'meta-spec' => { version => 2 }, - resources => { + resources => { # The code is on GitHub (but we'll take bug reports on RT, too) - bugtracker => { + bugtracker => { web => 'https://github.com/cxw42/Getargs-Mixed/issues', }, repository => { - type => 'git', - url => 'https://github.com/cxw42/Getargs-Mixed.git', - web => 'https://github.com/cxw42/Getargs-Mixed', + type => 'git', + url => 'https://github.com/cxw42/Getargs-Mixed.git', + web => 'https://github.com/cxw42/Getargs-Mixed', }, }, @@ -66,10 +79,13 @@ my %opts = ( }, }, - }, + }, # META_MERGE + + dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, + clean => { FILES => 'Getargs-Mixed-*' }, +); # %opts - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'Getargs-Mixed-*' }, -); +$opts{META_MERGE}->{release_status} = 'testing' if $is_trial; WriteMakefile(%opts); +# vi: set fdm=marker: # diff --git a/lib/Getargs/Mixed.pm b/lib/Getargs/Mixed.pm index fcd4948..2a09516 100644 --- a/lib/Getargs/Mixed.pm +++ b/lib/Getargs/Mixed.pm @@ -1,6 +1,6 @@ package Getargs::Mixed; -use 5.008; +use 5.006; use strict; use warnings; use Carp; @@ -11,7 +11,7 @@ our @ISA = qw(Exporter); our @EXPORT = qw( parameters ); -our $VERSION = '1.05'; +our $VERSION = '1.05_1'; =head1 NAME