xorg-meson.eclass

Name

xorg-meson.eclass — Reduces code duplication in the X11 ebuilds.

Description

This eclass makes trivial X ebuilds possible for apps, drivers, and more. Many things that would normally be done in various functions can be accessed by setting variables instead, such as patching, passing options to meson and installing docs.

All you need to do in a basic ebuild is inherit this eclass and set DESCRIPTION, KEYWORDS and RDEPEND/DEPEND. If your package is hosted with the other X packages, you don't need to set SRC_URI. Pretty much everything else should be automatic.

Supported EAPIs

8 9

Transitively Provided Eclasses

  • meson

  • meson-multilib

Exported Phases

  • src_unpack

  • src_install

  • src_configure

Functions

xorg-meson_src_unpack

Simply unpack source code.

xorg-meson_src_configure

Perform any necessary pre-configuration steps, then run configure

xorg-meson_src_install

Install a built package to ${ED}, performing any necessary steps.

Variables

XORG_MULTILIB ?= "no" (set before inherit)

If set to 'yes', multilib support for package will be enabled. Set before inheriting this eclass.

XORG_BASE_INDIVIDUAL_URI ?= "https://xorg.freedesktop.org/archive/individual" (set before inherit)

Set up SRC_URI for individual releases. If set to an empty string, no SRC_URI will be provided by the eclass.

XORG_MODULE ?= "auto" (set before inherit)

The subdirectory to download source from. Possible settings are app, doc, data, util, driver, font, lib, proto, xserver. Set above the inherit to override the default autoconfigured module.

XORG_PACKAGE_NAME ?= ${PN,,} (set before inherit)

For git checkout the git repository might differ from package name. This variable can be used for proper directory specification

XORG_TARBALL_SUFFIX ?= "xz" (set before inherit)

Most X11 projects provide tarballs as tar.xz. This eclass defaults to xz.

XORG_DOC ?= "no" (set before inherit)

Controls the installation of man3 developer documentation. Possible values are the name of the useflag or "no". Default value is "no".

Function Variables

XORG_CONFIGURE_OPTIONS

Array of an additional options to pass to meson setup.

Authors

Author: Matt Turner <mattst88@gentoo.org>

Maintainers

x11@gentoo.org

Reporting Bugs

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