Alien-Libgcrypt

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

  if ($self->use_installed_version) {
    return $self->system_libgcrypt_config_get('libs');
  }
  return;
}

sub requires {
  my $self = shift;
  my %r;
  unless ($self->use_installed_version) {
    $r{'Alien::Libgpg_error'} = '0';
  }
  \%r;
}

*build_requires = \&requires;

sub libgpg_error_config {
  my ($self, $method) = @_;
  unless ($self->use_installed_version) {
    require Alien::Libgpg_error;
    return Alien::Libgpg_error->$method;
  }
  return;
}

sub alien_build_commands {
  my $self = shift;
  if ($self->{action} and $self->{action} eq 'Build_PL') {
    return ["echo '*** to be filled later ***'", "exit 1"]
  }

  my $config_cmd = "%c --prefix=%s";
  require Alien::Libgpg_error;
  my $alge = Alien::Libgpg_error->new;
  if ($alge->config('install_type') ne 'system') {
    if (defined(my $alge_dist_dir = $alge->dist_dir)) {
      if ($^O eq 'MSWin32') {
        $alge_dist_dir =~ s{\\}{/}g;
        $alge_dist_dir =~ s{^([a-z]):/}{/$1/}i;
      }
      $config_cmd .= " --with-libgpg-error-prefix=$alge_dist_dir";
    }
  }

  return [ $config_cmd, 'make']
}

EOC

my $builder = $class
    ->new( module_name          => 'Alien::Libgcrypt',

Changes  view on Meta::CPAN

Revision history for Alien-Libgcrypt

0.02  2016-1-10
        - Pass information from Alien::Libgpg_error to confiugre script
        - Force FTP passive mode

0.01  2016-1-10
        First version, released on an unsuspecting world.



( run in 1.135 second using v1.01-cache-2.11-cpan-df04353d9ac )