Alien::Build::Plugin::Probe::Override - Override on a per-alien basis
version 0.03
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}
};
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:
For a system install
For a share install
Fallback on the alienfile default.
''Fallback first on ALIEN_INSTALL_TYPE and then on the alienfile default.
Author: Graham Ollis <plicease@cpan.org>
Contributors:
Roy Storey (KIWIROY)
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.