guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] gnu: Add datefudge.


From: Ludovic Courtès
Subject: Re: [PATCH 1/2] gnu: Add datefudge.
Date: Fri, 16 Aug 2013 19:45:41 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Cyril Roelandt <address@hidden> skribis:

> * gnu/packages/datefudge.scm: New file.
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.

Fine, modulo minor stylistic issues:

> +             (uri (string-append
> +                   "http://ftp.de.debian.org/debian/pool/main/d/";
> +                   "datefudge/datefudge_" version ".tar.gz"))

(Eventually we should add ‘debian’ to %mirrors in guix/download.scm.)

> +        (alist-replace
> +         'configure
> +         (lambda* (#:key version outputs #:allow-other-keys #:rest args)
> +          (pk version outputs)

Leftover debugging statements, and ‘version’ doesn’t exist.

What you can do is use:

  (arguments
    `( ...
       ,version
       ...
      ))

to paste the ‘version’ field of the package being defined in the
quasiquote expression.

> +           (substitute* "Makefile"
> +             (("^VERSION.*$") (string-append "VERSION=" version)))
> +           ;; We do not need to pass these flags to "install".
> +           (substitute* "Makefile"

No need to repeat ‘substitute*’: there can be several substitutations in
a substitute* form.

> +           (substitute* "Makefile"
> +             (("^prefix.*$") (string-append "prefix=" out "\n")))))

Ditto.

> +    (inputs `(("perl" ,perl))) ; Needed for the tests.

‘native-inputs’, probably (if it were being cross-compiled, you’d want
to run the native Perl, right?).

Thanks!

Ludo’.



reply via email to

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