ada.eclass
Description
This eclass set the IUSE and REQUIRED_USE to request the
ADA_TARGET when the inheriting ebuild can be supported by more than one
Ada implementation. It also set ADA_USEDEP and ADA_DEPS with a suitable form.
A common eclass providing helper functions to build and install
packages supporting Ada implementations.
This eclass sets correct IUSE. Modification of REQUIRED_USE has to
be done by the author of the ebuild (but ADA_REQUIRED_USE is
provided for convenience, see below). ada exports ADA_DEPS
and ADA_USEDEP so you can create correct dependencies for your
package easily.
Mostly copied from python-single-r1.eclass
Functions
- ada_export [<impl>] <variables>...
-
Set and export the Ada implementation-relevant variables passed as parameters.
The optional first parameter may specify the requested Ada implementation (either as
ADA_TARGETSvalue, e.g.ada2_7, or anEADAone, e.g.ada2.7). If no implementation passed, the current one will be obtained from${EADA}.The variables which can be exported are:
GCC,EADA,GNATMAKE. They are described more completely in the eclass variable documentation. - ada_wrapper_setup [<path> [<impl>]]
-
Create proper 'ada' executable wrappers in the directory named by
<path>. Set up PATH appropriately.<path>defaults to${T}/${EADA}.The wrappers will be created for implementation named by
<impl>, or for one named by${EADA}if no<impl>passed.If the named directory contains a ada symlink already, it will be assumed to contain proper wrappers already and only environment setup will be done. If wrapper update is requested, the directory shall be removed first.
- ada_setup
-
Determine what the selected Ada implementation is and set the Ada build environment up for it.
- ada_pkg_setup
-
Runs
ada_setup.
Variables
- ADA_DEPS (GENERATED BY ECLASS)
-
This is an eclass-generated Ada dependency string for all implementations listed in
ADA_COMPAT.The dependency string is conditional on
ADA_TARGET.Example use:
RDEPEND="${ADA_DEPS} dev-foo/mydep" DEPEND="${RDEPEND}"
Authors
Tupone Alfredo <tupone@gentoo.org>
Maintainers
Ada team <ada@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/