Alien-Build-MB
view release on metacpan or search on metacpan
lib/Alien/Build/MB.pm view on Meta::CPAN
{
my($name) = @_;
my $path = Path::Tiny->new("_alien/mb/$name");
return -f $path;
}
sub _alien_touch ($)
{
my($name) = @_;
my $path = Path::Tiny->new("_alien/mb/$name");
$path->parent->mkpath;
$path->touch;
}
sub ACTION_alien_download
{
my($self) = @_;
return $self if _alien_already_done 'download';
my $build = $self->alien_build;
$build->download;
lib/Alien/Build/MB.pm view on Meta::CPAN
my $archdir = Path::Tiny->new("./blib/arch/auto/@{[ join '/', split /-/, $self->dist_name ]}");
$archdir->mkpath;
my $archfile = $archdir->child($archdir->basename . ".txt");
$archfile->spew('Alien based distribution with architecture specific file in share');
}
{
my @parts = split /-/, $self->dist_name;
my $package = join '::', @parts;
my $install_files = Path::Tiny->new("./blib/lib")->child( @parts, 'Install', 'Files.pm' );
$install_files->parent->mkpath;
$install_files->spew_utf8(
"package ${package}::Install::Files;\n",
"use strict;\n",
"use warnings;\n",
"require ${package};\n",
"sub Inline { shift; ${package}->Inline(\@_) }\n",
"1;\n",
"\n",
"=begin Pod::Coverage\n",
"\n",
( run in 0.512 second using v1.01-cache-2.11-cpan-4d50c553e7e )