guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/6 v2] gnu: gtk+: enable introspection.


From: Ludovic Courtès
Subject: Re: [PATCH 2/6 v2] gnu: gtk+: enable introspection.
Date: Mon, 09 Dec 2013 00:53:19 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Cyril Roelandt <address@hidden> skribis:

> * gnu/packages/gtk.scm (atk, gdk-pixbuf, gtk+, pango): enable introspection
> * guix/build/gnome.scm: New file.

[...]

> --- a/gnu/packages/glib.scm
> +++ b/gnu/packages/glib.scm
> @@ -184,9 +184,10 @@ dynamic loading, and an object system.")
>         ("cairo" ,cairo)
>         ("flex" ,flex)
>         ("glib" ,glib)
> -       ("libffi" ,libffi)
>         ("pkg-config" ,pkg-config)
>         ("python-2" ,python-2)))
> +    (propagated-inputs
> +     `(("libffi" ,libffi)))

Please add a comment saying that GIR users need to use libffi (to use
its headers, right?), hence the propagation.

> +
> +           (substitute* "gdk/Makefile.in"
> +            (("--add-include-path=../gdk")
> +             (string-append
> +              "--add-include-path=../gdk"
> +              " --add-include-path=" (gir-path inputs "gdk-pixbuf")
> +              " --add-include-path=" (gir-path inputs "pango")))

Add a comment above saying what this is all about (what program these
flags are for, and what they do.)

> +(define-module (guix build gnome)
> +  #:export (gir-path))
> +
> +;;; Commentary:
> +;;;
> +;;; Tools commonly used when building GNOME programs.
> +;;;
> +;;; Code:
> +
> +(define (gir-path inputs pkg-name)
> +  ""
> +  (string-append (assoc-ref inputs pkg-name)
> +                 "/share/gir-1.0"))

Please add a docstring here (instead of ""), like

  Return the GIR directory name for PKG-NAME found from INPUTS.

So I think ‘gir-directory’ would be more appropriate.

OK to push with these things fixed.

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]