Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 87 lines (71 sloc) 2.659 kB
0707818 @szabgab add some links to META.yml and minimum perl version in Makefile.Pl
szabgab authored
1 use 5.008005;
b3d5b31 first version of Makefile.PL
Alexis Sukrieh authored
2 use ExtUtils::MakeMaker;
3
5a3f4e3 add target 'tags' to Makefile.PL
Alexis Sukrieh authored
4 # ctags support
5 # run perl Makfefile.PL && make tags
6 sub MY::postamble {
7 my $postamble = <<'MAKE_FRAG';
8 .PHONY: tags
9
10 tags:
11 ctags -f tags --recurse --totals \
12 --exclude=blib \
13 --exclude=.git \
14 --exclude='*.swp' \
15 --languages=Perl --langmap=Perl:+.t
8e2c270 @ambs Add author_test target
ambs authored
16
17 author_test:
eef1d49 @ambs Use $(MAKE) instead of 'make';
ambs authored
18 RELEASE_TESTING=1 $(MAKE) test
8e2c270 @ambs Add author_test target
ambs authored
19
5a3f4e3 add target 'tags' to Makefile.PL
Alexis Sukrieh authored
20 MAKE_FRAG
21 }
22
1404a83 @cpanservice Upgrade Makefile.PL
cpanservice authored
23 WriteMakefile1(
b3c8b5f Makefile.PL upgrade (add a clean rule)
Alexis Sukrieh authored
24 NAME => 'Dancer',
25 ABSTRACT => "A minimal-effort oriented web application framework",
26 LICENSE => 'perl',
27 VERSION_FROM => 'lib/Dancer.pm',
28 EXE_FILES => ['script/dancer'],
8e2c270 @ambs Add author_test target
ambs authored
29
1404a83 @cpanservice Upgrade Makefile.PL
cpanservice authored
30 META_MERGE => {
31 resources => {
a0a759b @bigpresh Update GitHub repo URL in Makefile.PL
bigpresh authored
32 repository => 'https://github.com/PerlDancer/Dancer',
33 bugtracker => 'https://github.com/PerlDancer/Dancer/issues',
0707818 @szabgab add some links to META.yml and minimum perl version in Makefile.Pl
szabgab authored
34 homepage => 'http://perldancer.org/',
1404a83 @cpanservice Upgrade Makefile.PL
cpanservice authored
35 },
36 },
37
b3c8b5f Makefile.PL upgrade (add a clean rule)
Alexis Sukrieh authored
38 BUILD_REQUIRES => {
b148d1c @bigpresh Adding Tie::Hash::NamedCapture to BUILD_REQUIRES.
bigpresh authored
39 'Test::More' => '0.94',
b3c8b5f Makefile.PL upgrade (add a clean rule)
Alexis Sukrieh authored
40 },
41
b3d5b31 first version of Makefile.PL
Alexis Sukrieh authored
42 PREREQ_PM => {
c1479fc MIME::Types is not in core, changed Makefile.PL accordingly
Alexis Sukrieh authored
43
820d89a REAMDE update + Makefile.PL deps update
Alexis Sukrieh authored
44 # non-core
01756f2 fixes for scaffolded apps + Dancer::Deployment cleanup (CGI)
Alexis Sukrieh authored
45 'LWP' => '0',
3997abc comment about HTTP::Body version
Alexis Sukrieh authored
46 'HTTP::Body' => '1.07', # needed for cleanup()
5f02e58 HTTP::Server::Simple::PSGI dependency update: 0.11
Alexis Sukrieh authored
47 'HTTP::Server::Simple::PSGI' => '0.11',
c1479fc MIME::Types is not in core, changed Makefile.PL accordingly
Alexis Sukrieh authored
48 'MIME::Types' => '0',
2c6b027 @ambs Require URI 1.59
ambs authored
49 'URI' => '1.59',
1660a50 @dams added Try::Tiny prereq
dams authored
50 'Try::Tiny' => '0.09',
c1479fc MIME::Types is not in core, changed Makefile.PL accordingly
Alexis Sukrieh authored
51
820d89a REAMDE update + Makefile.PL deps update
Alexis Sukrieh authored
52 # core
3aa98df merge kappa charset support patch
Alexis Sukrieh authored
53 'File::Basename' => '0',
54 'File::Spec' => '0',
55 'Encode' => '0',
1287520 Dancer::Timer depends hardly on Time::HiRes (which is core since Perl…
Alexis Sukrieh authored
56 'Time::HiRes' => '0', # in core since 5.7
b3d5b31 first version of Makefile.PL
Alexis Sukrieh authored
57 },
b3c8b5f Makefile.PL upgrade (add a clean rule)
Alexis Sukrieh authored
58
59 test => {TESTS => join( ' ', (glob( 't/*.t'), glob('t/*/*.t')))},
60 clean => {FILES => "t/lib/sessions/*.yml logs/*.log t/*/logs/*" }
61
b3d5b31 first version of Makefile.PL
Alexis Sukrieh authored
62 );
1404a83 @cpanservice Upgrade Makefile.PL
cpanservice authored
63
64 sub WriteMakefile1 { #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
65 my %params=@_;
66 my $eumm_version=$ExtUtils::MakeMaker::VERSION;
67 $eumm_version=eval $eumm_version;
68 die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
69 die "License not specified" if not exists $params{LICENSE};
70 if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
71 #EUMM 6.5502 has problems with BUILD_REQUIRES
72 $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
73 delete $params{BUILD_REQUIRES};
74 }
75 delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
76 delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
77 delete $params{META_MERGE} if $eumm_version < 6.46;
78 delete $params{META_ADD} if $eumm_version < 6.46;
79 delete $params{LICENSE} if $eumm_version < 6.31;
80 delete $params{AUTHOR} if $] < 5.005;
81 delete $params{ABSTRACT_FROM} if $] < 5.005;
82 delete $params{BINARY_LOCATION} if $] < 5.005;
83
84 WriteMakefile(%params);
85 }
86
Something went wrong with that request. Please try again.