gnome2.eclass

Name

gnome2.eclass -- Provides phases for Gnome/Gtk+ based packages.

Description

Exports portage base functions used by ebuilds written for packages using the GNOME framework. For additional functions, see gnome2-utils.eclass.

Supported EAPIs

5 6 7 8

Transitively Provided Eclasses

  • gnome2-utils

Exported Phases

  • pkg_postrm

  • pkg_preinst

  • pkg_postinst

  • src_unpack

  • src_compile

  • src_install

  • src_prepare

  • src_configure

Functions

gnome2_src_unpack

Stub function for old EAPI.

gnome2_src_prepare

Prepare environment for build, fix build of scrollkeeper documentation, run elibtoolize.

gnome2_src_configure

Gnome specific configure handling

gnome2_src_compile

Only default src_compile for now

gnome2_src_install

Gnome specific install. Handles typical GConf and scrollkeeper setup in packages and removal of .la files if requested

gnome2_pkg_preinst

Finds Icons, GConf and GSettings schemas for later handling in pkg_postinst

gnome2_pkg_postinst

Handle scrollkeeper, GConf, GSettings, Icons, desktop and mime database updates.

gnome2_pkg_postrm

Handle scrollkeeper, GSettings, Icons, desktop and mime database updates.

Variables

GNOME2_EAUTORECONF = ${GNOME2_EAUTORECONF:-""}

Run eautoreconf instead of only elibtoolize

ELTCONF = ${ELTCONF:-""}

Extra options passed to elibtoolize

G2CONF

Extra configure opts passed to econf. Deprecated, pass extra arguments to gnome2_src_configure. Banned in eapi6 and newer.

GCONF_DEBUG

Whether to handle debug or not. Some gnome applications support various levels of debugging (yes, no, minimum, etc), but using --disable-debug also removes g_assert which makes debugging harder. This variable should be set to yes for such packages for the eclass to handle it properly. It will enable minimal debug with USE=-debug. Note that this is most commonly found in configure.ac as GNOME_DEBUG_CHECK.

Banned since eapi6 as upstream is moving away from this obsolete macro in favor of autoconf-archive macros, that do not expose this issue (bug #270919)

GNOME2_LA_PUNT = ${GNOME2_LA_PUNT:-""}

In EAPIs 5 and 6, it relies on prune_libtool_files (from ltprune.eclass) for this. Later EAPIs use find ... -delete.

Available values for GNOME2_LA_PUNT:

  • no: will not clean any .la files

  • yes: will run prune_libtool_files --modules

  • If it is not set, it will run prune_libtool_files

Maintainers

gnome@gentoo.org

Reporting Bugs

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