]> git.vpit.fr Git - perl/modules/IPC-MorseSignals.git/blob - Makefile.PL
2366dc91f07aca84da3b1ec4c5320bc98ce0aa76
[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 "You need the Config module to install this distribution, that's what happened" 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 "Installation stops right here,";
19  }
20  print "yes\n";
21 }
22
23 WriteMakefile(
24     NAME                => 'IPC::MorseSignals',
25     AUTHOR              => 'Vincent Pit <perl@profvince.com>',
26     LICENSE             => 'perl',
27     VERSION_FROM        => 'lib/IPC/MorseSignals.pm',
28     ABSTRACT_FROM       => 'lib/IPC/MorseSignals.pm',
29     PL_FILES            => {},
30     PREREQ_PM => {
31         'Carp'        => 0,
32         'Exporter'    => 0,
33         'POSIX'       => 0,
34         'Test::More'  => 0,
35         'Time::HiRes' => 0,
36         'utf8'        => 0,
37     },
38     dist                => {
39         PREOP => 'pod2text lib/IPC/MorseSignals.pm > $(DISTVNAME)/README',
40         COMPRESS => 'gzip -9f', SUFFIX => 'gz',
41     },
42     clean               => { FILES => 'IPC-MorseSignals-*' },
43 );