app-alternatives.eclass
Description
This eclass provides common logic shared by app-alternatives/* ebuilds. A global ALTERNATIVES variable needs to be declared that lists available options and their respective dependencies. HOMEPAGE, S, LICENSE, SLOT, IUSE, REQUIRED_USE and RDEPEND are set. A get_alternative() function is provided that determines the selected alternative and prints its respective flag name.
Variables
- ALTERNATIVES (REQUIRED) (SET BEFORE INHERIT)
-
Array of "flag:dependency" pairs specifying the available alternatives. The default provider must be listed first.
Authors
Michał Górny <mgorny@gentoo.org>
Maintainers
Michał Górny <mgorny@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/