app-alternatives.eclass

Name

app-alternatives.eclass -- Common logic for app-alternatives/*

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.

Supported EAPIs

8 9

Functions

get_alternative

Get the flag name for the selected alternative (i.e. the USE flag set).

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/