#!/usr/bin/env perl
my
@dirs
;
if
(
defined
(
$ENV
{
'GITHUB_ACTION'
}) ||
defined
(
$ENV
{
'CIRCLECI'
}) ||
defined
(
$ENV
{
'TRAVIS_PERL_VERSION'
}) ||
defined
(
$ENV
{
'APPVEYOR'
})) {
warn
'AUTOMATED_TESTING added for you'
if
(!
defined
(
$ENV
{
'AUTOMATED_TESTING'
}));
$ENV
{
'AUTOMATED_TESTING'
} = 1;
$ENV
{
'NO_NETWORK_TESTING'
} = 1;
}
elsif
(!
$ENV
{
'NO_NETWORK_TESTING'
}) {
push
@dirs
,
'lib/Genealogy/ObituaryDailyTimes/data'
;
}
foreach
my
$dir
(
@dirs
) {
if
(! -d
$dir
) {
print
"Creating the download directory $dir\n"
;
mkdir
$dir
, 0755 ||
die
"$dir: $@"
;
if
(
$ENV
{
'AUTOMATED_TESTING'
}) {
open
(
my
$dummy
,
'>'
,
"$dir/dummy"
);
}
}
}
my
$prereqs
= {
'autodie'
=> 0,
'constant'
=> 0,
'Carp'
=> 0,
'Database::Abstraction'
=> 0.04,
'DBD::SQLite'
=> 0,
'DBD::SQLite::Constants'
=> 0,
'Error::Simple'
=> 0,
'ExtUtils::MakeMaker'
=> 6.64,
'File::Basename'
=> 0,
'File::pfopen'
=> 0,
'File::Slurp'
=> 0,
'File::Spec'
=> 0,
'File::Temp'
=> 0,
'Module::Info'
=> 0,
'Params::Get'
=> 0,
'Scalar::Util'
=> 0,
'Text::CSV'
=> 0
};
unless
(
defined
(
$ENV
{
'NO_NETWORK_TESTING'
})) {
$prereqs
->{
'DBI'
} = 0;
$prereqs
->{
'File::HomeDir'
} = 0;
$prereqs
->{
'HTML::Entities'
} = 0;
$prereqs
->{
'HTTP::Cache::Transparent'
} = 0;
$prereqs
->{
'LWP::ConnCache'
} = 0;
$prereqs
->{
'LWP::Protocol::https'
} = 0;
$prereqs
->{
'LWP::UserAgent::WithCache'
} = 0;
$prereqs
->{
'Lingua::EN::NameCase'
} = 0;
$prereqs
->{
'Try::Tiny'
} = 0;
}
my
$dist
= {
COMPRESS
=>
'gzip -9f'
,
SUFFIX
=>
'gz'
};
if
($^O eq
'darwin'
) {
$dist
->{
'TAR'
} =
'gtar'
;
}
WriteMakefile(
NAME
=>
'Genealogy::ObituaryDailyTimes'
,
AUTHOR
=>
q{Nigel Horne <njh@bandsman.co.uk>}
,
VERSION_FROM
=>
'lib/Genealogy/ObituaryDailyTimes.pm'
,
ABSTRACT_FROM
=>
'lib/Genealogy/ObituaryDailyTimes.pm'
,
((
defined
(
$ExtUtils::MakeMaker::VERSION
) &&
(
$ExtUtils::MakeMaker::VERSION
>= 6.3002))
? (
'LICENSE'
=>
'GPL'
)
: ()),
'LIBS'
=> [
''
],
'DEFINE'
=>
''
,
'INC'
=>
''
,
PL_FILES
=> (
defined
(
$ENV
{
'AUTOMATED_TESTING'
}) ? {} : {
'bin/create_db.PL'
=>
'bin/create_db'
}),
TEST_REQUIRES
=> {
'Test::Carp'
=> 0,
'Test::DescribeMe'
=> 0,
'Test::Most'
=> 0,
'Test::NoWarnings'
=> 0,
'Test::Needs'
=> 0,
'Test::HTTPStatus'
=> 0,
'IPC::System::Simple'
=> 0,
},
PREREQ_PM
=>
$prereqs
,
dist
=>
$dist
,
clean
=> {
FILES
=>
'Genealogy-ObituaryDailyTimes-*'
},
realclean
=> {
FILES
=>
'Genealogy-ObituaryDailyTimes-* lib/Genealogy/ObituaryDailyTimes/data'
},
META_MERGE
=> {
'meta-spec'
=> {
version
=> 2 },
resources
=> {
repository
=> {
type
=>
'git'
,
},
bugtracker
=> {
mailto
=>
'bug-Genealogy-ObituaryDailyTimes@rt.cpan.org'
},
},
MIN_PERL_VERSION
=>
'5.6.2'
);