unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 68644@debbugs.gnu.org
Cc: msglm <msglm@techchud.xyz>, iyzsong@envs.net
Subject: [bug#68644] [PATCH v2 2/2] gnu: renpy: Update to 8.2.0.
Date: Sat, 17 Feb 2024 10:34:50 +0100	[thread overview]
Message-ID: <9939daa255ba7b5a6559a8ca8a9b0fe24c9afe6c.1708162723.git.liliana.prikler@gmail.com> (raw)
In-Reply-To: <16d9312128ef3017cca4c2ffcd867415f81a342e.1708162723.git.liliana.prikler@gmail.com>

* gnu/packages/aux-files/renpy/renpy.in (path-to-saves): Honour
RENPY_PATH_TO_SAVES.
(path_to_logdir, predefined_searchpath): New procedures.
* gnu/packages/game-development.scm (python-renpy): Update to 8.2.0.
---
 gnu/packages/aux-files/renpy/renpy.in | 22 +++++++++++++++++++++-
 gnu/packages/game-development.scm     |  4 ++--
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/aux-files/renpy/renpy.in b/gnu/packages/aux-files/renpy/renpy.in
index 9115d9aee3..deef297aa2 100644
--- a/gnu/packages/aux-files/renpy/renpy.in
+++ b/gnu/packages/aux-files/renpy/renpy.in
@@ -37,7 +37,27 @@ def path_to_saves(gamedir, save_directory=None):
     if not save_directory:
         return gamedir + "/saves"
 
-    return os.path.join(os.path.expanduser("~/.renpy"), save_directory)
+    prefix = os.environ.get("RENPY_PATH_TO_SAVES",
+                            os.path.expanduser("~/.renpy"))
+
+    return os.path.join(prefix, save_directory)
+
+def path_to_logdir(basedir):
+    return basedir
+
+def predefined_searchpath(commondir):
+    import renpy
+
+    # The default gamedir, in private.
+    searchpath = [ renpy.config.gamedir ]
+
+    if env_searchpath := os.environ.get("RENPY_SEARCHPATH"):
+        searchpath.extend(env_searchpath.split("::"))
+
+    if commondir and os.path.isdir(commondir):
+        searchpath.append(commondir)
+
+    return searchpath
 
 def main():
     try:
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 614fc7a85f..5335166d19 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1395,7 +1395,7 @@ (define-public python-pygame-sdl2
 (define-public python-renpy
   (package
     (name "python-renpy")
-    (version "8.1.3")
+    (version "8.2.0")
     (source
      (origin
        (method url-fetch)
@@ -1403,7 +1403,7 @@ (define-public python-renpy
                            "/renpy-" version "-source.tar.bz2"))
        (sha256
         (base32
-         "1g6fz5dxp7yxhgv6q4brzf5hpfqq3l1g3dfv3fsiwwn6mj0b01z2"))
+         "02v54qqjjigfqhdr50kzhkdvplk56bvprq65jl57kcs1qhvlf5s9"))
        (modules '((guix build utils)))
        (snippet
         #~(begin
-- 
2.41.0





      reply	other threads:[~2024-02-17  9:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-21 19:29 [bug#68644] [PATCH 0/2] Update Ren'py to 8.2.0 Liliana Marie Prikler
2024-01-21 19:26 ` [bug#68644] [PATCH 1/2] gnu: python-pygame-sdl2: Update to 2.1.0+renpy8.2.0 Liliana Marie Prikler
2024-01-21 19:26 ` [bug#68644] [PATCH 2/2] gnu: python-renpy: Update to 8.2.0 Liliana Marie Prikler
2024-01-28 17:19   ` Liliana Marie Prikler
2024-02-17  9:33 ` [bug#68644] [PATCH v2 1/2] gnu: python-pygame-sdl2: Update to 2.1.0+renpy8.2.0 Liliana Marie Prikler
2024-02-17  9:34   ` Liliana Marie Prikler [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=9939daa255ba7b5a6559a8ca8a9b0fe24c9afe6c.1708162723.git.liliana.prikler@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=68644@debbugs.gnu.org \
    --cc=iyzsong@envs.net \
    --cc=msglm@techchud.xyz \
    /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).