XORG-MESON.ECLASS

Section: eclass-manpages (5)
Updated: May 2025
Index Return to Main Contents

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

TRANSITIVELY PROVIDED ECLASSES

meson meson-multilib

FUNCTIONS

xorg-meson_src_unpack
Simply unpack source code.
XORG_CONFIGURE_OPTIONS
Array of an additional options to pass to meson setup.
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.

ECLASS 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://www.x.org/releases/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".

AUTHORS

Author: Matt Turner <[email protected]>

MAINTAINERS

[email protected]

REPORTING BUGS

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

FILES

xorg-meson.eclass

SEE ALSO

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


Index

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

This document was created by man2html, using the manual pages.
Time: 03:27:01 GMT, May 25, 2025