Alien-Build-Plugin-Probe-Override

Override on a per-alien basis


Keywords
alien, alien-plugin, perl
License
Artistic-1.0-Perl

Documentation

Alien::Build::Plugin::Probe::Override Build Status

Override on a per-alien basis

SYNOPSIS

in your ~/.alienbuild/rc.pl:

preload 'Probe::Override';

sub override {
  my($dist) = @_;
  return 'system'  if $dist eq 'Alien-gmake';
  return 'share'   if $dist eq 'Alien-FFI';
  return 'default' if $dist eq 'Alien-libuv';  # lets the alienfile choose
  return ''; # fall back on $ENV{ALIEN_INSTALL_TYPE}
};

DESCRIPTION

This alienfile plugin allows you to override the install type (either share, system or default) on a per-Alien basis. All you have to do is preload this plugin and then provide a subroutine override, which takes a dist name (similar to a module name, but with dashes instead of double colon). It should return one of:

  • system

    For a system install

  • share

    For a share install

  • default

    Fallback on the alienfile default.

  • ''

    Fallback first on ALIEN_INSTALL_TYPE and then on the alienfile default.

SEE ALSO

AUTHOR

Graham Ollis plicease@cpan.org

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.