use 5.006002; # For 'our', at the very least. use strict; use warnings; use lib qw{ inc }; use Config; use ExtUtils::MakeMaker qw{WriteMakefile prompt}; use FileHandle; use Getopt::Std; use My::Module::Meta; my $meta = My::Module::Meta->new(); my %opt; getopts ('ny', \%opt) or die <new ("<$fni") or die <new (">$fno") or die <) {print $fho $_} } @clean_files = @exe_files = map {"[.bin]$_.com"} @exe_files; } else { @exe_files = map {"bin/$_"} @exe_files; } } ##my $vers = $] >= 5.008 ? '-5.8' : ''; my $vers = ''; (my $mmv = ExtUtils::MakeMaker->VERSION) =~ s/_//g; my %attr = ( ## (MM->can ('signature_target') ? (SIGN => 1) : ()), NAME => 'Games::Sudoku::General', VERSION_FROM => 'lib/Games/Sudoku/General.pm', PREREQ_PM => $meta->requires(), PL_FILES => {}, # Prevent old MakeMaker from running Build.PL EXE_FILES => \@exe_files, # 'linkext' => {LINKTYPE => ''}, 'dist' => {COMPRESS => 'gzip', SUFFIX => 'gz'}, realclean => {FILES => join ' ', @clean_files}, AUTHOR => 'Tom Wyant (wyant at cpan dot org)', ABSTRACT => 'Solve Sudoku and related puzzles', BINARY_LOCATION => "$Config{archname}$vers/Games-Sudoku-General.tar.gz", ); $mmv >= 6.31 and $attr{LICENSE} = 'perl'; if ( $mmv >= 6.4501 ) { $attr{META_ADD} = { no_index => { directory => [ qw{ inc t xt } ], }, }; $attr{META_MERGE} = { resources => { bugtracker => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Games-Sudoku-General', license => 'http://dev.perl.org/licenses/', }, }; } $mmv >= 6.4701 and $attr{MIN_PERL_VERSION} = $meta->requires_perl(); $mmv >= 6.5501 and $attr{BUILD_REQUIRES} = $meta->build_requires() or $mmv >= 6.4501 and $attr{META_MERGE}{build_requires} = $meta->build_requires(); WriteMakefile(%attr);