28 Mar 2017 15:32:44 UTC
- Distribution: Dist-Zilla-Plugin-AssertOS
- Module version: 0.08
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (1023 / 0 / 15)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Perl: v5.8.5
- Activity24 month
- Download (13.1KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Dist::Zilla::Plugin::AssertOS - Require that our distribution is running on a particular OS
# In dist.ini - It is important that AssertOS follows MakeMaker or # ModuleBuild [MakeMaker] [AssertOS] os = Linux os = FreeBSD os = cygwin
The resultant distribution will die at
Makefile.PLunless the platform the code is running on is Linux, FreeBSD or Cygwin.
Dist::Zilla::Plugin::AssertOS is a Dist::Zilla plugin that integrates Devel::AssertOS so that CPAN authors may easily stipulate which particular OS environments their distributions may be built and installed on.
The author specifies which OS or OS families are supported. The necessary Devel::AssertOS files are copied to the
Build.PLis mungled to include the necessary incantation.
On the module user side, the bundled
inc/Devel::AssertOS determines whether the current environment is supported or not and will die accordingly.
As this plugin mungles the
Build.PLit is imperative that it is specified in
This plugin also automagically adds the
no_indexmetadata so that
inc/is excluded from PAUSE indexing. If you use Dist::Zilla::Plugin::MetaNoIndex, there may be conflicts.
If set to c<0> Devel::AssertOS will not be bundled in the distribution. It will instead be added to
METAfiles so CPAN clients can install it before running
Makefile.PL. The default is
1, so Devel::AssertOS is bundled in
These are required by the roles that this plugin uses.
Required by Dist::Zilla::Role::FileGatherer.
Required by Dist::Zilla::Role::InstallTool.
Required by Dist::Zilla::Role::MetaProvider.
Based on use-devel-assertos by David Cantrell
Build.PL support contributed by Yanick Champoux
Chris Williams <firstname.lastname@example.org>
This software is copyright (c) 2017 by Chris Williams and David Cantrell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Dist::Zilla::Plugin::AssertOS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Dist::Zilla::Plugin::AssertOS
For more information on module installation, please visit the detailed CPAN module installation guide.