forked from skx/templer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
69 lines (55 loc) · 1.69 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
use strict;
use warnings;
use 5.008;
use ExtUtils::MakeMaker 6.48;
my %WriteMakefileArgs = (
NAME => 'App::Templer',
VERSION_FROM => 'lib/App/Templer.pm',
EXE_FILES => ['bin/templer', 'bin/templer-generate'],
PREREQ_PM => {
# These are hard requirements.
'HTML::Template' => 0,
'Getopt::Long' => 0,
'Module::Pluggable' => 0,
# These are OPTIONAL.
"Image::Size" => 0,
"Redis" => 0,
"Text::Markdown" => 0,
"Text::Template" => 0,
"Text::Textile" => 0,
# solely for the test-suite.
'Test::More' => 0,
'Test::Pod' => 0,
'Test::Strict' => 0,
'Test::Exception' => 0,
'Test::NoTabs' => 0,
},
ABSTRACT => 'Extensible Static Site Generator.',
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/templer/',
bugtracker => 'https://github.com/skx/templer/issues',
repository => 'https://github.com/skx/templer.git',
GitMirror => 'http://git.steve.org.uk/skx/templer',
},
},
);
#
# This gives a custom-target so that we can run:
#
# perl Makefile.PL
# make standalone
#
# This will generate ./templer which is complete.
#
sub MY::postamble {
return <<'MAKE_FRAG';
standalone:
perl bin/build-templer
MAKE_FRAG
}
WriteMakefile(%WriteMakefileArgs);