use 5.010;
use ExtUtils::MakeMaker;
my $version = '1.00';
#
# The following is needed, because User::Identity does gracefully handle
# a missing Geography::Countries, but is incompatible with older releases.
#
my %prereq;
my ($gc, $gc_version) = (Geography::Countries => 1.4);
eval "require $gc";
if($@ =~ m/^Can't locate/)
{ # Not installed, but it is optional...
}
elsif($@)
{ # Other error message
warn "Found problems compiling $gc:\n$@";
$prereq{$gc} = $gc_version;
}
elsif($gc->VERSION < $gc_version)
{ warn "$gc is too old (",$gc->VERSION,"), and needs to be reinstalled\n";
$prereq{$gc} = $gc_version;
}
WriteMakefile
( NAME => 'User::Identity'
, VERSION => $version
, PREREQ_PM => \%prereq
, ABSTRACT => 'Collect information about a user'
, AUTHOR => 'Mark Overmeer <markov@cpan.org>'
, LICENSE => 'perl_5'
, META_MERGE =>
{ 'meta-spec' => { version => 2 }
, resources =>
{ repository =>
{ type => 'git'
, url => 'https://github.com/markov2/perl5-User-Identity.git'
, web => 'https://github.com/markov2/perl5-User-Identity'
}
, homepage => 'http://perl.overmeer.net/CPAN/'
, license => [ 'http://dev.perl.org/licenses/' ]
}
}
);
### used by oodist during production of distribution
sub MY::postamble { <<'__POSTAMBLE' }
# for DIST
RAWDIR = ../public_html/user-identity/raw
DISTDIR = ../public_html/user-identity/source
LICENSE = perl
# for POD
FIRST_YEAR = 2003
EMAIL = markov@cpan.org
WEBSITE = http://perl.overmeer.net/CPAN/
__POSTAMBLE