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");
9 build_requires ("Test::Depends" => 0.06);
10 requires ("Coro" => 4.7);
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);
24 my $git_version = Git::command_oneline("version");
25 $git_version =~ s{.*?(\d)}{$1};
26 my @version_parts = map { 0+$_ } split /\./, $git_version;
29 while (my $v = shift @version_parts) {
30 $version += $v * $mul;
33 $git_ok = ( $version >= 1.0500 );
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/