The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# This Makefile.PL for Git-Hooks was generated by
# Dist::Zilla::Plugin::MakeMaker::Awesome 0.38.
# Don't edit it but the dist.ini and plugins used to construct it.

use strict;
use warnings;

use 5.010;
use ExtUtils::MakeMaker;

 # see http://wiki.cpantesters.org/wiki/CPANAuthorNotes
 if ($^O eq 'MSWin32') {
     warn "I do not support Windows yet. Sorry.\n";
     exit 0;
 }

 sub git {
     my ($args) = @_;
     my $output = `git $args`;
     if ($? == -1) {
         warn "Failed to execute 'git $args': $!\n";
         exit 0;
     } elsif ($? != 0) {
         warn "Command 'git $args' died with exit code=$?\n";
         exit 0;
     }
     return $output;
 }

 # Check if we have a proper git
 chomp(my $git_version = git('version'));
 if (my ($major, $minor, $patch) = ($git_version =~ /(\d+)\.(\d+)\.(\d+)/)) {
     if ($major < 1 || $major == 1 && ($minor < 7 || $minor == 7 && $patch < 1)) {
 	warn "Don't support gits older than 1.7.1. Your version is $git_version.\n";
 	exit 0;
     }
 } else {
     warn "Couldn't parse git version: '$git_version'\n";
     exit 0;
 }

my %WriteMakefileArgs = (
  "ABSTRACT" => "Framework for implementing Git (and Gerrit) hooks",
  "AUTHOR" => "Gustavo L. de M. Chaves <gnustavo\@cpan.org>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0
  },
  "DISTNAME" => "Git-Hooks",
  "LICENSE" => "perl",
  "MIN_PERL_VERSION" => "5.010",
  "NAME" => "Git::Hooks",
  "PREREQ_PM" => {
    "Carp" => 0,
    "Cwd" => 0,
    "Email::Simple" => 0,
    "Email::Valid" => 0,
    "Encode" => 0,
    "Exporter" => 0,
    "File::pushd" => 0,
    "Git::Repository" => 0,
    "Git::Repository::Log" => 0,
    "Git::Repository::Plugin" => 0,
    "HTML::Entities" => 0,
    "List::MoreUtils" => 0,
    "Path::Tiny" => "0.060",
    "Set::Scalar" => 0,
    "Sub::Util" => 0,
    "Test::More" => 0,
    "Text::Glob" => 0,
    "Try::Tiny" => 0,
    "URI::Escape" => 0,
    "URI::file" => 0,
    "parent" => 0,
    "strict" => 0,
    "utf8" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "Config" => 0,
    "Data::Dumper" => 0,
    "Email::Sender::Transport::Mbox" => 0,
    "Path::Tiny" => "0.060",
    "Test::Requires::Git" => 0,
    "lib" => 0
  },
  "VERSION" => "2.8.0",
  "test" => {
    "TESTS" => "t/*.t"
  }
);

my %FallbackPrereqs = (
  "Carp" => 0,
  "Config" => 0,
  "Cwd" => 0,
  "Data::Dumper" => 0,
  "Email::Sender::Transport::Mbox" => 0,
  "Email::Simple" => 0,
  "Email::Valid" => 0,
  "Encode" => 0,
  "Exporter" => 0,
  "File::pushd" => 0,
  "Git::Repository" => 0,
  "Git::Repository::Log" => 0,
  "Git::Repository::Plugin" => 0,
  "HTML::Entities" => 0,
  "List::MoreUtils" => 0,
  "Path::Tiny" => "0.060",
  "Set::Scalar" => 0,
  "Sub::Util" => 0,
  "Test::More" => 0,
  "Test::Requires::Git" => 0,
  "Text::Glob" => 0,
  "Try::Tiny" => 0,
  "URI::Escape" => 0,
  "URI::file" => 0,
  "lib" => 0,
  "parent" => 0,
  "strict" => 0,
  "utf8" => 0,
  "warnings" => 0
);

unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

WriteMakefile(%WriteMakefileArgs);