The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;

use Module::Build qw( );

my $class = Module::Build->subclass(
   code => <<'__EOI__',
      sub ACTION_disttest {
         my $self = shift;
         local $ENV{DEVEL_TESTS} = exists($ENV{DEVEL_TESTS}) ? $ENV{DEVEL_TESTS} : 1;
         $self->SUPER::ACTION_disttest(@_);
      }
__EOI__
);


my $build = $class->new(
   module_name => 'WWW::Kickstarter',
   dist_author => 'Eric Brine <ikegami@adaelis.com>',
   license     => 'CC0_1_0',
   configure_requires => {
      'Module::Build'              => 0.36_14,
      'Software::License::CC0_1_0' => 0,
   },
   build_requires => {
      'FindBin'    => 0,
      'Test::More' => 0,
   },
   requires => {
      'autovivification'      => 0,
      'Carp'                  => 0,
      'overload'              => 0,
      'Time::HiRes'           => 0,
      'URI'                   => 0,
      'URI::Escape'           => 0,
      'URI::QueryParam'       => 0,
      'version'               => 0,

      # Used by replaceable WWW::Kickstarter::HttpClient::Lwp
      'HTTP::Headers'         => 0,
      'HTTP::Request::Common' => 0,
      'LWP::Protocol::https'  => 0,
      'LWP::UserAgent'        => 0,

      # Used by replaceable WWW::Kickstarter::JsonParser::JsonXs
      'JSON::XS'              => 0,
   },
   add_to_cleanup => [ 'WWW-Kickstarter-*' ],
   meta_merge     => {
      resources => {
         repository => "http://github.com/ikegami/perl-WWW-Kickstarter",
      }
   },
);

$build->create_build_script();