On Sunday 16 September 2012 03:51:04 Brian Harring wrote: > + if ! has $EAPI 0 1 2 3; then > + eqawarn "built_with_use should not be used in $EAPI; use USE > deps." > + elif has $EAPI 2 3; then > + if [[ $hidden == yes ]] || $missing_was_set; then > + eqawarn "built_with_use in EAPI=$EAPI without --missing > or -- hidden > usage, should use USE deps instead." + else > + eqawarn "built_with_use should not be used; upgrade to > EAPI=4 instead" > + fi > + fi
i'd do:
case ${EAPI:-0} in
# No support in these EAPIs, so don't warn.
0|1) ;;
# Maybe warn as some functionality exist.
2|3) [[...]] && eqawarn "..." ;;
# Assume EAPI=4 or newer where all functionality exists.
*) eqawarn "..." ;;
esac
-mike
signature.asc
Description: This is a digitally signed message part.
