all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: 45132@debbugs.gnu.org
Subject: [bug#45132] [PATCH 1/2] gnu: pygame-sdl2-for-renpy: Drop generated sources in snippet.
Date: Wed,  9 Dec 2020 15:56:50 +0100	[thread overview]
Message-ID: <20201209145650.25624-1-leo.prikler@student.tugraz.at> (raw)
In-Reply-To: <02e03c983db083b554991ee295b366adedd95bc5.camel@student.tugraz.at>

* gnu/packages/game-development.scm (pygame-sdl2-for-renpy)[source]<modules>:
Add (guix build utils).
[#:phases]<drop-generated-files>: Move from here...
[source]<snippet>: ... to here.
---
 gnu/packages/game-development.scm | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index c57ea5a908..7b0b1cb83d 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1071,7 +1071,13 @@ to create fully featured games and multimedia programs in the python language.")
          (method url-fetch)
          (uri (string-append "https://www.renpy.org/dl/" renpy-version
                              "/pygame_sdl2-" version ".tar.gz"))
-         (sha256 (base32 "1bmr7j9mlsc4czpgw70ld15ymyp4wxrk9hdsqad40wjwdxvvg2dr"))))
+         (sha256 (base32 "1bmr7j9mlsc4czpgw70ld15ymyp4wxrk9hdsqad40wjwdxvvg2dr"))
+         (modules '((guix build utils)))
+         (snippet
+          '(begin
+             ;; drop generated sources
+             (delete-file-recursively "gen")
+             (delete-file-recursively "gen3")))))
       (build-system python-build-system)
       (arguments
        `(#:tests? #f                ; tests require pygame to be installed first
@@ -1090,11 +1096,6 @@ to create fully featured games and multimedia programs in the python language.")
                                       "/lib -Wl,-rpath,"
                                       (assoc-ref inputs "sdl-union")
                                       "/lib -Wl,--enable-new-dtags -lSDL2"))
-               #t))
-           (add-before 'build 'drop-generated-files
-             (lambda args
-               (delete-file-recursively "gen")
-               (delete-file-recursively "gen3")
                #t)))))
       (inputs
        `(("sdl-union"
-- 
2.29.2





  reply	other threads:[~2020-12-09 15:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 14:55 [bug#45132] [PATCH 0/2] QC Ren'py package Leo Prikler
2020-12-09 14:56 ` Leo Prikler [this message]
2020-12-09 14:56   ` [bug#45132] [PATCH 2/2] gnu: renpy: Use system fribidi and drop generated sources Leo Prikler
2020-12-10 11:09 ` [bug#45132] [PATCH 0/2] QC Ren'py package Nicolas Goaziou
2020-12-10 12:28   ` Leo Prikler
2020-12-10 19:03 ` [bug#45132] [PATCH v2 1/2] gnu: pygame-sdl2-for-renpy: Drop generated sources in snippet Leo Prikler
2020-12-10 19:03   ` [bug#45132] [PATCH v2 2/2] gnu: renpy: Use system fribidi and drop generated sources Leo Prikler
2020-12-12 20:16   ` bug#45132: [PATCH v2 1/2] gnu: pygame-sdl2-for-renpy: Drop generated sources in snippet Nicolas Goaziou

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=20201209145650.25624-1-leo.prikler@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=45132@debbugs.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.