APP-ALTERNATIVES.ECLASS

Section: eclass-manpages (5)
Updated: Nov 2024
Index Return to Main Contents

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

FUNCTIONS

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

ECLASS 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 <[email protected]>

MAINTAINERS

Michał Górny <[email protected]>

REPORTING BUGS

Please report bugs via https://bugs.gentoo.org/

FILES

app-alternatives.eclass

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/app-alternatives.eclass


Index

NAME
DESCRIPTION
SUPPORTED EAPIS
FUNCTIONS
ECLASS VARIABLES
AUTHORS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:27:00 GMT, November 25, 2024