Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perlalien/alien-build-plugin-probe-override
Override on a perl-alien basis
https://github.com/perlalien/alien-build-plugin-probe-override
alien alien-plugin perl
Last synced: 22 days ago
JSON representation
Override on a perl-alien basis
- Host: GitHub
- URL: https://github.com/perlalien/alien-build-plugin-probe-override
- Owner: PerlAlien
- Created: 2017-09-04T16:22:27.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-05-31T19:36:35.000Z (over 2 years ago)
- Last Synced: 2024-10-21T18:53:03.861Z (2 months ago)
- Topics: alien, alien-plugin, perl
- Language: Perl
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# Alien::Build::Plugin::Probe::Override ![linux](https://github.com/PerlAlien/Alien-Build-Plugin-Probe-Override/workflows/linux/badge.svg)
Override on a per-alien basis
# SYNOPSIS
in your `~/.alienbuild/rc.pl`:
```perl
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](https://metacpan.org/pod/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](https://metacpan.org/pod/alienfile) default.
- `''`
Fallback first on `ALIEN_INSTALL_TYPE` and then on the [alienfile](https://metacpan.org/pod/alienfile) default.
# SEE ALSO
- [alienfile](https://metacpan.org/pod/alienfile)
- [Alien::Build](https://metacpan.org/pod/Alien::Build)
- [Alien::Build::Plugin::Probe::OverrideCI](https://metacpan.org/pod/Alien::Build::Plugin::Probe::OverrideCI)# AUTHOR
Author: Graham Ollis
Contributors:
Roy Storey (KIWIROY)
# 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.