unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 55424@debbugs.gnu.org
Subject: [bug#55424] [PATCH v2 4/6] gnu: renpy: Update to 7.99.99-0-3e854bc.
Date: Fri, 17 Jun 2022 10:27:59 +0200	[thread overview]
Message-ID: <05c4d1a7039b3cdde5043a7445052171d8b6a7a1.camel@gmail.com> (raw)
In-Reply-To: <20220515044412.6697-1-maxim.cournoyer@gmail.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4032 bytes --]

* gnu/packages/aux-files/renpy/renpy.in (__renpy_files, path_to_gamedir):
New procedures.
* gnu/packages/game-development.scm (python-renpy): Update to
7.99.99-0-3e854bc.
(renpy): Likewise.
[inputs]: Add python-pefile, python-requests and python-six.
---
Hi Maxim,

regarding the revision field, I don't plan on doing too many nightlies, given
that I went two weeks without trying to invoke the renpy binary.  For the future
reviewer who has to read through all of this again when version 8 hits, I think
not indenting the package description makes more sense (particularly as I
anticipate possible changes in the phases due to renpy build weirdness).

The other suggestions should be applied (sans G-Expressions which are in the
next patch).

Cheers

 gnu/packages/aux-files/renpy/renpy.in | 21 +++++++++++++++++++--
 gnu/packages/game-development.scm     | 19 ++++++++++++++-----
 2 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/aux-files/renpy/renpy.in b/gnu/packages/aux-files/renpy/renpy.in
index 914a735fa4..9115d9aee3 100644
--- a/gnu/packages/aux-files/renpy/renpy.in
+++ b/gnu/packages/aux-files/renpy/renpy.in
@@ -1,12 +1,29 @@
 #! @PYTHON@
 # -*- mode: python -*-
 
-from __future__ import print_function
-
+import glob
 import os
 import sys
 import warnings
 
+def __renpy_files(directory):
+    for pattern in ['*.rpa', '*.rpyc', '*.rpy']:
+        for file in glob.iglob(pattern, root_dir=directory):
+            yield file
+
+def path_to_gamedir(basedir, name):
+    candidates = [name, 'game', 'data', 'launcher/game']
+
+    if __renpy_files(basedir):
+        return basedir
+
+    for candidate in candidates:
+        gamedir = os.path.join(basedir, candidate)
+        if __renpy_files(gamedir):
+            return gamedir
+
+    return basedir
+
 def path_to_common(renpy_base):
     return renpy_base + "/common"
 
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index f69088324a..4377654f8f 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -94,6 +94,7 @@ (define-module (gnu packages game-development)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages qt)
@@ -1255,16 +1256,21 @@ (define-public python-pygame-sdl2
 developed mainly for Ren'py.")
       (license (list license:lgpl2.1 license:zlib)))))
 
