forked from jettero/net--imap--simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
49 lines (38 loc) · 1.43 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use ExtUtils::MakeMaker;
use ExtUtils::Command qw(cp);
my $build_simplex = prompt("Do you wish to include some simple protocol extensions (pulls in Parse::RecDescent)? ",
$ENV{OVERRIDE_DEFAULT_SX} ? $ENV{OVERRIDE_DEFAULT_SX} : "y");
if( $build_simplex =~ m/[Yy]/ ) {
local @ARGV = qw(contrib/SimpleX.pod contrib/SimpleX.pm .);
cp();
open my $out, ">test_simplex" or die "unable to setup body-summary tests: $!";
chmod 0444, qw(SimpleX.pod SimpleX.pm); # prevent myself from editing them without realizing it
=cut
SimpleX.%: contrib/SimpleX.%
$(RM) $@; $(CP) $< $@ && $(CHMOD) 0444 $@
inc/slurp_fetchmailx.pm: inc/slurp_fetchmail.pm
sed -e s/slurp_fetchmail/slurp_fetchmailx/ -e s/Net::IMAP::Simple/Net::IMAP::SimpleX/ $< > $@
=cut
} else {
unlink qw(SimpleX.pod SimpleX.pm test_simplex);
}
WriteMakefile(
'NAME' => 'Net::IMAP::Simple',
'VERSION_FROM' => 'Simple.pm',
AUTHOR => 'Paul Miller <[email protected]>',
PREREQ_PM => {
'IO::Socket' => 0,
'IO::Select' => 0,
( $build_simplex ? ('Parse::RecDescent'=>0) : () ),
},
($ExtUtils::MakeMaker::VERSION ge '6.48'?
(MIN_PERL_VERSION => 5.008,
META_MERGE => {
keywords => [qw(imap simple)],
resources=> {
repository => 'http://github.com/jettero/net--imap--simple',
},
},
LICENSE => 'Perl Artistic',
) : ()),
);