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

Return to bug 498988