X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=a24f63f66ca1cb74c80efdfc884492046afcc386;hb=90d2b0db8abb64d3c16d674091938f8c65e9caac;hp=341a6ca91cde79e7e5b7013ad74e7d9ed56cb52e;hpb=ddcc7c395d570f0ea20a8e9a242fcbfcc0e49522;p=perl%2Fmodules%2FIPC-MorseSignals.git diff --git a/Makefile.PL b/Makefile.PL index 341a6ca..a24f63f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,8 +4,8 @@ use ExtUtils::MakeMaker; BEGIN { eval { require Config }; - die "You need the Config module to install this distribution, that's what happened" if $@; - Config->import qw/%Config/; + die 'OS unsupported' if $@; + Config->import(qw/%Config/); } my %sigs; @@ -15,7 +15,7 @@ for (qw/USR1 USR2/) { print "Checking if you have SIG$_... "; unless (exists $sigs{$_}) { print "no\n"; - die "Installation stops right here,"; + die 'OS unsupported' if $@; } print "yes\n"; } @@ -47,11 +47,11 @@ WriteMakefile( ABSTRACT_FROM => 'lib/IPC/MorseSignals.pm', PL_FILES => {}, PREREQ_PM => { - 'Carp' => 0, - 'Exporter' => 0, - 'POSIX' => 0, - 'Test::More' => 0, - 'Time::HiRes' => 0, + 'Bit::MorseSignals' => 0, + 'Carp' => 0, + 'POSIX' => 0, + 'Time::HiRes' => 0, + %$BUILD_REQUIRES }, dist => { PREOP => 'pod2text lib/IPC/MorseSignals.pm > $(DISTVNAME)/README; '