From 27748f063513260cf4dac7d56e5148fbc154b4c1 Mon Sep 17 00:00:00 2001 From: Federico Beffa Date: Wed, 8 Oct 2014 21:04:25 +0200 Subject: [PATCH 2/2] glib-or-gtk-build-system: added documentation * doc/guix.texi: added description of glib-or-gtk-build-system --- doc/guix.texi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index f6357bd..977b375 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1637,6 +1637,35 @@ debugging information''), which roughly means that code is compiled with @code{-O2 -g}, as is the case for Autoconf-based packages by default. @end defvr address@hidden {Scheme Variable} glib-or-gtk-build-system +This variable is exported by @code{(guix build-system glib-or-gtk)}. It +is intended for use with packages making use of address@hidden://developer.gnome.org/glib/stable, glib} or address@hidden://developer.gnome.org/gtk3/stable, gtk+}. + +This build-system adds the following two phases to the ones defined by +the @code{gnu-build-system}: + address@hidden @code address@hidden glib-or-gtk-wrap +The phase @code{glib-or-gtk-wrap} ensures that programs found under address@hidden/} are able to find @code{glib} schemas and @code{gtk+} +libraries. This is achieved by appropriately setting the environment +variables @code{XDG_DATA_DIRS} and @code{GTK_PATH}; and by wrapping the +programs in suitable launch scripts. + address@hidden glib-or-gtk-compile-schemas +The phase @code{glib-or-gtk-compile-schemas} makes sure that all address@hidden schemas are compiled. Compilation is performed by the +program @code{glib-compile-schemas}. It is provided by the package address@hidden:bin} which is automatically imported by the build system. +The @code{glib} package providing @code{glib-compile-schemas} can be +specified with the @code{#:glib} parameter. address@hidden table + +Both phases are executed after the @code{install} phase. address@hidden defvr + @defvr {Scheme Variable} python-build-system This variable is exported by @code{(guix build-system python)}. It implements the more or less standard build procedure used by Python -- 1.8.4