-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile.PL
More file actions
67 lines (60 loc) · 1.87 KB
/
Makefile.PL
File metadata and controls
67 lines (60 loc) · 1.87 KB
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
65
66
67
use strict;
use warnings;
use 5.008;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my %WriteMakefileArgs = (
'NAME' => 'Net::Patricia',
'VERSION_FROM' => 'Patricia.pm', # finds $VERSION
'ABSTRACT' => 'Patricia Trie for fast IP address lookups',
'AUTHOR' => 'Dave Plonka <plonka@doit.wisc.edu>',
'LICENSE' => 'gpl_2', # and BSD two-clause (see below)
'MYEXTLIB' => 'libpatricia/libpatricia$(LIB_EXT)',
'PREREQ_PM' => {
'Carp' => 0,
'Exporter' => 0,
'Net::CIDR::Lite' => '0.20',
'Socket' => 0,
'Socket6' => 0,
'version' => 0,
},
'TEST_REQUIRES' => {
'Storable' => 0,
'Test::More' => '0.88',
'Test::Pod' => '1.00',
},
META_MERGE => {
'meta-spec' => {version => 2},
license => ['freebsd'],
resources => {
bugtracker => {
web =>
'http://rt.cpan.org/Public/Dist/Display.html?Name=Net-Patricia',
},
repository => {
type => 'git',
web => 'https://github.com/tobez/Net-Patricia',
url => 'git://github.com/tobez/Net-Patricia.git',
},
},
},
);
my %FallbackPrereqs = (
%{$WriteMakefileArgs{PREREQ_PM}},
%{$WriteMakefileArgs{TEST_REQUIRES}},
);
unless (eval { ExtUtils::MakeMaker->VERSION('6.63_03') }) {
delete $WriteMakefileArgs{TEST_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
unless (eval { ExtUtils::MakeMaker->VERSION(6.46) }) {
delete $WriteMakefileArgs{META_MERGE};
}
WriteMakefile(%WriteMakefileArgs);
sub MY::postamble {
'
$(MYEXTLIB): libpatricia/Makefile
cd libpatricia && $(MAKE) $(PASTHRU)
';
}