]> git.vpit.fr Git - perl/modules/indirect.git/blob - Makefile.PL
Importing indirect-0.01.tar.gz
[perl/modules/indirect.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  'IPC::Cmd'            => 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          => 'indirect',
25     AUTHOR        => 'Vincent Pit <perl@profvince.com>',
26     LICENSE       => 'perl',
27     VERSION_FROM  => 'lib/indirect.pm',
28     ABSTRACT_FROM => 'lib/indirect.pm',
29     PL_FILES      => {},
30     PREREQ_PM     => {
31         'XSLoader' => 0,
32     },
33     dist          => {
34         PREOP      => 'pod2text lib/indirect.pm > $(DISTVNAME)/README; '
35                       . build_req,
36         COMPRESS   => 'gzip -9f', SUFFIX => 'gz'
37     },
38     clean         => { FILES => 'indirect-* *.gcov *.gcda *.gcno cover_db' },
39 );