]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blob - Makefile.PL
Add slice syntax to localize_{elem,delete}
[perl/modules/Scope-Upper.git] / Makefile.PL
1 use strict;
2 use warnings;
3 use ExtUtils::MakeMaker;
4
5 my $BUILD_REQUIRES = {
6  'ExtUtils::MakeMaker' => 0,
7  'Test::More'          => 0,
8 };
9
10 sub build_req {
11  my $tometa = ' >> $(DISTVNAME)/META.yml;';
12  my $build_req = 'echo "build_requires:" ' . $tometa;
13  foreach my $mod ( sort { lc $a cmp lc $b } keys %$BUILD_REQUIRES ) {
14   my $ver = $BUILD_REQUIRES->{$mod};
15   $build_req .= sprintf 'echo "    %-30s %s" %s', "$mod:", $ver, $tometa;
16  }
17  return $build_req;
18 }       
19
20 WriteMakefile(
21     NAME                => 'Scope::Upper',
22     AUTHOR              => 'Vincent Pit <perl@profvince.com>',
23     LICENSE             => 'perl',
24     VERSION_FROM        => 'lib/Scope/Upper.pm',
25     ABSTRACT_FROM       => 'lib/Scope/Upper.pm',
26     PL_FILES            => {},
27     PREREQ_PM => {
28         'Exporter' => 0,
29         'XSLoader' => 0,
30     },
31     dist          => {
32         PREOP      => 'pod2text lib/Scope/Upper.pm > $(DISTVNAME)/README; '
33                       . build_req,
34         COMPRESS   => 'gzip -9f', SUFFIX => 'gz'
35     },
36     clean         => { FILES => 'Scope-Upper-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt' },
37 );