-
Notifications
You must be signed in to change notification settings - Fork 0
/
finddeps-distmeta.1
89 lines (88 loc) · 2.11 KB
/
finddeps-distmeta.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.\" finddeps-distmeta(1) manual page
.\" See COPYING and COPYRIGHT files for corresponding information.
.Dd September 3, 2023
.Dt FINDDEPS-DISTMETA 1
.Os
.\" ==================================================================
.Sh NAME
.Nm finddeps-distmeta
.Nd parse Perl-module's distmeta file and find dependencies
.\" ==================================================================
.Sh SYNOPSIS
.Nm finddeps-distmeta
.Op Fl hv
.Op Ar file
.\" ==================================================================
.Sh DESCRIPTION
The
.Nm
utility parses so-called
.Dq distmeta
(CPAN distribution metadata) of Perl-module and find dependencies.
It shows dependencies that are in the core Perl distribution and
searches missing modules in the existing installed
.Dq p5-*
packages.
.Pp
.Nm
operates on packages' sources repository to search dependencies in the
packages' footprints, and therefore requires
.Xr pkgman 1 .
.Pp
The options are as follows:
.Bl -tag -width XXXXXXXXXXXXX
.It Fl v , Fl \&-version
Print version and exit.
.It Fl h , Fl \&-help
Print help and exit.
.El
.\" ==================================================================
.Sh EXAMPLES
The typical usage of
.Nm
is to call it from the Perl's module directory:
.Bd -literal -offset indent
cd /var/cache/pkgmk/sources/URI-5.17
finddeps-distmeta
.Ed
.Pp
Or to specify the location of
.Pa META.yml
file manually:
.Bd -literal -offset indent
finddeps-distmeta /var/cache/pkgmk/source/URI-5.17/META.yml
.Ed
.Pp
Another convenient way is to call
.Nm
from the
.Pa Pkgfile
when you're building the package:
.Bd -literal
build() {
cd URI-$version
finddeps-distmeta
...
}
.Ed
.Pp
So, you can check the output, fix
.Dq Depends on:
field and remove unnecessary call afterwards.
.\" ==================================================================
.Sh SEE ALSO
.Xr finddeps-linked 1 ,
.Xr findredundantdeps 1
.\" ==================================================================
.Sh BUGS
Currently,
.Nm
parses only
.Pa META.yml
file, which is generated by
.Xr ExtUtils::MakeMaker 3pm .
The parsing of
.Pa META.json
isn't added yet.
.\" vim: cc=72 tw=70
.\" End of file.