Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 498988 | Differences between
and this patch

Collapse All | Expand All

(-)eutils.eclass (+31 lines)
Lines 1730-1732 Link Here
1730
check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; }
1730
check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; }
1731
1731
1732
fi
1732
fi
1733
1734
# @FUNCTION: optfeature
1735
# @USAGE: <short description> <package atom to match> [other atoms]
1736
# @DESCRIPTION:
1737
# Print out a message suggesting an optional package (or packages) which
1738
# provide the described functionality
1739
#
1740
# The following snippet would suggest app-misc/foo for optional foo support,
1741
# and app-misc/bar or app-misc/baz[bar] for optional bar support.
1742
# @CODE:
1743
# 		optfeature "foo support" app-misc/foo
1744
# 		optfeature "bar support" app-misc/bar app-misc/baz[bar]
1745
#
1746
optfeature() {
1747
	debug-print-function ${FUNCNAME} "$@"
1748
	local i
1749
	local desc=$1
1750
	local flag=0
1751
	shift
1752
	for i; do
1753
		if has_version "$i"; then
1754
			flag=1
1755
			break
1756
		fi
1757
	done
1758
	if [[ $flag -eq 0 ]]; then
1759
		for i in "$@"; do
1760
			elog "  $1 for ${desc}"
1761
		done
1762
	fi
1763
}

Return to bug 498988