Alien-pkgconf
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
chomp $libs;
my $version = `pkgconf --modversion libpkgconf`;
die "getting version" if $?;
chomp $version;
require File::Spec;
require JSON::PP;
my $status_filename = File::Spec->catfile('_alien', '05stage.json');
mkdir '_alien' unless -d '_alien';
open my $fh, '>', $status_filename;
print $fh JSON::PP->new->utf8->canonical->encode({
cflags => $cflags,
libs => $libs,
install_type => 'system',
version => $version,
($dll ? (dll => $dll ) : ()),
});
close $fh;
$install_type = 'system';
script/build.pl view on Meta::CPAN
foreach my $cleanup (@cleanup)
{
rmtree(_catdir($ENV{DESTDIR}, @prefix, @$cleanup), 0, 0);
}
chdir(_catdir(File::Spec->updir, File::Spec->updir, File::Spec->updir));
my $fh;
open($fh, '>', $status_filename) || die "unable to write $status_filename $!";
print $fh JSON::PP->new->utf8->canonical->encode({ destdir => $ENV{DESTDIR}, prefix => \@prefix, skip => 0 });
close $fh;
script/probe.pl view on Meta::CPAN
{
die "do not know enough about this OS to probe for correct paths. Please open a ticket https://github.com/PerlAlien/Alien-pkgconf/issues";
}
my $my_pkg_config_dir = File::Spec->catdir(@prefix, 'lib', 'pkgconfig');
$my_pkg_config_dir =~ s{\\}{/}g if $^O eq 'MSWin32';
unshift @{ $status{pkg_config_dir} }, $my_pkg_config_dir;
mkdir '_alien' unless -d '_alien';
open my $fh, '>', $status_filename;
print $fh JSON::PP->new->utf8->canonical->encode(\%status);
close $fh;
script/stage.pl view on Meta::CPAN
$status{dll} = $fn;
}
}
closedir $dh;
}
}
{
my $filename = File::Spec->catfile($share_dir, 'status.json');
open my $fh, '>', $filename;
print $fh JSON::PP->new->utf8->canonical->encode(\%status);
close $fh;
}
{
open my $fh, '>', $status_filename;
print $fh JSON::PP->new->utf8->canonical->encode(\%status);
close $fh;
}
{
my $dir = File::Spec->catdir(qw( blib arch auto Alien pkgconf ));
my $fn = File::Spec->catfile($dir, 'pkgconf.txt');
mkpath $dir, 0, 0744;
open my $fh, '>', $fn;
print $fh "Alien based distribution with architecture specific file in share\n";
close $fh;
( run in 0.497 second using v1.01-cache-2.11-cpan-49f99fa48dc )