xbps-src: add show host/makedepends subcommand
This commit is contained in:
parent
6b07fe3040
commit
2b569f1ef8
|
@ -58,15 +58,14 @@ show_avail() {
|
||||||
check_pkg_arch "$XBPS_CROSS_BUILD" 2>/dev/null
|
check_pkg_arch "$XBPS_CROSS_BUILD" 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
show_pkg_build_deps() {
|
show_pkg_build_depends() {
|
||||||
local f x _pkgname _srcpkg _dep found result
|
local f x _pkgname _srcpkg _dep found result
|
||||||
|
local _deps="$1"
|
||||||
setup_pkg_depends
|
|
||||||
|
|
||||||
result=$(mktemp || exit 1)
|
result=$(mktemp || exit 1)
|
||||||
|
|
||||||
# build time deps
|
# build time deps
|
||||||
for f in ${host_build_depends} ${build_depends} ${run_depends}; do
|
for f in ${_deps}; do
|
||||||
# ignore virtual deps
|
# ignore virtual deps
|
||||||
local _rpkg="${f%\?*}"
|
local _rpkg="${f%\?*}"
|
||||||
local _vpkg="${f#*\?}"
|
local _vpkg="${f#*\?}"
|
||||||
|
@ -105,6 +104,20 @@ show_pkg_build_deps() {
|
||||||
rm -f $result
|
rm -f $result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_pkg_build_deps() {
|
||||||
|
setup_pkg_depends
|
||||||
|
show_pkg_build_depends "${host_build_depends} ${build_depends} ${run_depends}"
|
||||||
|
}
|
||||||
|
|
||||||
|
show_pkg_hostmakedepends() {
|
||||||
|
setup_pkg_depends
|
||||||
|
show_pkg_build_depends "${host_build_depends}"
|
||||||
|
}
|
||||||
|
|
||||||
|
show_pkg_makedepends() {
|
||||||
|
setup_pkg_depends
|
||||||
|
show_pkg_build_depends "${build_depends}"
|
||||||
|
}
|
||||||
|
|
||||||
show_pkg_build_options() {
|
show_pkg_build_options() {
|
||||||
local f opt desc
|
local f opt desc
|
||||||
|
|
14
xbps-src
14
xbps-src
|
@ -91,6 +91,12 @@ show-deps <pkgname>
|
||||||
show-files <pkgname>
|
show-files <pkgname>
|
||||||
Show files installed by <pkgname>. Package must be installed into destdir.
|
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-options <pkgname>
|
||||||
Show available build options by <pkgname>.
|
Show available build options by <pkgname>.
|
||||||
|
|
||||||
|
@ -750,6 +756,14 @@ case "$XBPS_TARGET" in
|
||||||
read_pkg ignore-problems
|
read_pkg ignore-problems
|
||||||
show_pkg_build_deps
|
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)
|
show-pkg-var)
|
||||||
read_pkg ignore-problems
|
read_pkg ignore-problems
|
||||||
for sub_name in $subpackages; do
|
for sub_name in $subpackages; do
|
||||||
|
|
Loading…
Reference in New Issue