The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# This Makefile.PL for  was generated by Dist::Zilla.
# Don't edit it but the dist.ini used to construct it.
BEGIN { require 5.006; }
use strict;
use warnings;
use ExtUtils::MakeMaker 6.30;

use File::Temp ();
use IPC::Cmd qw( can_run );
use IPC::Run qw( run );

sub svn_is_installed {

    my %path;

    # Check that the basic svn commands are available.
    for my $cmd (qw( svn svnadmin svnserve )) {
        return unless $path{$cmd} = can_run($cmd);
    }

    my $temp = File::Temp::newdir('temp.XXXX',
                                  CLEANUP => 1, EXLOCK => 0, TMPDIR => 1);

    # Check that we can create a repo
    return unless run([ $path{svnadmin}, 'create', $temp ]);

    # Check that we can spawn a server for the repo
    my ($in, $out, $err);
    return unless run([ $path{svnserve}, '-i', '-r' => $temp, '--foreground' ],
                        \$in, \$out, \$err);

    return 1;
}

if (!svn_is_installed()) {
    warn 'Subversion does not appear to be installed correctly, exiting';
    exit 0;
}

my %WriteMakefileArgs = (
  'ABSTRACT' => 'Subversion repository fixtures for testing',
  'AUTHOR' => 'Stephen Thirlwall <sdt@cpan.org>',
  'BUILD_REQUIRES' => {
    'Config' => '0',
    'File::Find' => '0',
    'IPC::Cmd' => '0',
    'Probe::Perl' => '0',
    'Test::Exception' => '0',
    'Test::More' => '0',
    'Test::NoWarnings' => '0'
  },
  'CONFIGURE_REQUIRES' => {
    'ExtUtils::MakeMaker' => '6.30',
    'File::Temp' => '0',
    'IPC::Cmd' => '0',
    'IPC::Run' => '0'
  },
  'DISTNAME' => 'Test-SVN-Repo',
  'EXE_FILES' => [],
  'LICENSE' => 'perl',
  'NAME' => 'Test::SVN::Repo',
  'PREREQ_PM' => {
    'Carp' => '0',
    'Class::Accessor' => '0',
    'File::Temp' => '0',
    'IPC::Run' => '0',
    'Path::Class' => '0',
    'Test::Builder::Module' => '0',
    'Try::Tiny' => '0',
    'URI::file' => '0',
    'base' => '0',
    'strict' => '0',
    'warnings' => '0'
  },
  'VERSION' => '0.010',
  'test' => {
    'TESTS' => 't/*.t'
  }
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
  my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
  my $pp = $WriteMakefileArgs{PREREQ_PM};
  for my $mod ( keys %$br ) {
    if ( exists $pp->{$mod} ) {
      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
    }
    else {
      $pp->{$mod} = $br->{$mod};
    }
  }
}

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

WriteMakefile(%WriteMakefileArgs);