+;; Using nightly from 2022-06-16.
+;; Revert back to URLs once renpy 8 is released!
+(define %renpy-commit "3e854bc7cb1642ca18b061a0c6e349f168965c43")
 (define-public python-renpy
   (package
     (name "python-renpy")
-    (version "7.4.11")
+    (version (git-version "7.99.99" "0" %renpy-commit))
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://www.renpy.org/dl/" version
-                           "/renpy-" version "-source.tar.bz2"))
-       (sha256 (base32 "0zkhg2sd2hglm9dkansf4h8sq7lm7iqslzl763ambp4kyfdvd07q"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/renpy/renpy")
+             (commit %renpy-commit)))
+       (file-name (git-file-name name version))
+       (sha256 (base32 "11g7hqhw4gbkx5ib2wsawrznmjbn8r9zkgf2sg39z56h96y8wfbn"))
        (modules '((guix build utils)))
        (patches
         (search-patches
@@ -1484,8 +1490,11 @@ (define* (install-renpy-game #:key output game name (renpy renpy)
     (inputs
      `(("bash-minimal" ,bash-minimal)
        ("renpy.in" ,(search-auxiliary-file "renpy/renpy.in"))
+       ("python-pefile" ,python-pefile)
+       ("python-requests" ,python-requests)
        ("python-renpy" ,python-renpy)
        ("python:tk" ,python "tk")
+       ("python-six" ,python-six)
        ("python" ,python) ; for ‘fix-commands’ and ‘wrap’
        ("xdg-utils" ,xdg-utils)))
     (propagated-inputs '())
-- 
2.36.1





  parent reply	other threads:[~2022-06-17 15:17 UTC|newest]

Thread overview: 133+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-15  4:44 [bug#55424] [PATCH 000/602] Purge Python 2 packages Maxim Cournoyer
2022-05-15  4:36 ` [bug#55424] [PATCH 001/602] packages: Fix typo in package-superseded doc Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 002/602] etc/committer: Prefix (sxml xpath) symbols to avoid name conflict Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 003/602] etc/committer: Teach it how to commit package removal Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 004/602] utils: Add a 'delete-expression' procedure Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 005/602] utils: Add a %guix-source-root-directory procedure Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 006/602] diagnostics: Fix typo about 0-indexed COL in location Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 007/602] gnu: Remove python-pytest-runner-2 Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 008/602] gnu: Remove python2-langkit Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 009/602] gnu: Remove graphios Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 010/602] gnu: Remove python2-pyalsaaudio Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 011/602] gnu: Remove ingen Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 012/602] gnu: Remove raul Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 013/602] gnu: Remove raul-devel Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 014/602] gnu: Remove python2-pyaudio Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 015/602] gnu: Remove python2-fastalite Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 016/602] gnu: Remove grit Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 017/602] gnu: Remove ribodiff Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 018/602] gnu: Remove python2-pybigwig Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 019/602] gnu: tetoolkit: Update to 2.2.1b Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 020/602] gnu: Remove pepr Maxim Cournoyer
2022-05-15  8:17     ` Maxime Devos
2022-05-16  3:11       ` Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 021/602] gnu: Remove python2-htseq Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 022/602] gnu: Remove python2-pybedtools Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 023/602] gnu: Remove bamm Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 024/602] gnu: Remove python2-dendropy Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 025/602] gnu: Remove poretools Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 026/602] gnu: Remove python2-warpedlmm Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 027/602] gnu: Remove miso Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 028/602] gnu: Remove python2-screed Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 029/602] gnu: Remove python2-pyfaidx Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 030/602] gnu: Remove python2-pbcore Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 031/602] gnu: Remove pyicoteo Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 032/602] gnu: Remove transmission-remote-cli Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 033/602] gnu: Remove python2-nose-timer Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 034/602] gnu: Remove python2-pytest-catchlog Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 035/602] gnu: Remove python2-testlib Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 036/602] gnu: Remove python2-nose2 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 037/602] gnu: Remove python2-pytest-capturelog Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 038/602] gnu: Remove python2-python-paramunittest Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 039/602] gnu: Remove python2-rednose Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 040/602] gnu: Remove python2-minimock Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 041/602] gnu: Remove python2-flexmock Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 042/602] gnu: Remove python2-discover Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 043/602] gnu: Remove python2-cov-core Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 044/602] gnu: Remove python2-pytest-flakes Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 045/602] gnu: Remove python2-pytest-subtesthack Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 046/602] gnu: Remove python2-nose-randomly Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 047/602] gnu: Remove domainfinder Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 048/602] gnu: Remove nmoldyn Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 049/602] gnu: Remove python2-neo4j-driver Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 050/602] gnu: Remove python2-redis Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 051/602] gnu: Remove python2-trollius-redis Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 052/602] gnu: Remove python2-peewee Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 053/602] gnu: Remove python2-ccm Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 054/602] gnu: Remove python2-apsw Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 055/602] gnu: Remove python2-py2neo Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 056/602] gnu: Remove python2-pyodbc-c Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 057/602] gnu: Remove python2-pymysql Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 058/602] gnu: Remove python2-hiredis Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 059/602] gnu: Remove python2-pytest-pep8 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 060/602] gnu: Remove python2-scikit-learn Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 061/602] gnu: Remove ocrodjvu Maxim Cournoyer
2022-05-15  8:25     ` Maxime Devos
2022-05-16  3:17       ` Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 062/602] gnu: Remove python2-pandas Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 063/602] gnu: Remove python2-html5lib Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 064/602] gnu: Remove python2-statsmodels Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 065/602] gnu: Remove python2-pytest-cache Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 066/602] gnu: Remove python2-fastlmm Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 067/602] gnu: Remove python2-parameterized Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 068/602] gnu: Remove python2-pytest-warnings Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 069/602] gnu: Remove python2-pyodbc Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 070/602] gnu: Remove python2-pickleshare Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 071/602] gnu: Remove djvusmooth Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 072/602] gnu: Remove omnitux Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 073/602] gnu: Remove childsplay Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 074/602] gnu: Remove python2-capstone Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 075/602] gnu: Remove lekha Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 076/602] gnu: Remove python2-stdnum Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 077/602] gnu: Remove python2-ledgerblue Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 078/602] gnu: Remove python2-keepkey Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 079/602] gnu: nototools: Update to 0.2.16 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 080/602] gnu: Remove python2-tmx Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 081/602] gnu: renpy: Build with Python 3 Maxim Cournoyer
2022-06-16 13:18     ` Liliana Marie Prikler
2022-06-16 17:11       ` Maxim Cournoyer
2022-06-16 18:51         ` Liliana Marie Prikler
2022-06-16 21:29           ` Maxim Cournoyer
2022-06-16 23:39             ` Liliana Marie Prikler
2022-06-17  5:09               ` Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 082/602] gnu: Remove slingshot Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 083/602] gnu: Remove python2-gpg Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 084/602] gnu: Remove python2-pygpgme Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 085/602] gnu: pius: Update to 3.0.0 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 086/602] gnu: Remove python2-pydot Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 087/602] gnu: dot2tex: Update to 2.11.3 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 088/602] gnu: Remove h-client Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 089/602] gnu: Remove python2-iso3166 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 090/602] gnu: Remove python2-iso639 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 091/602] gnu: Remove key-mon Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 092/602] gnu: Remove python2-tegaki-recognize Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 093/602] gnu: Remove python2-pyusb Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 094/602] gnu: Remove python2-autograd Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 095/602] gnu: getmail: Deprecate with getmail6 Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 096/602] gnu: Remove python2-mailmanclient Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 097/602] gnu: Remove python2-musicbrainzngs Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 098/602] gnu: Remove python2-pyechonest Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 099/602] gnu: Remove mloop Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 100/602] gnu: Remove gtklick Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 101/602] gnu: Remove non-timeline Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 102/602] gnu: Remove non-mixer Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 103/602] gnu: Remove python2-ipy Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 104/602] gnu: Remove sala Maxim Cournoyer
2022-05-15  7:56 ` [bug#55424] [PATCH 000/602] Purge Python 2 packages Guillaume Le Vaillant
2022-05-16  3:12   ` Maxim Cournoyer
2022-05-31 19:17     ` bug#55424: " Maxim Cournoyer
2022-06-17  6:49 ` [bug#55424] [PATCH 1/4] gnu: Add back the distinction between python-renpy and renpy Liliana Marie Prikler
2022-06-17 13:14   ` Maxim Cournoyer
2022-06-17 13:35     ` Liliana Marie Prikler
2022-06-17  6:49 ` [bug#55424] [PATCH v2 1/6] " Liliana Marie Prikler
2022-06-17  8:25 ` [bug#55424] [PATCH 2/4] gnu: Add python-pefile Liliana Marie Prikler
2022-06-17  8:25 ` [bug#55424] [PATCH v2 2/6] " Liliana Marie Prikler
2022-06-17  8:26 ` [bug#55424] [PATCH 3/4] gnu: python-pygame-sdl2: Update to 2.1.0-0-1705c6e Liliana Marie Prikler
2022-06-17 13:36   ` Maxim Cournoyer
2022-06-17  8:26 ` [bug#55424] [PATCH v2 3/6] " Liliana Marie Prikler
2022-06-17  8:27 ` Liliana Marie Prikler [this message]
2022-06-17  8:27 ` [bug#55424] [PATCH 4/4] gnu: renpy: Update to 7.99.99-0-3e854bc Liliana Marie Prikler
2022-06-17 13:43   ` Maxim Cournoyer
2022-06-17 14:01 ` [bug#55424] [PATCH v2 5/6] gnu: renpy: Use new style Liliana Marie Prikler
2022-06-17 16:11   ` Maxim Cournoyer
2022-06-17 14:45 ` [bug#55424] [PATCH v2 6/6] guix: Modernize renpy-build-system Liliana Marie Prikler

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=05c4d1a7039b3cdde5043a7445052171d8b6a7a1.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=55424@debbugs.gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    /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).