Multilib/multilib-build

multilib-build is the common eclass that is used to build all multilib building logic in Gentoo. This eclass is seldom inherited directly. Instead, its API is exposed via other eclasses such as multilib-minimal.

The multilib-build eclass adds multilib-specific USE flags to IUSE. It does not export any phase functions or dependencies. However, MULTILIB_USEDEP variable is provided to help construct proper multilib dependencies.

MULTILIB_USEDEP
Contains a USE dependency string that can be used to enforce matching multilib ABIs on package dependencies.

Example use of MULTILIB_USEDEP

multilib_build_binaries
Usage: multilib_build_binaries

Determines whether the current ABI should involve the build of native components. This function is guaranteed to return true for exactly one ABI for which program binaries are expected to be built. It can be used to avoid building program executables and documentation multiple times.

Technically, multilib_build_binaries returns true in one of the following cases:


 * 1) the current ABI is equal to the DEFAULT_ABI,
 * 2) the MULTILIB_COMPLETE variable is set (it is used by multilib-portage, and must not be set by users directly).

multilib_native_use_with
Usage: multilib_native_use_with [ []]

A wrapper on top of use_with EAPI function. Outputs --with- option if the flag is enabled and multilib_build_binaries is true, --without- otherwise.

multilib_native_use_enable
Usage: multilib_native_use_enable [ []]

A wrapper on top of use_enable EAPI function. Outputs --enable- option if the flag is enabled and multilib_build_binaries is true, --disable- otherwise.

multilib_native_usex
Usage: multilib_native_usex [ [ [ [ ]]]]

A wrapper on top of usex EAPI function. Requires EAPI 5 or eutils eclass inherit.

Outputs the concatenation of   (or yes if not provided) and   if the flag is enabled and multilib_build_binaries is true, the concatenation of   (or no) and   otherwise.