Alien::Build::Plugin::Probe::Override - Override on a per-alien basis
version 0.03
in your ~/.alienbuild/rc.pl:
~/.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:
share
system
default
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.
ALIEN_INSTALL_TYPE
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.
To install Alien::Build::Plugin::Probe::Override, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::Build::Plugin::Probe::Override
CPAN shell
perl -MCPAN -e shell install Alien::Build::Plugin::Probe::Override
For more information on module installation, please visit the detailed CPAN module installation guide.