Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 83 lines (69 sloc) 2.597 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
16 MAKE_FRAG
17 }
18
1404a83 @cpanservice Upgrade Makefile.PL
cpanservice authored
19 WriteMakefile1(
b3c8b5f Makefile.PL upgrade (add a clean rule)
Alexis Sukrieh authored
20 NAME => 'Dancer',
21 ABSTRACT => "A minimal-effort oriented web application framework",
22 LICENSE => 'perl',
23 VERSION_FROM => 'lib/Dancer.pm',
24 EXE_FILES => ['script/dancer'],
25
1404a83 @cpanservice Upgrade Makefile.PL
cpanservice authored
26 META_MERGE => {
27 resources => {
28 repository => 'http://github.com/sukria/Dancer',
0707818 @szabgab add some links to META.yml and minimum perl version in Makefile.Pl
szabgab authored
29 bugtracker => 'http://github.com/sukria/Dancer/issues',
30 homepage => 'http://perldancer.org/',
1404a83 @cpanservice Upgrade Makefile.PL
cpanservice authored
31 },
32 },
33
b3c8b5f Makefile.PL upgrade (add a clean rule)
Alexis Sukrieh authored
34 BUILD_REQUIRES => {
b148d1c @bigpresh Adding Tie::Hash::NamedCapture to BUILD_REQUIRES.
bigpresh authored
35 'Test::More' => '0.94',
36 'Tie::Hash::NamedCapture' => '0',
b3c8b5f Makefile.PL upgrade (add a clean rule)
Alexis Sukrieh authored
37 },
38
b3d5b31 first version of Makefile.PL
Alexis Sukrieh authored
39 PREREQ_PM => {
c1479fc MIME::Types is not in core, changed Makefile.PL accordingly
Alexis Sukrieh authored
40
820d89a REAMDE update + Makefile.PL deps update
Alexis Sukrieh authored
41 # non-core
01756f2 fixes for scaffolded apps + Dancer::Deployment cleanup (CGI)
Alexis Sukrieh authored
42 'LWP' => '0',
3997abc comment about HTTP::Body version
Alexis Sukrieh authored
43 'HTTP::Body' => '1.07', # needed for cleanup()
5f02e58 HTTP::Server::Simple::PSGI dependency update: 0.11
Alexis Sukrieh authored
44 'HTTP::Server::Simple::PSGI' => '0.11',
c1479fc MIME::Types is not in core, changed Makefile.PL accordingly
Alexis Sukrieh authored
45 'MIME::Types' => '0',
3997abc comment about HTTP::Body version
Alexis Sukrieh authored
46 'URI' => '0',
c1479fc MIME::Types is not in core, changed Makefile.PL accordingly
Alexis Sukrieh authored
47
820d89a REAMDE update + Makefile.PL deps update
Alexis Sukrieh authored
48 # core
3aa98df merge kappa charset support patch
Alexis Sukrieh authored
49 'File::Basename' => '0',
50 'File::Spec' => '0',
51 'Encode' => '0',
1287520 Dancer::Timer depends hardly on Time::HiRes (which is core since Perl 5....
Alexis Sukrieh authored
52 'Time::HiRes' => '0', # in core since 5.7
b3d5b31 first version of Makefile.PL
Alexis Sukrieh authored
53 },
b3c8b5f Makefile.PL upgrade (add a clean rule)
Alexis Sukrieh authored
54
55 test => {TESTS => join( ' ', (glob( 't/*.t'), glob('t/*/*.t')))},
56 clean => {FILES => "t/lib/sessions/*.yml logs/*.log t/*/logs/*" }
57
b3d5b31 first version of Makefile.PL
Alexis Sukrieh authored
58 );
1404a83 @cpanservice Upgrade Makefile.PL
cpanservice authored
59
60 sub WriteMakefile1 { #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
61 my %params=@_;
62 my $eumm_version=$ExtUtils::MakeMaker::VERSION;
63 $eumm_version=eval $eumm_version;
64 die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
65 die "License not specified" if not exists $params{LICENSE};
66 if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
67 #EUMM 6.5502 has problems with BUILD_REQUIRES
68 $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
69 delete $params{BUILD_REQUIRES};
70 }
71 delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
72 delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
73 delete $params{META_MERGE} if $eumm_version < 6.46;
74 delete $params{META_ADD} if $eumm_version < 6.46;
75 delete $params{LICENSE} if $eumm_version < 6.31;
76 delete $params{AUTHOR} if $] < 5.005;
77 delete $params{ABSTRACT_FROM} if $] < 5.005;
78 delete $params{BINARY_LOCATION} if $] < 5.005;
79
80 WriteMakefile(%params);
81 }
82
Something went wrong with that request. Please try again.