Alien-MSYS
view release on metacpan or search on metacpan
use alienfile;
use Path::Tiny qw( path );
use File::Glob qw( bsd_glob );
use File::Which qw( which );
use List::Util qw( all );
# no share install unless on windows
delete $ENV{ALIEN_INSTALL_TYPE}
if $^O ne 'MSWin32' && $^O ne 'cygwin';
if($^O eq 'MSWin32')
{
my $ver;
{
unless(-f $exe)
{
die "not found: $exe";
}
}
$build->log("remove package cache, and man pages");
# remove var/cache/mingw-get/packages/*
unlink $_ for bsd_glob('var/cache/mingw-get/packages/*');
# remove msys/1.0/share/{doc,man}
eval { path('msys/1.0/share/doc')->remove_tree };
eval { path('msys/1.0/share/man')->remove_tree };
$build->log("moving to @{[ $build->install_prop->{stage} ]}");
if($^O eq 'cygwin')
{
$build->system('mv * %{.install.stage}');
}
( run in 0.485 second using v1.01-cache-2.11-cpan-49f99fa48dc )