forked from vti/bootylicious
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.PL
69 lines (55 loc) · 1.7 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
# Copyright (C) 2009, Viacheslav Tykhanovskyi
use 5.008001;
use strict;
use warnings;
use ExtUtils::MakeMaker;
my $mm = $ExtUtils::MakeMaker::VERSION;
WriteMakefile(
NAME => 'Bootylicious',
VERSION_FROM => 'lib/Bootylicious.pm',
ABSTRACT => 'Blog software',
AUTHOR => 'Viacheslav Tykhanovskyi <[email protected]>',
($mm < 6.3002 ? () : ('LICENSE' => 'artistic_2')),
( $mm < 6.46
? ()
: ( META_MERGE => {
requires => {perl => '5.008001'},
resources => {
homepage => 'http://getbootylicious.org',
license => 'http://dev.perl.org/licenses/',
repository =>
'http://github.com/vti/bootylicious/tree/master'
},
no_index => {directory => [qw/t/]}
},
META_ADD => {
build_requires => {},
configure_requires => {}
},
)
),
EXE_FILES => ['bootylicious'],
PREREQ_PM => {
'File::Basename' => 0,
'FindBin' => 0,
'Mojo' => 0.999914,
'Pod::Simple::HTML' => 0,
'Time::Local' => 0,
'Time::Piece' => 0,
},
test => {TESTS => 't/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t'}
);
package MY;
sub MY::postamble {
my $postamble = <<'MAKE_FRAG';
BOOTYLICIOUS = bootylicious
BOOTYLICIOUS_PM = lib/Bootylicious.pm
ALL_PM = $(BOOTYLICIOUS_PM)
$(BOOTYLICIOUS) : $(ALL_PM) squash Makefile
$(PERL) squash $(ALL_PM) > $(BOOTYLICIOUS)
$(CHMOD) 0755 $(BOOTYLICIOUS)
$(PERL) -c $(BOOTYLICIOUS)
MAKE_FRAG
return $postamble;
}
1;