2014-04-09 14:40:27 +00:00
|
|
|
# vim: set ts=4 sw=4 et:
|
2014-03-22 11:31:42 +00:00
|
|
|
|
|
|
|
show_pkg() {
|
2014-04-09 14:40:27 +00:00
|
|
|
local i=
|
2014-03-22 11:31:42 +00:00
|
|
|
|
2014-04-09 14:40:27 +00:00
|
|
|
echo "pkgname: $pkgname"
|
|
|
|
echo "version: $version"
|
|
|
|
echo "revision: $revision"
|
|
|
|
for i in ${distfiles}; do
|
|
|
|
[ -n "$i" ] && echo "distfiles: $i"
|
|
|
|
done
|
|
|
|
for i in ${checksum}; do
|
|
|
|
[ -n "$i" ] && echo "checksum: $i"
|
|
|
|
done
|
|
|
|
[ -n "$noarch" ] && echo "noarch: yes"
|
|
|
|
echo "maintainer: $maintainer"
|
|
|
|
[ -n "$homepage" ] && echo "Upstream URL: $homepage"
|
|
|
|
[ -n "$license" ] && echo "License(s): $license"
|
|
|
|
[ -n "$build_style" ] && 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 ${provides}; do
|
|
|
|
[ -n "$i" ] && echo "provides: $i"
|
|
|
|
done
|
|
|
|
for i in ${conflicts}; do
|
|
|
|
[ -n "$i" ] && echo "conflicts: $i"
|
|
|
|
done
|
|
|
|
[ -n "$long_desc" ] && echo "long_desc: $long_desc"
|
2014-03-22 11:31:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_deps() {
|
2014-04-09 14:40:27 +00:00
|
|
|
[ -f "${PKGDESTDIR}/rdeps" ] && cat ${PKGDESTDIR}/rdeps
|
2014-03-22 11:31:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_files() {
|
2014-04-09 14:40:27 +00:00
|
|
|
[ -d ${PKGDESTDIR} ] && find ${PKGDESTDIR} -print
|
2014-03-22 11:31:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_build_deps() {
|
2014-04-09 14:40:27 +00:00
|
|
|
local f=
|
2014-03-22 11:31:42 +00:00
|
|
|
|
2014-04-09 14:40:27 +00:00
|
|
|
# build time deps
|
|
|
|
for f in ${hostmakedepends} ${makedepends}; do
|
|
|
|
echo "$f"
|
|
|
|
done
|
2014-03-22 11:31:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-30 09:32:07 +00:00
|
|
|
show_pkg_build_options() {
|
|
|
|
local f opt desc
|
|
|
|
|
|
|
|
[ -z "$PKG_BUILD_OPTIONS" ] && return 0
|
|
|
|
|
|
|
|
source $XBPS_COMMONDIR/options.description
|
|
|
|
msg_normal "$pkgver: the following build options are set:\n"
|
|
|
|
for f in ${PKG_BUILD_OPTIONS}; do
|
|
|
|
opt="${f#\~}"
|
|
|
|
eval desc="\${desc_option_${opt}}"
|
|
|
|
if [[ ${f:0:1} == '~' ]]; then
|
|
|
|
echo " $opt: $desc (OFF)"
|
|
|
|
else
|
|
|
|
printf " "
|
|
|
|
msg_normal_append "$opt: "
|
|
|
|
printf "$desc (ON)\n"
|
2014-04-09 14:40:27 +00:00
|
|
|
fi
|
|
|
|
done
|
2014-03-22 11:31:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_shlib_provides() {
|
2014-04-09 14:40:27 +00:00
|
|
|
[ -f "${PKGDESTDIR}/shlib-provides" ] && cat ${PKGDESTDIR}/shlib-provides
|
2014-03-22 11:31:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_shlib_requires() {
|
2014-04-09 14:40:27 +00:00
|
|
|
[ -f "${PKGDESTDIR}/shlib-requires" ] && cat ${PKGDESTDIR}/shlib-requires
|
2014-03-22 11:31:42 +00:00
|
|
|
}
|