-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.PL
executable file
·48 lines (42 loc) · 1.26 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
use strict;
use warnings;
use ExtUtils::MakeMaker;
use File::ShareDir::Install;
install_share 'share';
my $preop =
'perldoc -uT $(VERSION_FROM) | tee $(DISTVNAME)/README.pod > README.pod;' .
'pod2text README.pod | tee $(DISTVNAME)/README > README';
WriteMakefile(
NAME => 'Dancer::Plugin::DebugToolbar',
AUTHOR => q{Michal Wojciechowski <[email protected]>},
VERSION_FROM => 'lib/Dancer/Plugin/DebugToolbar.pm',
ABSTRACT_FROM => 'lib/Dancer/Plugin/DebugToolbar.pm',
($ExtUtils::MakeMaker::VERSION >= 6.3002
? ('LICENSE'=> 'perl')
: ()),
PL_FILES => {},
CONFIGURE_REQUIRES => {
'File::ShareDir::Install' => 0,
},
PREREQ_PM => {
'Test::More' => 0,
'Dancer' => 1.3070,
'File::ShareDir' => 1.0,
'File::ShareDir::Install' => 0,
'Tie::Hash::Indexed' => 0,
},
dist => {
COMPRESS => 'gzip -9f',
SUFFIX => 'gz',
PREOP => $preop
},
clean => { FILES => 'Dancer-Plugin-DebugToolbar-*' },
);
package MY;
use File::ShareDir::Install;
sub MY::postamble
{
my $self = shift;
my @ret = File::ShareDir::Install::postamble($self);
return join "\n", @ret;
}