1CPAN::Meta::Check(3)  User Contributed Perl Documentation CPAN::Meta::Check(3)
2
3
4

NAME

6       CPAN::Meta::Check - Verify requirements in a CPAN::Meta object
7

VERSION

9       version 0.014
10

SYNOPSIS

12        warn "$_\n" for verify_dependencies($meta, [qw/runtime build test/], 'requires');
13

DESCRIPTION

15       This module verifies if requirements described in a CPAN::Meta object
16       are present.
17

FUNCTIONS

19   check_requirements($reqs, $type, $incdirs)
20       This function checks if all dependencies in $reqs (a
21       CPAN::Meta::Requirements object) are met, taking into account that
22       'conflicts' dependencies have to be checked in reverse. It returns a
23       hash with the modules as keys and any problems as values; the value for
24       a successfully found module will be undef. Modules are searched for in
25       @$incdirs, defaulting to @INC.
26
27   verify_dependencies($meta, $phases, $types, $incdirs)
28       Check all requirements in $meta for phases $phases and type $type.
29       Modules are searched for in @$incdirs, defaulting to @INC. $meta should
30       be a CPAN::Meta::Prereqs or CPAN::Meta object.
31
32   requirements_for($meta, $phases, $types)
33       This function is deprecated and may be removed at some point in the
34       future, please use CPAN::Meta::Prereqs->merged_requirements instead.
35
36       This function returns a unified CPAN::Meta::Requirements object for all
37       $type requirements for $phases. $phases may be either one (scalar)
38       value or an arrayref of valid values as defined by the CPAN::Meta spec.
39       $type must be a relationship as defined by the same spec. $meta should
40       be a CPAN::Meta::Prereqs or CPAN::Meta object.
41

SEE ALSO

43       ·   Test::CheckDeps
44
45       ·   CPAN::Meta
46

AUTHOR

48       Leon Timmermans <leont@cpan.org>
49
51       This software is copyright (c) 2012 by Leon Timmermans.
52
53       This is free software; you can redistribute it and/or modify it under
54       the same terms as the Perl 5 programming language system itself.
55
56
57
58perl v5.32.0                      2020-07-28              CPAN::Meta::Check(3)
Impressum