| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Alien::Build::Plugin::Download::Git; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 2 |  |  | 2 |  | 257599 | use strict; | 
|  | 2 |  |  |  |  | 9 |  | 
|  | 2 |  |  |  |  | 59 |  | 
| 4 | 2 |  |  | 2 |  | 63 | use warnings; | 
|  | 2 |  |  |  |  | 5 |  | 
|  | 2 |  |  |  |  | 55 |  | 
| 5 | 2 |  |  | 2 |  | 35 | use 5.008001; | 
|  | 2 |  |  |  |  | 8 |  | 
| 6 | 2 |  |  | 2 |  | 886 | use Alien::Build::Plugin; | 
|  | 2 |  |  |  |  | 5140 |  | 
|  | 2 |  |  |  |  | 15 |  | 
| 7 | 2 |  |  | 2 |  | 1009 | use Alien::Build::Plugin::Fetch::Git; | 
|  | 2 |  |  |  |  | 6 |  | 
|  | 2 |  |  |  |  | 25 |  | 
| 8 | 2 |  |  | 2 |  | 951 | use Alien::Build::Plugin::Prefer::SortVersions; | 
|  | 2 |  |  |  |  | 1075 |  | 
|  | 2 |  |  |  |  | 14 |  | 
| 9 | 2 |  |  | 2 |  | 926 | use Alien::Build::Plugin::Extract::Directory; | 
|  | 2 |  |  |  |  | 2775 |  | 
|  | 2 |  |  |  |  | 16 |  | 
| 10 | 2 |  |  | 2 |  | 934 | use PerlX::Maybe qw( maybe ); | 
|  | 2 |  |  |  |  | 4615 |  | 
|  | 2 |  |  |  |  | 8 |  | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | # ABSTRACT: Alien::Build plugin to download from git | 
| 13 |  |  |  |  |  |  | our $VERSION = '0.08'; # 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__ |