Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/qa.sh
Show First 20 Lines • Show All 919 Lines • ▼ Show 20 Lines | elif [ -n "$LICENSE" ]; then | ||||
if [ -z "$pkgmirror" ]; then | if [ -z "$pkgmirror" ]; then | ||||
warn "License does not allow package to be distributed, ports depending on this one will be ignored" | warn "License does not allow package to be distributed, ports depending on this one will be ignored" | ||||
fi | fi | ||||
fi | fi | ||||
return 0 | return 0 | ||||
} | } | ||||
depends_blacklist() | |||||
{ | |||||
local dep rc instead | |||||
rc=0 | |||||
for dep in ${UNIFIED_DEPENDS}; do | |||||
origin=$(expr "${dep}" : ".*:\([^@]*\)") | |||||
instead="" | |||||
case "$origin" in | |||||
lang/python|lang/python2|lang/python3) | |||||
if [ ${PKGORIGIN} != lang/python ]; then | |||||
instead="USES=python:xy with a specific version" | |||||
fi | |||||
;; | |||||
lang/gcc) | |||||
instead="USE_GCC" | |||||
;; | |||||
www/py-django) | |||||
instead="one of the www/py-djangoXYZ port" | |||||
;; | |||||
esac | |||||
if [ -n "${instead}" ]; then | |||||
err "The port depends on $origin it should be using $instead" | |||||
rc=1 | |||||
fi | |||||
done | |||||
return $rc | |||||
} | |||||
adamw: I'd suggest "$origin should not be depended upon. Instead, use $instead" | |||||
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo" | checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo" | ||||
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo" | checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo" | ||||
checks="$checks proxydeps sonames perlcore no_arch gemdeps gemfiledeps flavors" | checks="$checks proxydeps sonames perlcore no_arch gemdeps gemfiledeps flavors" | ||||
checks="$checks license" | checks="$checks license depends_blacklist" | ||||
ret=0 | ret=0 | ||||
cd ${STAGEDIR} || exit 1 | cd ${STAGEDIR} || exit 1 | ||||
for check in ${checks}; do | for check in ${checks}; do | ||||
${check} || ret=1 | ${check} || ret=1 | ||||
done | done | ||||
exit ${ret} | exit ${ret} |
I'd suggest "$origin should not be depended upon. Instead, use $instead"