Fix 'Play' to correctly pass data to unpack-objects
[VCS-Git-Torrent.git] / Makefile.PL
blob7ef979470b409a57136b38da2f002b6fb491f932
1 use inc::Module::Install;
3 name            ("VCS-Git-Torrent");
4 abstract        ("An implementation of GTP/0.1");
5 author          ("Sam Vilain <samv@cpan.org>");
6 version_from    ("lib/VCS/Git/Torrent.pm");
7 license         ("GPL3");
9 build_requires  ("Test::Depends" => 0.06);
10 requires        ("Coro" => 4.7);
11 requires        ("Bencode");
12 requires        ("perl" => 5.008001);
13 requires        ("Moose" => 0.32);
14 requires        ("Sub::Exporter");
15 requires        ("MooseX::Timestamp" => 0.05);
16 requires        ("IO::Plumbing" => 0.06);
18 eval "use Git";
19 my $git_ok = 1;
20 if ($@) {
21         $git_ok = 0;
23 else {
24         my $git_version = Git::command_oneline("version");
25         $git_version =~ s{.*?(\d)}{$1};
26         my @version_parts = map { 0+$_ } split /\./, $git_version;
27         my $mul = 1;
28         my $version;
29         while (my $v = shift @version_parts) {
30                 $version += $v * $mul;
31                 $mul /= 100;
32         }
33         $git_ok = ( $version >= 1.0500 );
36 unless ($git_ok) {
37         print STDERR <<ENOGIT;
38 **** This program needs git 1.5.0 or later installed.
39 ****   You can get it from http://git.or.cz/
40 ENOGIT
43 &WriteAll;