| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Alien::Build::Plugin::Download::Git; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 2 |  |  | 2 |  | 229108 | use strict; | 
|  | 2 |  |  |  |  | 13 |  | 
|  | 2 |  |  |  |  | 60 |  | 
| 4 | 2 |  |  | 2 |  | 8 | use warnings; | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 38 |  | 
| 5 | 2 |  |  | 2 |  | 55 | use 5.008001; | 
|  | 2 |  |  |  |  | 19 |  | 
| 6 | 2 |  |  | 2 |  | 782 | use Alien::Build::Plugin; | 
|  | 2 |  |  |  |  | 19654 |  | 
|  | 2 |  |  |  |  | 13 |  | 
| 7 | 2 |  |  | 2 |  | 937 | use Alien::Build::Plugin::Fetch::Git; | 
|  | 2 |  |  |  |  | 7 |  | 
|  | 2 |  |  |  |  | 29 |  | 
| 8 | 2 |  |  | 2 |  | 862 | use Alien::Build::Plugin::Prefer::SortVersions; | 
|  | 2 |  |  |  |  | 1100 |  | 
|  | 2 |  |  |  |  | 12 |  | 
| 9 | 2 |  |  | 2 |  | 807 | use Alien::Build::Plugin::Extract::Directory; | 
|  | 2 |  |  |  |  | 2401 |  | 
|  | 2 |  |  |  |  | 16 |  | 
| 10 | 2 |  |  | 2 |  | 792 | use PerlX::Maybe qw( maybe ); | 
|  | 2 |  |  |  |  | 4419 |  | 
|  | 2 |  |  |  |  | 7 |  | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | # ABSTRACT: Alien::Build plugin to download from git | 
| 13 |  |  |  |  |  |  | our $VERSION = '0.09'; # VERSION | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | has filter => undef; | 
| 17 |  |  |  |  |  |  | has version => undef; | 
| 18 |  |  |  |  |  |  |  | 
| 19 |  |  |  |  |  |  | sub init | 
| 20 |  |  |  |  |  |  | { | 
| 21 | 0 |  |  | 0 | 1 |  | my($self, $meta) = @_; | 
| 22 |  |  |  |  |  |  |  | 
| 23 | 0 |  |  |  |  |  | $meta->add_requires('configure' => 'Alien::Build::Plugin::Download::Git'        => '0.01'); | 
| 24 | 0 |  |  |  |  |  | $meta->add_requires('configure' => 'Alien::Build::Plugin::Fetch::Git'           => '0.01'); | 
| 25 | 0 |  |  |  |  |  | $meta->add_requires('configure' => 'Alien::Build::Plugin::Prefer::SortVersions' => '0.65'); | 
| 26 | 0 |  |  |  |  |  | $meta->add_requires('configure' => 'Alien::Build::Plugin::Extract::Directory'   => '0.65'); | 
| 27 |  |  |  |  |  |  |  | 
| 28 | 0 |  |  |  |  |  | my $fetch = Alien::Build::Plugin::Fetch::Git->new; | 
| 29 | 0 |  |  |  |  |  | $fetch->init($meta); | 
| 30 |  |  |  |  |  |  |  | 
| 31 | 0 |  |  |  |  |  | my $prefer = Alien::Build::Plugin::Prefer::SortVersions->new( | 
| 32 |  |  |  |  |  |  | maybe filter  => $self->filter, | 
| 33 |  |  |  |  |  |  | maybe version => $self->version, | 
| 34 |  |  |  |  |  |  | ); | 
| 35 |  |  |  |  |  |  |  | 
| 36 | 0 |  |  |  |  |  | $prefer->init($meta); | 
| 37 |  |  |  |  |  |  |  | 
| 38 | 0 |  |  |  |  |  | my $extract = Alien::Build::Plugin::Extract::Directory->new; | 
| 39 | 0 |  |  |  |  |  | $extract->init($meta); | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | } | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | 1; | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | __END__ |