-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
64 lines (53 loc) · 1.57 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/perl
use 5.006;
use strict;
use warnings;
no warnings 'syntax';
use ExtUtils::MakeMaker;
my $PACKAGE = 'The::Net';
my $LIB_FILE = "lib/$PACKAGE.pm";
$LIB_FILE =~ s!::!/!g;
my $LOCAL_ADDR = 'cpan';
my $DOMAIN = 'abigail.be';
my $REPO = $PACKAGE;
$REPO =~ s!::!--!g;
my $REPO_HOST = 'github.com';
my $ME = 'Abigail';
my $REPOSITORY = "git://$REPO_HOST/$ME/\L$REPO.git";
my %args = (
NAME => $PACKAGE,
VERSION_FROM => $LIB_FILE,
ABSTRACT_FROM => $LIB_FILE,
PREREQ_PM => {
'LWP::Simple' => 0,
'IO::File' => 0,
'Fcntl' => 0,
'warnings' => 0,
'strict' => 0,
},
MIN_PERL_VERSION => 5.006,
AUTHOR => "$ME <$LOCAL_ADDR\@$DOMAIN>",
LICENSE => 'mit',
META_MERGE => {
test_requires => {
'warnings' => 0,
'strict' => 0,
},
resources => {
repository => $REPOSITORY,
},
keywords => [],
},
);
my %filter = (
MIN_PERL_VERSION => '6.48',
META_MERGE => '6.46',
AUTHOR => '6.07',
ABSTRACT_FROM => '6.07',
LICENSE => '6.07',
);
delete $args {$_} for grep {defined $filter {$_} &&
$ExtUtils::MakeMaker::VERSION lt $filter {$_}}
keys %args;
WriteMakefile %args;
__END__