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