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