]> git.vpit.fr Git - perl/modules/Bit-MorseSignals.git/blob - Makefile.PL
Importing Bit-MorseSignals-0.05.tar.gz
[perl/modules/Bit-MorseSignals.git] / Makefile.PL
1 use strict;
2 use warnings;
3 use ExtUtils::MakeMaker;
4
5 my $BUILD_REQUIRES = {
6  'utf8'                => 0,
7  'ExtUtils::MakeMaker' => 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          => 'Bit::MorseSignals',
23     AUTHOR        => 'Vincent Pit <perl@profvince.com>',
24     LICENSE       => 'perl',
25     VERSION_FROM  => 'lib/Bit/MorseSignals.pm',
26     ABSTRACT_FROM => 'lib/Bit/MorseSignals.pm',
27     PL_FILES      => {},
28     PREREQ_PM     => {
29         'Carp'     => 0,
30         'Encode'   => 0,
31         'Exporter' => 0,
32         'Storable' => 0,
33     },
34     dist          => { 
35         PREOP      => 'pod2text lib/Bit/MorseSignals.pm > $(DISTVNAME)/README; '
36                       . build_req,
37         COMPRESS   => 'gzip -9f', SUFFIX => 'gz'
38     },
39     clean         => { FILES => 'Bit-MorseSignals-*' },
40 );