Alien-libmaxminddb
view release on metacpan or search on metacpan
libmaxminddb.PL view on Meta::CPAN
my $DIST_NAME = 'Alien-libmaxminddb';
my $BUNDLED_VERSION = '1.12.2';
package PgkConf;
use File::Spec qw();
sub new {
my ($class, %attrs) = @_;
my $self = bless \%attrs, $class;
$self->{pkgconf} = $self->find_pkgconf(qw(pkgconf pkg-config));
return $self;
}
sub find_pkgconf {
my ($self, @programs) = @_;
my $devnull = File::Spec->devnull;
libmaxminddb.PL view on Meta::CPAN
use Config;
use ExtUtils::CBuilder;
use File::Copy qw();
use File::Path qw();
use File::Spec qw();
use File::Temp qw();
sub new {
my ($class, %attrs) = @_;
my $self = bless \%attrs, $class;
my $builder = ExtUtils::CBuilder->new;
if (!$builder->have_compiler) {
warn "Error: No C compiler found\n";
die "OS unsupported\n";
}
my $is_little_endian = 1;
my $byteorder = $Config{byteorder};
if (!defined $byteorder) {
libmaxminddb.PL view on Meta::CPAN
package ConfigWriter;
use File::Path qw();
use File::Spec qw();
use JSON::PP qw();
sub new {
my ($class, %attrs) = @_;
my $self = bless \%attrs, $class;
return $self;
}
sub install {
my ($self, $dist_dir) = @_;
my $alien_dir = File::Spec->catdir($dist_dir, '_alien');
File::Path::make_path($alien_dir);
( run in 0.405 second using v1.01-cache-2.11-cpan-de7293f3b23 )