-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
79 lines (70 loc) · 2.16 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!perl
use strict;
use warnings;
use ExtUtils::MakeMaker;
use 5.010;
my $mm_ver = $ExtUtils::MakeMaker::VERSION;
if ($mm_ver =~ /_/) {
# developer release
$mm_ver = eval $mm_ver;
die $@ if $@;
}
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'Parse::FSM',
VERSION_FROM => 'lib/Parse/FSM.pm',
DISTNAME => 'Parse-FSM',
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(
ABSTRACT_FROM => 'lib/Parse/FSM.pm',
AUTHOR => 'Paulo Custodio <[email protected]>',
) : ()),
PREREQ_PM => {
'Capture::Tiny' => 0.10,
'Class::XSAccessor' => 1.11,
'Data::Dump' => 1.19,
'File::Slurp' => 9999.15,
'File::Spec' => 3.33,
'File::Temp' => 0.22,
'Test::More' => 0.96, # needs done_testing()
'Text::Balanced' => 2.02,
'Text::Template' => 1.45,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
($mm_ver >= 6.48
? (MIN_PERL_VERSION => 5.010)
: ()
),
($mm_ver >= 6.31 ? (LICENSE => 'perl_5_16') : ()),
($mm_ver <= 6.45
? ()
: (META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'git://github.com/pauloscustodio/perl-Parse-FSM.git',
web => 'https://github.com/pauloscustodio/perl-Parse-FSM',
},
},
})
),
clean => { FILES => [ 'Parse-FSM-*',
'Parser.pm',
'*.tmp',
'*.bak',
'~tmpfile.*',
] },
);
sub MY::postamble {
return q{
pure_all :: $(INST_LIB)$(DFSEP)Parse$(DFSEP)FSM$(DFSEP)Parser.pm
$(INST_LIB)$(DFSEP)Parse$(DFSEP)FSM$(DFSEP)Parser.pm : \
tools$(DFSEP)build_parser.pl \
lib$(DFSEP)Parse$(DFSEP)FSM.pm \
lib$(DFSEP)Parse$(DFSEP)FSM$(DFSEP)Driver.pm \
$(FIRST_MAKEFILE)
$(PERLRUNINST) tools$(DFSEP)build_parser.pl Parse::FSM::Parser $(INST_LIB)$(DFSEP)Parse$(DFSEP)FSM$(DFSEP)Parser.pm
};
}