vala.eclass

Name

vala.eclass -- Sets up the environment for using a specific version of vala.

Description

This eclass sets up commonly used environment variables for using a specific version of dev-lang/vala to configure and build a package. It is needed for packages whose build systems assume the existence of certain unversioned vala executables, pkgconfig files, etc., which Gentoo does not provide.

Supported EAPIs

6 7 8

Functions

vala_api_versions

Outputs a list of vala API versions from VALA_MAX_API_VERSION down to VALA_MIN_API_VERSION.

vala_depend

Outputs a ||-dependency string on vala from VALA_MAX_API_VERSION down to VALA_MIN_API_VERSION

vala_best_api_version

Returns the highest installed vala API version satisfying VALA_MAX_API_VERSION, VALA_MIN_API_VERSION, and VALA_USE_DEPEND.

vala_setup [--ignore-use] [--vala-api-version api_version]

Sets up the environment variables and pkgconfig files for the specified API version, or, if no version is specified, for the highest installed vala API version satisfying VALA_MAX_API_VERSION, VALA_MIN_API_VERSION, and VALA_USE_DEPEND. Is a no-op if called without --ignore-use when USE=-vala. Dies if the USE check is passed (or ignored) and a suitable vala version is not available.

vala_src_prepare

For backwards compatibility in EAPIs 6 and 7. Calls vala_setup.

Variables

VALA_MIN_API_VERSION = ${VALA_MIN_API_VERSION:-0.56}

Minimum vala API version (e.g. 0.56).

VALA_MAX_API_VERSION = ${VALA_MAX_API_VERSION:-0.56}

Maximum vala API version (e.g. 0.56).

VALA_USE_DEPEND

USE dependencies that vala must be built with (e.g. vapigen).

Authors

Alexandre Rostovtsev <tetromino@gentoo.org>

Maintainers

gnome@gentoo.org

Reporting Bugs

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