The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use inc::Module::Install;
name('App-SD');
author('Jesse Vincent and Chia-Liang Kao');
#copyright('2008-2009 Best Practical Solutions, LLC');
license('MIT');
version_from('lib/App/SD.pm');

requires 'Prophet'; # URI Params::Validate Class::Accessor Template::Declare::Tags Test::HTTP::Server::Simple JSON Test::WWW::Mechanize Any::Moose

requires('DateTime');
requires('Time::Progress');
# versions < 4.1 are buggy handling utf8
requires('HTML::TreeBuilder' => '4.1');
requires('DateTime::Format::Natural');
requires('HTML::Tree');
requires('URI::file');
requires('Try::Tiny' => '0.02');

build_requires('Test::Script::Run' => '0.02');

feature 'RT sync' => (
    -default => 0,
    'RT::Client::REST' => 0, # RT::Client::REST::Ticket
);

recommends 'RT::Client::REST';


feature 'Hiveminder sync' => (
    -default => 0,
    'Net::Jifty' => 0.09,
    'Email::Address' => 0,
    'Email::MIME' => 0,
    'Path::Class' => 0,
);

recommends 'Net::Jifty';
recommends 'Email::Address';


feature 'Trac sync' => (
    -default => 0,
    'LWP::Simple' => 0,
    'Net::Trac' => 0.16,
);

recommends 'Net::Trac';

feature 'Google Code sync (experimental)' => (
    -default => 0,
    'Net::Google::Code' => 0.14,
);

recommends 'Net::Google::Code' => 0.14;


feature 'GitHub sync (experimental)' => (
    -default => 0,
    'Net::GitHub' => 0.28,
    'Config::GitLike' => 1.03,
);

recommends 'Net::GitHub' => 0.18;

feature 'Redmine sync (experimental)' => (
    -default => 0,
    'Net::Redmine' => 0.08,
);

feature 'Lighthouse sync' => (
    -default          => 0,
    'Net::Lighthouse' => 0.01,
);

install_script('bin/sd');
install_script('bin/git-sd');
install_script('bin/darcs-sd');
install_share('share');

# Include subdirectory tests too.
tests("t/*.t t/*/*.t");
extra_tests;
auto_install;
&WriteAll;