# usage: $0 && ./Build installdeps
# requires: xlhtml, libaspell-dev, libexpat-dev, libmagic-dev, libqrencode-dev, pkg-config, libssl-dev

use Module::Build;
my $build = Module::Build->new(
   module_name => 'LIMS',
   license  => 'perl',
   requires  => {
	   autovivification => 0,
	   Algorithm::Diff => 0,
       Array::Compare => 0,
       Array::Diff => 0,
	   Archive::Extract => 0,
	   Archive::Zip => 0,
	   Capture::Tiny => 0,
	   CGI => 0,
	   CGI::Ajax => 0,
	   CGI::HTMLError => 0,
	   CGI::Fast => 0,
	   CGI::Pager => 0,
	   CGI::Session => '4.43', # uses find() to avoid updating atime()
	   CGI::Session::ExpireSessions => 0,
	   CGI::Session::Flash => 0,
	   CGI::Session::ID::incr => 0,
	   CGI::Session::Serialize::yaml => 0,
	   CGI::Simple::Standard => 0,
       Class::Std::Fast::Storable => 0,
	   Compress::Zlib => 0,
	   Config::Auto => 0,
	   Config::Tiny => 0,
       Const::Fast => 0,
       Crypt::CBC => 0,
       Crypt::DES => 0,
       Data::GUID => 0,
	   Data::Password::zxcvbn => 0,
       Data::Printer => 0,
	   Data::Random => 0, # convert_hilis3
       Daemon::Control => 0,
	   DBD::mysql => '4.014', # bad things can happen <4.012 !!
	   DBIx::Simple => 0,
#	   DBIx::Simple::OO => 0, object(s) supported in DBIx::Simple
	   DBIx::Profile => 0,
       Data::Dumper::Concise => 0,
	   Data::FormValidator => 0,
	   Data::FormValidator::Constraints::DateTime => 0,
	   Data::FormValidator::Constraints::MethodsFactory => 0,
	   Data::Traverse => 0,
	   Date::Calc => 0,
	   DateTime => 0,
       DateTime::HiRes => 0,
	   DateTime::Format::DateParse => 0,
	   Devel::Cycle => 0,
	   Devel::Declare => 0,
       Digest::SHA1 => 0,
	   Email::Stuff => 0,
	   Encode => 0,
	   Encoding::FixLatin => 0,
	   Excel::Writer::XLSX => 0, # FileUploader
	   FCGI::ProcManager => 0,
	   File::Path => '2.08',
	   FormValidator::Simple => 0,
       HTML::Barcode::DataMatrix => 0,
       HTML::Barcode::Code128 => 0,
       HTML::Barcode::Code93 => 0,
       HTML::Barcode::QRCode => 0,
       HTML::Escape => 0,
#	   HTML::HTMLDoc => 0,
	   HTTP::BrowserDetect => 0,
	   Image::Dot => 0, # for C::Roles::Chart
       Import::Into => 0,
       indirect => 0,
	   IO::All => 0,
	   IO::Compress::Gzip => 0,
       IO::Socket::SSL => 0,
       IPC::Run => 0,
       IPC::System::Simple => 0,
	   JavaScript::DataFormValidator => 0,
	   Lingua::EN::Inflect => 0,
	   Lingua::EN::Numbers => 0,
	   Lingua::EN::Words2Nums => 0,
       List::Compare => 0,
	   Log::Dispatch => 0,
	   Log::Dispatch::File::Rolling => 0,
	   Log::Dispatch::FileRotate => 0,
	   Log::Dispatch::Email::MailSendmail => 0,
	   Logfile::Rotate => 0,
	   Math::Round => 0,
       Math::SigFigs => 0,
       Modern::Perl => 0,
	   Module::Find => 0,
	   Mail::Sendmail => 0,
	   Moose => 0.93, # for new native traits
	   MooseX::AttributeHelpers => '0.23',
	   MooseX::NonMoose => 0,
	   MooseX::Object::Pluggable => 0,
       MooseX::Role::Parameterized => 0,
       Net::HL7::Request => 0,
	   Net::SCP::Expect => 0,
       Net::SSLeay => 0,
	   Net::Telnet => 0,
	   namespace::clean => '0.13',
	   namespace::autoclean => '0.09',
       Number::Format => 0,
       PadWalker => 0,
       Path::Tiny => 0,
	   parent => 0,
       PDF::API2 => 0,
	   PDF::WebKit => 0,
	   Rose::DB => 0,
	   Rose::DB::Object => 0,
	   Rose::DB::Object::Helpers => 0,
	   Rose::DB::Object::Loader => 0,
       Silly::Werder => 0,
       Sphinx::Search => 0,
       SOAP::Lite => 0,
       SOAP::WSDL => 0,
       Sort::Naturally => 0,
	   Spreadsheet::ParseExcel_XLHTML => 0, # needs xlhtml package (apt-get)
	   Spreadsheet::ParseExcel::Simple => 0,
	   Spreadsheet::WriteExcel::Simple => 0,
	   SQL::Abstract => 0,
	   SQL::Abstract::More => 0,
	   SQL::Abstract::Plugin::InsertMulti => 0,
	   SQL::Library => 0,
       Statistics::Descriptive => 0,
	   Sub::Current => 0,
	   Sys::SigAction => 0,
       Tie::DataDumper => 0,
       Template::Plugin::DateTime => 0,
	   Test::Class::Load => 0,
       Test::File => 0,
	   Test::More => 0,
	   Test::WWW::Mechanize => '1.24',
	   Test::WWW::Mechanize::CGIApp => 0,
	   Text::Aspell => 0, # needs libaspell-dev (maybe + libtext-aspell-perl)
	   Text::CSV::Simple => 0,
       Text::CSV::Slurp => 0.901, # added support for field_order; in local download dir
       Text::CSV_XS => 0,
	   Text::Wrap => 0,
	   Time::ParseDate => 0,
	   XML::Simple => 0,
	   XML::SAX::ParserFactory => 0,
	   XML::Validator::Schema => 0,
       YAML::Syck => 0, # essential if using CGI::Session::Serialize::yaml - YAML screws ____CAP_MessageStack_Stack
	   YAML::Tiny => 0,
	   Web::Simple => 0,
	   WWW::Mechanize => '1.60',
	   CGI::Application => 0,
	   CGI::Application::Server => 0,
	   CGI::Application::Dispatch => 0, # 2.14 has Apache::TestMM issue - installs OK with Build.PL
	   CGI::Application::Plugin::ActionDispatch => 0,
	   CGI::Application::Plugin::AnyCGI => 0,
	   CGI::Application::Plugin::AnyTemplate => 0,
	   CGI::Application::Plugin::Authentication => 0,
	   CGI::Application::Plugin::Authorization => 0,
	   CGI::Application::Plugin::AutoRunmode => 0,
	   CGI::Application::Plugin::ConfigAuto => 0,
	   CGI::Application::Plugin::DBH => '4.00', # for FileUploader
	   CGI::Application::Plugin::FillInForm => 0,
	   CGI::Application::Plugin::Flash => 0,
	   CGI::Application::Plugin::Forward => 0,
	   CGI::Application::Plugin::JSON => 0,
	   CGI::Application::Plugin::LogDispatch => 0,
	   CGI::Application::Plugin::Output::XSV => 0,
	   CGI::Application::Plugin::Redirect => 0,
	   CGI::Application::Plugin::RunmodeDeclare => 0,
	   CGI::Application::Plugin::Session => 0,
	   CGI::Application::Plugin::TT => 0,
	   CGI::Application::Plugin::Stash => 0,
	   CGI::Application::Plugin::Stream => 0,
	   CGI::Application::Plugin::ValidateRM => 0,
	   CGI::Application::Standard::Config => 0,
	   CGI::Application::Plugin::MessageStack => 0,
       WWW::Trello::Lite => 0,
       MooseX::Object::Pluggable => 0,
    },
);
$build->create_build_script=> 0,
