Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 171 lines (143 sloc) 4.915 kB
89de6a3 @broquaint Added the Catalyst app Gitalist with gitweb.cgi shim.
authored
1 #!/usr/bin/env perl
99daca2 @broquaint Update bootstrapping for local::lib 1.006000.
authored
2
42b626c @bobtfish Commit all of the local::lib scripts in base form
bobtfish authored
3 use FindBin;
4b3ff1c @bobtfish Fix for dist versions
bobtfish authored
4 BEGIN {
5 my $env = "$FindBin::Bin/script/env";
6 if (-r $env) {
7 do $env or die $@;
8 }
9 }
839da3d @broquaint Fixed bug in where branch links were always pointing at master.
authored
10
233ba83 @bobtfish Kill hard tabs, make tests which should be author side only be author…
bobtfish authored
11 use strict;
12 use warnings;
839da3d @broquaint Fixed bug in where branch links were always pointing at master.
authored
13
52d05eb @bobtfish Tart up the Makefile.PL a little
bobtfish authored
14 use inc::Module::Install 0.91;
89de6a3 @broquaint Added the Catalyst app Gitalist with gitweb.cgi shim.
authored
15
16 name 'Gitalist';
17 all_from 'lib/Gitalist.pm';
18
f1855be @bobtfish Make primary author and license info be correct in META.yml
bobtfish authored
19 author 'Dan Brook <broq@cpan.org>';
20
21 license 'gpl2';
22
31780e3 @bobtfish Mangle Makefile.PL yet again, dropping a trivial author dep, and moan…
bobtfish authored
23 if ($ENV{GITALIST_RELEASE_TESTING}) {
6e601fe @bobtfish 'Fix' this to work like I want it to using the simplest method that c…
bobtfish authored
24 # Nasty hack as Module::Install kindly re-loads all of these :/
31780e3 @bobtfish Mangle Makefile.PL yet again, dropping a trivial author dep, and moan…
bobtfish authored
25 local $SIG{__WARN__} = sub { return if $_[0] =~ /redefined/; warn shift };
26 require Module::Install::AuthorRequires;
27 require Module::Install::AuthorTests;
28
cb52c89 @bobtfish Fix if you don't have AuthorRequires or AuthorTests
bobtfish authored
29 author_tests('t/author');
30 author_requires('Test::NoTabs');
31 author_requires('Test::Pod' => '1.14');
32 author_requires('Test::Pod::Coverage' => '1.04');
6e601fe @bobtfish 'Fix' this to work like I want it to using the simplest method that c…
bobtfish authored
33
34 require File::Find;
35 require FindBin;
36 require ExtUtils::MM_Unix;
37 # Fill in provides info so that indexing works right (in the face of MX::Declare)
38 # by just smashing filenames to package names and not trying to be smart..
39 File::Find::find(sub {
1aa5394 @broquaint A couple of small tweaks revolving around WWW::Mechanize.
authored
40 return unless /^\w.*?\.pm$/;
6e601fe @bobtfish 'Fix' this to work like I want it to using the simplest method that c…
bobtfish authored
41 my $fn = $File::Find::name;
42 my $ver = ExtUtils::MM_Unix->parse_version($fn);
43
44 $fn =~ s/.+?lib/lib/;
45 my $pn = $fn;
46 $pn =~ s|^lib/||;
47 $pn =~ s|/|::|g;
48 $pn =~ s/\.pm$//;
49
50 provides(
51 $pn => {
52 file => $fn,
53 # Ewww
54 $ver ne 'undef' ? (version => $ver) : (),
55 },
56 );
57 }, $FindBin::Bin . "/lib");
31780e3 @bobtfish Mangle Makefile.PL yet again, dropping a trivial author dep, and moan…
bobtfish authored
58 }
59
3620aa2 @bobtfish Controller::ActionRole is dead
bobtfish authored
60 requires 'Catalyst::Runtime' => '5.90013';
89de6a3 @broquaint Added the Catalyst app Gitalist with gitweb.cgi shim.
authored
61 requires 'Catalyst::Plugin::ConfigLoader';
e14c0e6 @zts Added missing deps to Makefile.PL
zts authored
62 requires 'Catalyst::Plugin::StackTrace';
89de6a3 @broquaint Added the Catalyst app Gitalist with gitweb.cgi shim.
authored
63 requires 'Catalyst::Plugin::Static::Simple';
fac828e @bobtfish Do the right thing with encoding output to avoid 'wide character in s…
bobtfish authored
64 requires 'Catalyst::Plugin::Unicode::Encoding';
db6de0b @bobtfish Require new SubRequest to go with new Catalyst
bobtfish authored
65 requires 'Catalyst::Plugin::SubRequest' => '0.15';
89de6a3 @broquaint Added the Catalyst app Gitalist with gitweb.cgi shim.
authored
66 requires 'Catalyst::Action::RenderView';
f41fc74 @broquaint Expose serialization via JSON.
authored
67 requires 'Catalyst::Action::REST';
bddfb71 We do actually really want per context instances of the model. Otherw…
Tomas Doran authored
68 requires 'Catalyst::Component::InstancePerContext';
16bdb8d @bobtfish Start using the subinclude plugin and splitting things up.
bobtfish authored
69 requires 'Catalyst::View::Component::SubInclude' => '0.07';
ca84e60 @bobtfish Fix dependencies
bobtfish authored
70 requires 'Catalyst::View::TT' => '0.34';
ecb0ebe @bobtfish Split subincludes out into their own /fragment controllers.
bobtfish authored
71 requires 'Try::Tiny';
a3f91c1 @broquaint Revert "Merge remote branch 't0m/json' into json"
authored
72 requires 'Template' => '2.22';
e14c0e6 @zts Added missing deps to Makefile.PL
zts authored
73 requires 'Template::Plugin::Cycle';
606ffc3 @broquaint Assume UTF8 encoded blobs.
authored
74 requires 'Template::Plugin::UTF8Decode';
839da3d @broquaint Fixed bug in where branch links were always pointing at master.
authored
75
76 requires 'Config::General';
77
42fe5d1 @bobtfish Add moose and autoclean
bobtfish authored
78 requires 'Moose';
839da3d @broquaint Fixed bug in where branch links were always pointing at master.
authored
79 requires 'Moose::Autobox';
a3f91c1 @broquaint Revert "Merge remote branch 't0m/json' into json"
authored
80 requires 'MooseX::Declare' => '0.32';
5c07fcf @broquaint First cut at reintroducing object serialization.
authored
81 requires 'MooseX::Storage';
82 requires 'MooseX::Types';
6dca83e @bobtfish Throw a bit more Moose around, and copy config to model so that we ca…
bobtfish authored
83 requires 'MooseX::Types::Common';
84f31a4 @bobtfish Refactor somewhat
bobtfish authored
84 requires 'MooseX::Types::Path::Class';
f9baba9 @bobtfish Unfuck DateTime type with newer MX::Types
bobtfish authored
85 requires 'MooseX::Types::DateTime' => '0.05';
839da3d @broquaint Fixed bug in where branch links were always pointing at master.
authored
86 requires 'namespace::autoclean';
87
4e3ae73 @broquaint Bump Gitalist version and required Git::PurePerl version.
authored
88 requires 'Git::PurePerl' => '0.47';
839da3d @broquaint Fixed bug in where branch links were always pointing at master.
authored
89
84f31a4 @bobtfish Refactor somewhat
bobtfish authored
90 requires 'aliased';
267a322 @bobtfish Moar deps
bobtfish authored
91 requires 'CGI';
92 requires 'DateTime';
839da3d @broquaint Fixed bug in where branch links were always pointing at master.
authored
93 requires 'File::Copy::Recursive';
e172b6b @broquaint Implemented necessary functionality so binary files no longer render …
authored
94 requires 'File::Type';
95 requires 'File::Type::WebImages';
839da3d @broquaint Fixed bug in where branch links were always pointing at master.
authored
96 requires 'File::Which';
97 requires 'HTML::Entities';
98 requires 'IPC::Run';
1aae440 @broquaint Add serialization to Gitalist::Git::Object.
authored
99 requires 'JSON';
99daca2 @broquaint Update bootstrapping for local::lib 1.006000.
authored
100 requires 'JSON::XS';
267a322 @bobtfish Moar deps
bobtfish authored
101 requires 'List::MoreUtils';
4542044 Get everything actually working with this in place in my public_html …
bobtfish authored
102 requires 'Path::Class' => '0.17';
267a322 @bobtfish Moar deps
bobtfish authored
103 requires 'Syntax::Highlight::Engine::Kate';
d17ce39 @broquaint Added a first cut of the /atom action.
authored
104 requires 'Sys::Hostname';
267a322 @bobtfish Moar deps
bobtfish authored
105
c405f7d @bobtfish Need git
bobtfish authored
106 requires_external_bin 'git';
107
9e5a418 @broquaint Fix dependency typo in Makefile.PL.
authored
108 test_requires 'Test::Deep' => '0.108';
9b06fde @broquaint Add Test::Exception dep.
authored
109 test_requires 'Test::More' => '0.88';
110 test_requires 'Test::utf8' => '0.02';
111 test_requires 'Test::Exception' => '0.31';
267a322 @bobtfish Moar deps
bobtfish authored
112
d25c7f9 @broquaint Updated the repo & bugtracker locations in Makefile.PL.
authored
113 resources bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Gitalist';
114 resources repository => 'git://git.shadowcat.co.uk/catagits/Gitalist.git';
d49ead1 @bobtfish We should have resources in META.yml so that search.cpan points at th…
bobtfish authored
115
267a322 @bobtfish Moar deps
bobtfish authored
116 catalyst;
89de6a3 @broquaint Added the Catalyst app Gitalist with gitweb.cgi shim.
authored
117
31780e3 @bobtfish Mangle Makefile.PL yet again, dropping a trivial author dep, and moan…
bobtfish authored
118 if ($Module::Install::AUTHOR) {
119 system("pod2text lib/Gitalist.pm > README")
120 and die $!;
f97f8af @bobtfish Fix bundling issue by bundling File::Copy::Recursive
bobtfish authored
121 include 'File::Copy::Recursive';
8dce2bf @bobtfish Move stuff behind GITALIST_RELEASE_TESTING env
bobtfish authored
122 }
123
6dac263 @bobtfish Add mech testing in from the branch I previously made. 5 of the URIs …
bobtfish authored
124 if ($ENV{GITALIST_RELEASE_TESTING}) {
6513677 @bobtfish Fix Makefile.PL so author modules aren't needed
bobtfish authored
125 author_tests('t/author');
126 author_requires('Test::NoTabs');
127 author_requires('Test::Pod' => '1.14');
128 author_requires('Test::Pod::Coverage' => '1.04');
129 author_requires('Test::WWW::Mechanize::Catalyst' => '0.51');
130 author_requires('HTML::TreeBuilder::XPath');
131 author_requires('WWW::Mechanize::TreeBuilder');
6dac263 @bobtfish Add mech testing in from the branch I previously made. 5 of the URIs …
bobtfish authored
132 }
133
cc02cf5 @broquaint Provide .psgi for Plack goodness.
authored
134 install_script glob('script/*.p{l,sgi}');
89de6a3 @broquaint Added the Catalyst app Gitalist with gitweb.cgi shim.
authored
135 auto_install;
0164ed4 @bobtfish Remove Module::Install::ProvidesClass, setup provides manually oursel…
bobtfish authored
136
31780e3 @bobtfish Mangle Makefile.PL yet again, dropping a trivial author dep, and moan…
bobtfish authored
137 { # Make sure you REALLY REALLY have to have the env variable set to run
138 # any of the dist actions.
139 package # PAUSE HIDE
140 MY;
141
142 sub dist_core { # MakeMaker is awesome fun to customise. And when I say
143 my ($self, @args) = @_; # fun I mean OH GOD MY EYES.
144 my $text = $self->SUPER::dist_core(@args);
145 my @lines = split /\n/, $text;
146 unless ($ENV{GITALIST_RELEASE_TESTING}) {
147 my ($printed, @out_lines);
148 foreach my $in (@lines) {
149 if ($in =~ /^\S/) {
150 undef $printed;
151 $in =~ s/:.*$/:/g;
152 push @out_lines, $in;
153 }
154 elsif ($in =~ /^\s+$/) {
155 push @out_lines, $in;
156 }
157 elsif (!$printed) {
158 push @out_lines, "\techo Get stuffed mate - set GITALIST_RELEASE_TESTING if you really want to do this..";
159 $printed = 1;
160 }
161 else {}
162 }
163 @lines = @out_lines;
164 }
165 return join "\n", @lines;
166 }
0164ed4 @bobtfish Remove Module::Install::ProvidesClass, setup provides manually oursel…
bobtfish authored
167 }
168
89de6a3 @broquaint Added the Catalyst app Gitalist with gitweb.cgi shim.
authored
169 WriteAll;
0164ed4 @bobtfish Remove Module::Install::ProvidesClass, setup provides manually oursel…
bobtfish authored
170
Something went wrong with that request. Please try again.