Add per line link for previous version of a line in blame.
[catagits/Gitalist.git] / Makefile.PL
CommitLineData
89de6a33 1#!/usr/bin/env perl
839da3d7 2
233ba83d 3use strict;
4use warnings;
839da3d7 5
52d05eb5 6use inc::Module::Install 0.91;
8dce2bf3 7if ($ENV{GITALIST_RELEASE_TESTING}) {
8 require Module::Install::AuthorRequires;
9 require Module::Install::AuthorTests;
10 require Module::Install::ReadmeFromPod;
11}
89de6a33 12
13name 'Gitalist';
14all_from 'lib/Gitalist.pm';
9eaaf804 15readme_from 'lib/Gitalist.pm';
89de6a33 16
f1855be5 17author 'Dan Brook <broq@cpan.org>';
18
19license 'gpl2';
20
3444c731 21requires 'Catalyst::Runtime' => '5.8001402';
89de6a33 22requires 'Catalyst::Plugin::ConfigLoader';
e14c0e67 23requires 'Catalyst::Plugin::StackTrace';
89de6a33 24requires 'Catalyst::Plugin::Static::Simple';
fac828e0 25requires 'Catalyst::Plugin::Unicode::Encoding';
89de6a33 26requires 'Catalyst::Action::RenderView';
bddfb71e 27requires 'Catalyst::Component::InstancePerContext';
28requires 'Catalyst::View::TT';
839da3d7 29
30requires 'Template';
31requires 'Template::Provider::Encoding';
e14c0e67 32requires 'Template::Plugin::Cycle';
839da3d7 33
34requires 'Config::General';
35
42fe5d11 36requires 'Moose';
839da3d7 37requires 'Moose::Autobox';
2a9f541e 38requires 'MooseX::Declare' => '0.32';
6dca83ef 39requires 'MooseX::Types::Common';
84f31a44 40requires 'MooseX::Types::Path::Class';
41requires 'MooseX::Types';
839da3d7 42requires 'namespace::autoclean';
43
52d05eb5 44requires 'Git::PurePerl' => '0.43';
839da3d7 45
84f31a44 46requires 'aliased';
267a322f 47requires 'CGI';
48requires 'DateTime';
839da3d7 49requires 'DateTime::Format::Mail';
50requires 'File::Copy::Recursive';
839da3d7 51requires 'File::Which';
52requires 'HTML::Entities';
839da3d7 53requires 'IPC::Run';
267a322f 54requires 'List::MoreUtils';
45420449 55requires 'Path::Class' => '0.17';
267a322f 56requires 'Sub::Exporter';
57requires 'Syntax::Highlight::Engine::Kate';
d17ce39c 58requires 'Sys::Hostname';
59requires 'XML::Atom';
f796a861 60requires 'XML::RSS';
286cea09 61requires 'XML::OPML::SimpleGen';
267a322f 62
63test_requires 'Test::More' => '0.88';
5effb2c9 64test_requires 'Test::utf8' => '0.02';
267a322f 65
d25c7f92 66resources bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Gitalist';
67resources repository => 'git://git.shadowcat.co.uk/catagits/Gitalist.git';
d49ead14 68
267a322f 69catalyst;
89de6a33 70
8dce2bf3 71if ($ENV{GITALIST_RELEASE_TESTING}) {
72 author_tests 't/author';
73 author_requires 'Test::NoTabs';
74 author_requires 'Test::Pod' => '1.14';
75 author_requires 'Test::Pod::Coverage' => '1.04';
76}
77
89de6a33 78install_script glob('script/*.pl');
79auto_install;
0164ed44 80
e22acd16 81if ($Module::Install::AUTHOR && $ENV{GITALIST_RELEASE_TESTING}) {
8dce2bf3 82 # This is totally gross :)
83 # However, it is also much more effective than Module::Install::ProvidesClass
84 # which a) just does not work very well for us, b) totally won't install from
85 # cpan right now..
86 author_requires 'Module::Find';
87 author_requires 'B::Hooks::OP::Check::StashChange';
88 author_requires 'B::Compiling';
0164ed44 89 require Module::Find;
90 require B::Hooks::OP::Check::StashChange;
91 require B::Compiling;
92 require FindBin;
93 require lib;
94
95 my $libdir = "$FindBin::Bin/lib";
96 lib->import($libdir);
97
98 my %packages;
99
100 our $id = B::Hooks::OP::Check::StashChange::register(sub {
101 my ($new, $old) = @_;
102 my $file = B::Compiling::PL_compiling()->file;
103 return unless $file =~ s/^$libdir/lib/;
104 $packages{$new} ||= $file
105 if $new =~ /^Gitalist/;
106 });
107
108 require Gitalist;
109 Module::Find::useall(qw/Gitalist/);
110 undef $id;
111
112 no strict 'refs';
113 provides($_ => {
114 file => $packages{$_},
115 ${$_.'::VERSION'} ? ( version => $_->VERSION() ) : ()
116 }) for keys %packages;
117}
118
89de6a33 119WriteAll;
0164ed44 120