all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: [PATCH] Add Bioconductor importer and updater.
Date: Wed, 6 Jan 2016 16:02:45 +0100	[thread overview]
Message-ID: <idja8oihht6.fsf@bimsb-sys02.mdc-berlin.net> (raw)
In-Reply-To: <8760zq9m7d.fsf@gnu.org>


Ludovic Courtès <ludo@gnu.org> writes:

> Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:
>
>> From 8829683fffc03dec7f2faecea75cdd7831ce1741 Mon Sep 17 00:00:00 2001
>> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
>> Date: Wed, 16 Dec 2015 14:45:28 +0100
>> Subject: [PATCH] import: Add Bioconductor importer and updater.
>>
>> * guix/import/cran.scm (bioconductor->guix-package,
>> %bioconductor-updater, latest-bioconductor-release,
>> bioconductor-package?): New procedures.
>> (%bioconductor-url, %bioconductor-svn-url): New variables.
>> (description->package): Update signature to distinguish between packages
>> from different repositories.
>> (latest-release): Rename procedure ...
>> (latest-cran-release): ... to this.
>> (cran-package?): Do not assume all R packages are available on CRAN.
>> * tests/cran.scm: Update tests.
>> * guix/scripts/import/bioconductor.scm: New file.
>> * guix/scripts/import.scm (importers): Add "bioconductor" importers.
>> * guix/scripts/refresh.scm (%updaters): Add "%bioconductor-updater".
>> * doc/guix.texi: Document Bioconductor importer and updater.
>
> [...]
>
>>  @item cran
>>  the updater for @uref{http://cran.r-project.org/, CRAN} packages;
>> +@item bioconductor
>> +the updater for @uref{http://www.bioconductor.org/, Bioconductor} packages;
>
> “R packages”

Okay.

>> -       (properties ,`(,'quasiquote ((,'upstream-name . ,name))))
>> +       (properties ,`(,'quasiquote ((,'upstream-name . ,name)
>> +                                    (,'r-repository  . ,repository))))
>
> What about adding ‘upstream-name’ only when the upstream name is
> different from the Guix name minus “r-”?

Good idea.

> Regarding ‘r-repository’, I guess it can be inferred from the source
> URL?

[...]

> We could check whether the source URL starts with “mirror://cran”, no?
> And forget about the ‘r-repository’ property?

I think so.  I’ve just updated the patches.

>> +++ b/guix/scripts/import/bioconductor.scm
>
> I was wondering whether this should be a separate script or not.  A
> precedent would be the ELPA importer, which takes a repository name as
> an argument.  We could have done the same with the CRAN importer here.

I would prefer not to have a separate script, because there’s so much
duplication.  I’ll look at the ELPA importer for inspiration.

Should the CRAN importer have its name changed, though?

~~ Ricardo

  reply	other threads:[~2016-01-06 15:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-17 11:34 [PATCH] Add Bioconductor importer and updater Ricardo Wurmus
2015-12-21 16:00 ` Ricardo Wurmus
2015-12-22 22:01   ` Ludovic Courtès
2016-01-06 15:02     ` Ricardo Wurmus [this message]
2016-01-06 16:49       ` Ricardo Wurmus
2016-01-10 20:20         ` Ludovic Courtès
2016-01-20 11:43           ` Ricardo Wurmus
2016-01-07 18:08       ` Ludovic Courtès
2016-01-07 18:29         ` Ricardo Wurmus

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

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

  git send-email \
    --in-reply-to=idja8oihht6.fsf@bimsb-sys02.mdc-berlin.net \
    --to=ricardo.wurmus@mdc-berlin.de \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.