xbps-src: add show host/makedepends subcommand

This commit is contained in:
Cameron Nemo 2019-01-26 11:29:36 -08:00 committed by maxice8
parent 6b07fe3040
commit 2b569f1ef8
2 changed files with 31 additions and 4 deletions

View file

@ -91,6 +91,12 @@ show-deps <pkgname>
show-files <pkgname>
Show files installed by <pkgname>. Package must be installed into destdir.
show-hostmakedepends <pkgname>
Show required host build dependencies for <pkgname>.
show-makedepends <pkgname>
Show required target build dependencies for <pkgname>.
show-options <pkgname>
Show available build options by <pkgname>.
@ -750,6 +756,14 @@ case "$XBPS_TARGET" in
read_pkg ignore-problems
show_pkg_build_deps
;;
show-hostmakedepends)
read_pkg ignore-problems
show_pkg_hostmakedepends
;;
show-makedepends)
read_pkg ignore-problems
show_pkg_makedepends
;;
show-pkg-var)
read_pkg ignore-problems
for sub_name in $subpackages; do