Alien-unibilium
view release on metacpan or search on metacpan
inc/Alien/make/Module/Build.pm view on Meta::CPAN
my %args = @_;
my $use_bundled = !!$args{use_bundled};
$args{get_options}{bundled} = {
store => \$use_bundled,
type => "+",
};
my $self = $class->SUPER::new( %args );
my $module = $self->pkgconfig_module;
my $version = $self->pkgconfig_version;
$use_bundled = 1 if
!$use_bundled and defined $self->do_requires_pkgconfig( $module, atleast_version => $version );
$self->configure_requires->{$_} ||= $more_configure_requires{$_} for keys %more_configure_requires;
# Only do this /after/ the do_requires_pkgconfig for toplevel module
inc/Alien/make/Module/Build.pm view on Meta::CPAN
{
my $self = shift;
$self->apply_extra_pkgconfig_paths;
# There's two bugs in just doing this:
# 1) symlinks (e.g. libfoo.so => libfoo.so.1) get copied as new files
# 2) needlessly considers the .pc file different and copies/relocates it
# every time.
# Both of these are still under investigation
$self->SUPER::ACTION_install;
# The .pc file that 'ACTION_install' has written contains the build-time
# blib paths in it. We need that rewritten for the real install location
#
# We don't do this at 'ACTION_code' time, because of one awkward cornercase.
# When 'cpan> test Foo' is testing an entire tree of dependent modules, it
# never installs them, instead adding each of them to the PERL5LIB in turn
# so later ones can find them. We needed the path to be "correct" at that
# point so that dependent modules can at least find something to link and
# test against.
inc/Alien/make/Module/Build.pm view on Meta::CPAN
if( $self->notes( 'use_bundled' ) ) {
$self->apply_extra_pkgconfig_paths;
if( -d $self->_srcdir ) {
$self->make_in_srcdir( "clean" );
}
unlink( $self->_stampfile( "build" ) );
}
$self->SUPER::ACTION_clean;
}
sub ACTION_realclean
{
my $self = shift;
if( -d $self->_srcdir ) {
system( "rm", "-rf", $self->_srcdir ); # best effort; ignore failure
}
$self->SUPER::ACTION_realclean;
}
0x55AA;
( run in 1.090 second using v1.01-cache-2.11-cpan-49f99fa48dc )