unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add python2-gnomekeyring.
Date: Tue, 21 Apr 2015 17:59:46 +0200	[thread overview]
Message-ID: <878udlh3pp.fsf@gnu.org> (raw)
In-Reply-To: <87618s2dtw.fsf@mango.localdomain> (Ricardo Wurmus's message of "Sun, 19 Apr 2015 20:05:47 +0200")

Ricardo Wurmus <rekado@elephly.net> skribis:

> the first patch defines a function to create packages from
> python2-gnome-desktop components and redefines python2-rsvg using this
> function.

Would it make sense to just have python2-gnome-desktop containing
everything, or would that be overkill?  (I suspect the latter, but I
want to make sure.)

> From 9045e6d296593a7f81269ecfab327733853b68f4 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Thu, 5 Mar 2015 08:38:13 +0100
> Subject: [PATCH 1/2] gnu: python2-rsvg: Define with helper function.
>
> * gnu/packages/gnome.scm (python2-gnome-desktop-component): New variable.

[...]

> +(define (python2-gnome-desktop-component comp syn desc ins lic)

Please spell out the argument names and add a docstring.

> +    (synopsis syn)
> +    (description desc)
> +    (license lic)))


[...]

> +(define-public python2-rsvg
> +  (python2-gnome-desktop-component
> +   "rsvg"
> +   "Python bindings to librsvg"
> +   "This module contains bindings allowing the use of librsvg in Python."

The problem is that xgettext won’t notice these.

A little bit of extra syntax is needed to placate it so that you can
write:

  (define-public python2-rsvg
    (python2-gnome-desktop-component
      "rsvg"
      (synopsis "Python bindings to librsvg")
      (description "This module contains bindings allowing the use of
librsvg in Python.")))

So let’s say:

  (define-syntax python2-gnome-desktop-component
    (syntax-rules (synopsis description)
      ((_ component (synopsis synopsis*) (description description*))
       (%python2-gnome-desktop-component component synopsis*
                                         description*))))

Where ‘%python2-gnome-desktop-component’ is the new name of the
procedure that this patch calls ‘python2-gnome-desktop-component’.

Really a hack, but hey, such is life.  ;-)

> From ba6cbc73f4ff3f1f5fc8e4ca26e867dc85291bd1 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Sun, 19 Apr 2015 18:59:01 +0200
> Subject: [PATCH 2/2] gnu: Add python2-gnomekeyring.
>
> * gnu/packages/gnome.scm (python2-gnomekeyring): New variable.

OK.

Thanks,
Ludo’.

      reply	other threads:[~2015-04-21 15:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-19 18:05 [PATCH] gnu: Add python2-gnomekeyring Ricardo Wurmus
2015-04-21 15:59 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878udlh3pp.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).