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