Archive-Libarchive-XS
view release on metacpan or search on metacpan
inc/My/ModuleBuild.pm view on Meta::CPAN
use Capture::Tiny qw( capture_merged );
sub new
{
my($class, %args) = @_;
%args = (%args, Alien::Base::Wrapper->mb_args);
$args{include_dirs} = 'xs';
$args{c_source} = 'xs';
my $self = $class->SUPER::new(%args);
$self->add_to_cleanup(
File::Spec->catfile('xs', 'func.h.tmp'),
File::Spec->catfile('xs', 'func.h'),
'*.core',
'test-*',
);
$self;
}
inc/My/ModuleBuild.pm view on Meta::CPAN
print $fh "\n#endif\n";
close $fh;
rename(File::Spec->catfile('xs', 'func.h.tmp'), File::Spec->catfile('xs', 'func.h')) || die "unable to rename $!";
}
sub ACTION_build
{
my $self = shift;
$self->depends_on('build_prep');
$self->SUPER::ACTION_build(@_);
}
sub ACTION_test
{
# doesn't seem like this should be necessary, but without
# this, it doesn't call my ACTION_build
my $self = shift;
$self->depends_on('build');
$self->SUPER::ACTION_test(@_);
}
sub ACTION_install
{
# doesn't seem like this should be necessary, but without
# this, it doesn't call my ACTION_build
my $self = shift;
$self->depends_on('build');
$self->SUPER::ACTION_install(@_);
}
my $dir;
my $count = 0;
my $cc;
sub _cc
{
require ExtUtils::CChecker;
( run in 0.239 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )