xbps-src: improve the 'info' target.

This commit is contained in:
Juan RP 2011-01-11 17:01:23 +01:00
parent 0474b11e7b
commit 2a31f296ac

View file

@ -36,24 +36,49 @@ info_tmpl()
echo "pkgname: $pkgname"
echo "version: $version"
[ -n "$revision" ] && echo "revision: $revision"
for i in "${distfiles}"; do
[ -n "$i" ] && echo "distfile: $i"
[ -n "$revision" ] && echo "revision: $revision"
for i in ${distfiles}; do
[ -n "$i" ] && echo "distfiles: $i"
done
[ -n "$checksum" ] && echo "checksum: $checksum"
for i in ${checksum}; do
[ -n "$i" ] && echo "checksum: $i"
done
[ -n "$noarch" ] && echo "noarch: yes"
echo "maintainer: $maintainer"
echo "build_style: $build_style"
for i in ${configure_args}; do
[ -n "$i" ] && echo "configure_args: $i"
done
echo "short_desc: $short_desc"
for i in ${subpackages}; do
[ -n "$i" ] && echo "subpackages: $i"
done
for i in ${conf_files}; do
[ -n "$i" ] && echo "conf_files: $i"
done
for i in ${replaces}; do
[ -n "$i" ] && echo "replaces: $i"
done
for i in ${conflicts}; do
[ -n "$i" ] && echo "conflicts: $i"
done
echo "$long_desc"
echo
. $XBPS_SHUTILSDIR/builddep_funcs.sh
check_build_depends_pkg
if [ $? -eq 0 ]; then
echo "This package requires the following dependencies to be built:"
echo "This package requires the following build-time dependencies:"
for i in ${build_depends}; do
echo " $i"
done
fi
if [ -n "${run_depends}" ]; then
echo
echo "This package requires the folloring run-time dependencies:"
for i in ${run_depends}; do
echo " $i"
done
fi
}
#