-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
69 lines (63 loc) · 2.22 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 ExtUtils::MakeMaker;
# Normalize version strings like 6.30_02 to 6.3002,
# so that we can do numerical comparisons on it.
my $eumm_version = $ExtUtils::MakeMaker::VERSION;
$eumm_version =~ s/_//;
WriteMakefile(
NAME => 'DancerBlog',
AUTHOR => q{G. Wade Johnson <gwadej@cpan.org>},
VERSION_FROM => 'lib/DancerBlog.pm',
ABSTRACT_FROM => 'lib/DancerBlog.pm',
LICENSE => 'perl_5',
PL_FILES => {},
MIN_PERL_VERSION => 5.010000,
TEST_REQUIRES => {
'Test::More' => 0,
},
PREREQ_PM => {
'YAML' => 0,
'Crypt::SaltedHash' => 0,
'HTML::Scrubber' => 0,
'Dancer2' => 0.205001,
'Dancer2::Plugin::Auth::Extensible' => 0,
'Dancer2::Plugin::Auth::Extensible::Provider::DBIC' => 0,
'Dancer2::Plugin::DBIC' => 0,
'Data::UUID' => 0,
'DateTime' => 0,
'DBD::SQLite' => 0,
'DBIx::Class' => 0,
'DBIx::Class::InflateColumn::DateTime' => 0,
'Exporter::Easy' => 0,
'Plack' => 0,
'Plack::Middleware::Deflater' => 0,
'Scalar::Util' => 0,
'Template' => 0,
'Text::MultiMarkdown' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'dancer_blog-*' },
realclean => { FILES => 'db/dancer_log.db' },
META_MERGE => {
'meta-spec' => {
version => 2,
url => 'https://metacpan.org/pod/CPAN::Meta::Spec',
},
resources => {
type => 'git',
url => 'git://',
},
},
);
sub MY::postamble {
return <<"MAKE_FRAG";
db:
\tmkdir db
database: db db/dancer_blog.db
db/dancer_blog.db:
\tbin/create_tables.pl
init_db: database
\tbin/populate_test.pl
MAKE_FRAG
}