This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.PL
113 lines (87 loc) · 2.98 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
use strict;
use warnings;
use 5.008;
use ExtUtils::MakeMaker 6.30;
use File::ShareDir::Install;
#
# Install our themes
#
install_share dist => 'themes';
my %WriteMakefileArgs = (
NAME => 'App::Chronicle',
EXE_FILES => ['bin/chronicle'],
VERSION_FROM => 'bin/chronicle',
PREREQ_PM => {
'DBI' => 0,
'Date::Format' => 0,
'Date::Language' => 0,
'Date::Parse' => 0,
'Digest::MD5' => 0,
'Encode' => 0,
'File::Basename' => 0,
'File::Find' => 0,
'File::Path' => 0,
'File::ShareDir' => 0,
'Getopt::Long' => 0,
'HTML::Template' => 0,
'HTML::Element' => 5,
'Module::Pluggable::Ordered' => 0,
'Path::Class' => 0,
'Pod::Usage' => 0,
# optional formatters.
'Text::Markdown' => 0,
'Text::MultiMarkdown' => 0,
'Text::Textile' => 0,
'Unicode::Normalize' => 0,
'URI' => 0,
},
TEST_REQUIRES => {
# solely for the test-suite.
'HTML::Tree' => 0,
'Test::Exception' => 0,
'Test::More' => 0,
'Test::NoTabs' => 0,
'Test::Pod' => 0,
'Test::Pod::Coverage' => 0,
'Test::Strict' => 0,
},
BUILD_REQUIRES => { 'File::ShareDir::Install' => 0,
'Test::More' => 0,
'Test::Pod' => 0,
'Test::Strict' => 0,
'Test::NoTabs' => 0,
},
ABSTRACT => 'A static blog-compiler with minimal dependencies.',
AUTHOR => 'Steve Kemp <[email protected]>',
LICENSE => "perl",
MIN_PERL_VERSION => '5.008',
META_MERGE => {
resources => {
license => 'http://dev.perl.org/licenses/',
homepage => 'https://github.com/skx/chronicle2/',
bugtracker => 'https://github.com/skx/chronicle2/issues',
repository => 'https://github.com/skx/chronicle2.git',
},
},
);
unless ( eval {ExtUtils::MakeMaker->VERSION(6.56)} )
{
my $br = delete $WriteMakefileArgs{ BUILD_REQUIRES };
my $pp = $WriteMakefileArgs{ PREREQ_PM };
for my $mod ( keys %$br )
{
if ( exists $pp->{ $mod } )
{
$pp->{ $mod } = $br->{ $mod } if $br->{ $mod } > $pp->{ $mod };
}
else
{
$pp->{ $mod } = $br->{ $mod };
}
}
}
delete $WriteMakefileArgs{ CONFIGURE_REQUIRES }
unless eval {ExtUtils::MakeMaker->VERSION(6.52)};
WriteMakefile(%WriteMakefileArgs);
package MY;
use File::ShareDir::Install 'postamble';