Acme-Alien-DontPanic
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
# BEGIN code inserted by Dist::Zilla::Plugin::AlienBuild
{ package
MY;
sub postamble {
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
'%{make} install',
];
test [ '%{make} check' ];
};
};
meta->after_hook(
$_ => sub {
my($build) = @_;
$build->runtime_prop->{legacy}->{inline_auto_include} = ['libdontpanic.h'];
},
) for qw( gather_share gather_system );
preamble = | if($^O eq 'midnightbsd')
preamble = | {
preamble = | print "Sorry, MidnightBSD is not supported.\n";
preamble = | print "See:\n";
preamble = | print "https://github.com/PerlAlien/Alien-Base-Extras/issues/4\n";
preamble = | print "pull requests to fix this are welcome.\n";
preamble = | print "OS Unsupported\n";
preamble = | exit;
preamble = | }
diag_preamble = | $post_diag = sub {
diag_preamble = | use Test::Alien::Diag qw( alien_diag );
diag_preamble = | use Acme::Alien::DontPanic;
diag_preamble = | alien_diag 'Acme::Alien::DontPanic';
diag_preamble = | };
[AlienBuild]
:version = 0.10
[Author::Plicease::Core]
maint/release view on Meta::CPAN
}
system 'git', 'diff';
print "does that look right? ";
my $input = <STDIN>;
die 'not right apparently' unless $input =~ /^y/i;
sub run
{
print "+@_\n";
system @_;
die if $?;
}
run 'dzil', 'release';
run 'cpanm', "Acme-Alien-DontPanic-@{[ Alien::Build->VERSION . '00' ]}.tar.gz";
t/00_diag.t view on Meta::CPAN
File::Temp
Inline
Inline::C
Inline::CPP
Path::Tiny
Test2::V0
Test::Alien
Test::Alien::Diag
);
$post_diag = sub {
use Test::Alien::Diag qw( alien_diag );
use Acme::Alien::DontPanic;
alien_diag 'Acme::Alien::DontPanic';
};
my @modules = sort keys %modules;
sub spacer ()
{
diag '';
diag '';
diag '';
}
pass 'okay';
my $max = 1;
$max = $_ > $max ? $_ : $max for map { length $_ } @modules;
xt/author/version.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use FindBin ();
BEGIN {
plan skip_all => "test requires Test::Version 2.00"
unless eval q{
use Test::Version 2.00 qw( version_all_ok ), {
has_version => 1,
filename_match => sub { $_[0] !~ m{/(ConfigData|Install/Files)\.pm$} },
};
1
};
plan skip_all => 'test requires YAML'
unless eval q{ use YAML; 1; };
}
use YAML qw( LoadFile );
use FindBin;
( run in 0.266 second using v1.01-cache-2.11-cpan-4d50c553e7e )