GNU bug report logs - #29445
[PATCH] gnu: Add roguebox-adventures.

Previous Next

Package: guix-patches;

Reported by: Kei Kebreau <kkebreau <at> posteo.net>

Date: Sat, 25 Nov 2017 21:11:02 UTC

Severity: normal

Tags: patch

Done: Kei Kebreau <kkebreau <at> posteo.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kei Kebreau <kkebreau <at> posteo.net>
To: Leo Famulari <leo <at> famulari.name>
Cc: 29445 <at> debbugs.gnu.org
Subject: [bug#29445] [PATCH] gnu: Add roguebox-adventures.
Date: Mon, 27 Nov 2017 19:12:54 -0500
[Message part 1 (text/plain, inline)]
Leo Famulari <leo <at> famulari.name> writes:

> On Sat, Nov 25, 2017 at 04:09:28PM -0500, Kei Kebreau wrote:
>
> Thanks! Overall LGTM, but I have some nitpicks...
>
>> +      (package
>> +        (name "roguebox-adventures")
>> + (version (string-append "2.1.2." revision "." (string-take commit
>> 7)))
>
> How about (version (git-version "2.1.2" revision commit)) ?
>
>> +        (source
>> +         (origin
>> +           (method git-fetch)
>> +           (uri (git-reference
>> + (url
>> "https://git.postactiv.com/themightyglider/RogueBoxAdventures")
>> +                 (commit commit)))
>
> And similarly, (file-name (git-file-name name version))
>
>> +             (replace 'build
>> +               (lambda* (#:key outputs #:allow-other-keys)
>> +                 (let* ((out    (assoc-ref outputs "out"))
>> +                        (data   (string-append
>                                  ^
> There are too many spaces here --| and also in the install phase.
>
>> +                   (mkdir-p bin)
>> +                   (mkdir-p doc)
>> +
>> +                   (copy-file "main.py"
>> +                              (string-append bin "/roguebox-adventures"))
>> +                   (chmod (string-append bin "/roguebox-adventures") #o555)
>> +
>> +                   (for-each (lambda (file)
>> +                               (copy-recursively file
>> + (string-append data "/" file)))
>> +                             '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
>> +                               "icon_big.png" "icon_small.png"))
>> +
>> + (copy-file "DOC" (string-append doc "/roguebox-adventures"))
>
> And we could simplify a bit by using install-file instead of mkdir-p and
> copy-file.

Is there a way to rename the file when using install-file? It's a bit
weird to have to run "main.py" to launch the game.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 7 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.