.
PKG_SUMMARY2DEPS(1)

NAME
pkg_summary2deps extract dependencies from a package summary

SYNOPSIS
pkg_summary2deps [OPTIONS] [files...]

DESCRIPTION
pkg_summary2deps extracts dependencies from a package summary analysing {alter,native}pkgbase:../../pkg/pkgpath and pkgbase:/../../pkg/path entries in DEPENDS and BUILD_DEPENDS fields. Format of the output:
   package2 package3
   package1
   ... Here package1 has no dependencies and package3 depends on package2.

If multiple packages satisfy the condition, the package with highest version is selected unless -a option was specified.

OPTIONS

-h  display help message.

-p  output PKGPATH.

-n  output PKGNAME.

-d  analyse DEPENDS field. Missed alternative dependencies are output as altdep1|altdep2|...|altdepN. The same is applied for -D.

-D  analyse BUILD_DEPENDS.

-c  analyse CONFLICTS and output problems to stderr. Versions in CONFLICTS are always checked (see "-s").

-A  analyse both DEPENDS and BUILD_DEPENDS.

-a  output all matched dependencies separated by `|' symbol.

-s  enable strict mode. Versions of dependencies are always checked, even if there is only one matched (by PKGBASE) package.

-t  produce output compatible with tsort(1) command

-r  do not strip versions from PKGNAME and imply "-n"

-R  do not strip versions from dependencies and imply "-n"

-l  output to stderr the error messages compatible with pkg_lint_summary, e.g., d: not_found foo-[0-9]*:../../devel/foo <- lang/bar bar

-2  separate run-time and build-time dependencies and prepand output lines with DEPENDS or BUILD_DEPENDS.

-P <pkgpaths>
    find dependencies for specified PKGPATHs. If pkgpaths starts with `/' or `.', it is treated as a filename that contains PKGPATHs, one per line. Otherwise pkgpaths contains a list of PKGPATHs separated by space or comma.

-N <pkgnames>
    find dependencies for specified PKGNAMEs. If pkgnames starts with `/' or `.', it is treated as a filename that contains PKGNAMEs, one per line. Otherwise pkgnames contains a list of PKGNAMEs separated by space or comma.

-X  exit with non-zero exit status if missed DEPENDS, BUILD_DEPENDS or CONFLICTS were found.

If both "-p" and "-n" are applied, pkg_summary2deps will output
PKGPATH;PKGNAME. Either "-n" or "-p" must be applied. Also either "-d", "-D", "-A" or "-c" must be applied.

EXAMPLES
pkg_list_all_pkgs | pkg_src_summary | pkg_summary2deps -Ap pkg_src_summary -A wip/distbb | pkg_summary2deps -ApRr pkg_summary2deps -cl bin_summary.txt

SEE ALSO
pkg_summary-utils(7), pkg_summary(5), pkg_src_summary(1), pkg_lint_summary(1), tsort(1)

AUTHOR
Aleksey Cheusov <vle@gmx.net>