1use strict; 2use warnings; 3use v5.002; # not using our in the CPAN release 4use ExtUtils::MakeMaker; 5 6my @extras = (); 7my $EUMM_VER = $ExtUtils::MakeMaker::VERSION; 8my @AUTHORS = ( 9 'Reini Urban <rurban@cpan.org>', 10 'Steve Peters <steve@fisharerojo.org>', 11 'Matthew Musgrove <mr.muskrat@gmail.com>', 12 'Karl Williamson <khw@cpan.org>', 13 'Brian Fraser <fraserbn@gmail.com>', 14 'Mark Gardner <mjgardner@cpan.org>', 15 ); 16 17push @extras, 18 AUTHOR => join(", ", @AUTHORS) 19 if $EUMM_VER gt '5.4301' and $EUMM_VER lt '6.57_02'; 20push @extras, 21 AUTHOR => [ @AUTHORS ] 22 if $EUMM_VER ge '6.57_02'; 23push @extras, SIGN => 1 24 if $EUMM_VER ge '6.18'; 25push @extras, LICENSE => 'perl_5' 26 if $EUMM_VER ge '6.31' and $EUMM_VER le '6.46'; 27push @extras, 28 META_MERGE => { 29 'meta-spec' => { version => 2 }, 30 resources => { 31 # TODO: 26 old issues still open at RT 32 # https://rt.cpan.org/Public/Dist/Display.html?Name=Net-Ping 33 bugtracker => 'https://github.com/Perl/perl5/issues', 34 repository => { 35 type => 'git', 36 url => 'https://github.com/Perl/perl5.git', 37 web => 'https://github.com/Perl/perl5', 38 }, 39 license => [ 'http://dev.perl.org/licenses/' ], 40 }, 41 release_status => 'stable', 42 } 43 if $EUMM_VER gt '6.46'; 44 45WriteMakefile( 46 NAME => 'Net::Ping', 47 VERSION_FROM => 'lib/Net/Ping.pm', 48 ABSTRACT_FROM => 'lib/Net/Ping.pm', 49 PREREQ_PM => { 50 'Socket' => '2.007', 51 'Test::More' => 0, 52 'Time::HiRes' => 0, 53 }, 54 TEST_REQUIRES => { 55 'Test::Pod' => '1.22', 56 'Test::More' => 0, 57 }, 58 INSTALLDIRS => ( $] < 5.011 ? 'perl' : 'site' ), 59 clean => { FILES => 'Net-Ping-*' }, 60 @extras 61); 62 63package MY; 64 65sub depend { 66 " 67README : lib/Net/Ping.pm 68 pod2text lib/Net/Ping.pm > README 69release : dist 70 git tag \$(VERSION) 71 cpan-upload \$(DISTVNAME).tar\$(SUFFIX) 72 git push 73 git push --tags 74" 75} 76