]> git.vpit.fr Git - perl/modules/IPC-MorseSignals.git/blob - Makefile.PL
Give an explicit value to dynamic_config
[perl/modules/IPC-MorseSignals.git] / Makefile.PL
1 use strict;
2 use warnings;
3 use ExtUtils::MakeMaker;
4
5 BEGIN {
6  eval { require Config };
7  die 'OS unsupported' if $@;
8  Config->import(qw/%Config/);
9 }   
10     
11 my %sigs;
12 @sigs{split ' ', $Config{sig_name}} = ();
13     
14 for (qw/USR1 USR2/) {
15  print "Checking if you have SIG$_... ";
16  unless (exists $sigs{$_}) {
17   print "no\n";
18   die 'OS unsupported';
19  }
20  print "yes\n";
21 }
22
23 my $dist = 'IPC-MorseSignals';
24
25 my %META = (
26  configure_requires => {
27   'Config'              => 0,
28   'ExtUtils::MakeMaker' => 0,
29  },
30  build_requires => {
31   'utf8'                => 0,
32   'Config'              => 0,
33   'Data::Dumper'        => 0,
34   'Exporter'            => 0,
35   'ExtUtils::MakeMaker' => 0,
36   'POSIX'               => 0,
37   'Test::More'          => 0,
38  },
39  dynamic_config => 1,
40  resources => {
41   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
42   homepage   => "http://search.cpan.org/dist/$dist/",
43   license    => 'http://dev.perl.org/licenses/',
44   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
45  },
46 );
47
48 WriteMakefile(
49     NAME             => 'IPC::MorseSignals',
50     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
51     LICENSE          => 'perl',
52     VERSION_FROM     => 'lib/IPC/MorseSignals.pm',
53     ABSTRACT_FROM    => 'lib/IPC/MorseSignals.pm',
54     PL_FILES         => {},
55     PREREQ_PM        => {
56         'Bit::MorseSignals' => 0.05,
57         'Carp'              => 0,
58         'POSIX'             => 0,
59         'Time::HiRes'       => 0,
60         'base'              => 0,
61     },
62     MIN_PERL_VERSION => 5.008,
63     META_MERGE       => \%META,
64     dist             => {
65         PREOP    => 'pod2text lib/IPC/MorseSignals.pm > $(DISTVNAME)/README',
66         COMPRESS => 'gzip -9f', SUFFIX => 'gz',
67     },
68     clean            => {
69         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
70     },
71 );