name = IP-Geolocation-MMDB
version = 1.010
author = Andreas Vögele <voegelas@cpan.org>
license = Perl_5
copyright_holder = Andreas Vögele
[@Filter]
-bundle = @Basic
-remove = GatherDir
-remove = MakeMaker
-remove = Readme
[MetaResources]
homepage = https://github.com/voegelas/IP-Geolocation-MMDB/wiki
bugtracker.web = https://github.com/voegelas/IP-Geolocation-MMDB/issues
repository.url = https://github.com/voegelas/IP-Geolocation-MMDB.git
repository.web = https://github.com/voegelas/IP-Geolocation-MMDB
repository.type = git
[CPANFile]
[GatherDir]
exclude_filename = cpanfile
exclude_filename = LICENSE
exclude_filename = Makefile.PL
exclude_filename = META.json
[CopyFilesFromBuild]
copy = cpanfile
copy = LICENSE
copy = Makefile.PL
copy = META.json
[MetaProvides::Package]
[MetaJSON]
[PodCoverageTests]
[PodSyntaxTests]
[MakeMaker::Awesome]
delimiter = |
min_perl_version = 5.016
header = use Config;
header = my @defines;
header = my $byteorder = $Config{byteorder};
header = if (!defined $byteorder) {
header = | warn "\$Config{byteorder} is undefined.\n";
header = | die "OS unsupported\n";
header = }
header = if ($byteorder == 4321 || $byteorder == 87654321) {
header = | push @defines, '-DWORDS_BIGENDIAN';
header = }
header = elsif (!($byteorder == 1234 || $byteorder == 12345678)) {
header = | warn "Unknown byte order: $byteorder\n";
header = | die "OS unsupported\n";
header = }
WriteMakefile_arg = CCFLAGS => Alien::libmaxminddb->cflags . ' ' . $Config{ccflags}
WriteMakefile_arg = LIBS => [ Alien::libmaxminddb->libs ]
WriteMakefile_arg = DEFINE => join(q{ }, @defines)
footer = # Alien::Base->atleast_version might not be available.
footer = use Alien::libmaxminddb;
footer = my $version = Alien::libmaxminddb->version;
footer = if ($version =~ m{^(0|1\.[01])\.}) {
footer = | warn "Error: libmaxminddb $version is too old.\n";
footer = | die "OS unsupported\n";
footer = }
footer = # Some Math::BigInt versions fail on i386 if Perl is built with -Dusequadmath.
footer = use Math::BigInt;
footer = if (!eval { Math::BigInt->from_bytes(pack 'C6', 0xff, 0xff, 0xb0, 0x09, 0x00, 0x00)->as_hex eq '0xffffb0090000' }) {
footer = | warn "Error: Math::BigInt is too old or broken.\n";
footer = | die "OS unsupported\n";
footer = }
[Test::Kwalitee]
[Encoding]
encoding = bytes
match = ^t/data/
[AutoPrereqs]
[Prereqs / ConfigureRequires]
Alien::libmaxminddb = 0
Math::BigInt = 1.999806
[Prereqs / DevelopRequires]
Dist::Zilla = 0
Dist::Zilla::Plugin::CopyFilesFromBuild = 0
Dist::Zilla::Plugin::MakeMaker::Awesome = 0.27
Dist::Zilla::Plugin::MetaProvides::Package = 0
Dist::Zilla::Plugin::Test::Kwalitee = 0