Alien-Base-ModuleBuild

 view release on metacpan or  search on metacpan

author.yml  view on Meta::CPAN

    - Alien::Base::ModuleBuild#alien_create_repositories
    - Alien::Base::ModuleBuild#alien_detect_blib_scheme
    - Alien::Base::ModuleBuild#alien_exec_prefix
    - Alien::Base::ModuleBuild#alien_find_lib_paths
    - Alien::Base::ModuleBuild#alien_generate_manual_pkgconfig
    - Alien::Base::ModuleBuild#alien_init_temp_dir
    - Alien::Base::ModuleBuild#alien_library_destination
    - Alien::Base::ModuleBuild#alien_load_pkgconfig
    - Alien::Base::ModuleBuild#alien_refresh_manual_pkgconfig
    - Alien::Base::ModuleBuild#alien_refresh_packlist
    - Alien::Base::ModuleBuild#alien_relocation_fixup

    # these probabl should be documented in ABMB, but aren't.
    - Alien::Base::ModuleBuild#ACTION_.*

lib/Alien/Base/ModuleBuild.pm  view on Meta::CPAN

sub ACTION_test {
  my $self = shift;
  $self->depends_on('alien_test');
  $self->SUPER::ACTION_test;
}

sub ACTION_install {
  my $self = shift;
  $self->SUPER::ACTION_install;
  if($self->alien_stage_install) {
    $self->alien_relocation_fixup;
  } else {
    $self->depends_on('alien_install');
  }
}

sub ACTION_alien_install {
  my $self = shift;

  local $| = 1; # don't buffer stdout

lib/Alien/Base/ModuleBuild.pm  view on Meta::CPAN

  for my $file (@$files) {
    next if $packlist->{$file};
    print "Adding $file to packlist\n";
    $changed++;
    $packlist->{$file}++;
  };

  $packlist->write if $changed;
}

sub alien_relocation_fixup {
  my($self) = @_;

  # so far relocation fixup is only needed on OS X
  return unless $^O eq 'darwin';

  my $dist_name = $self->dist_name;
  my $share = _catdir( $self->install_destination($self->alien_arch ? 'arch' : 'lib'), qw/auto share dist/, $dist_name );

  require File::Find;
  File::Find::find(sub {
    if(/\.dylib$/)
    {
      # save the original mode and make it writable



( run in 0.516 second using v1.01-cache-2.11-cpan-71847e10f99 )