From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iMINNA8+rGKB9QAAbAwnHQ (envelope-from ) for ; Fri, 17 Jun 2022 10:40:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SFYFNA8+rGL0ewAA9RJhRA (envelope-from ) for ; Fri, 17 Jun 2022 10:40:47 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 61E8D2DD20 for ; Fri, 17 Jun 2022 10:40:47 +0200 (CEST) Received: from localhost ([::1]:58116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o27X4-0000NJ-H9 for larch@yhetil.org; Fri, 17 Jun 2022 04:40:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o27UR-0008M0-D7 for guix-patches@gnu.org; Fri, 17 Jun 2022 04:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49762) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o27UR-00071e-4x for guix-patches@gnu.org; Fri, 17 Jun 2022 04:38:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o27UR-0006nc-2f for guix-patches@gnu.org; Fri, 17 Jun 2022 04:38:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55424] [PATCH 4/4] gnu: renpy: Update to 7.99.99-0-3e854bc. References: <20220515044412.6697-1-maxim.cournoyer@gmail.com> In-Reply-To: <20220515044412.6697-1-maxim.cournoyer@gmail.com> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Jun 2022 08:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55424 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 55424@debbugs.gnu.org Received: via spool by 55424-submit@debbugs.gnu.org id=B55424.165545503126056 (code B ref 55424); Fri, 17 Jun 2022 08:38:03 +0000 Received: (at 55424) by debbugs.gnu.org; 17 Jun 2022 08:37:11 +0000 Received: from localhost ([127.0.0.1]:43657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o27Ta-0006mB-Vr for submit@debbugs.gnu.org; Fri, 17 Jun 2022 04:37:11 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:35514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o27TQ-0006kl-84 for 55424@debbugs.gnu.org; Fri, 17 Jun 2022 04:37:04 -0400 Received: by mail-ej1-f65.google.com with SMTP id me5so7444073ejb.2 for <55424@debbugs.gnu.org>; Fri, 17 Jun 2022 01:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:to:cc:content-transfer-encoding:message-id :mime-version; bh=wFyPGXK8QcxGKwRbTQY/j04/M2XyhYpUIGaaQodNAUU=; b=dv92ok6jXPtyJsHSUXHM1WHqhj/d9MKP+L4/G69xXO5cxhgO4B4tKIhZQ0EOdrerKZ H4BV9dTuT0W4pYDhPr27rIX+b/L1DCxlHcsyfsNbZcchyU9vAiqnP0k9rVKtL5uGZn6j Oy+YzsDeCPSAMvWh14z+YuiK64J5Pqm8DeX3QmX6cgjLXsuVI8siOTTqcPheokeJYcid Eh3r9PPHvygxOGPGAVN5JNr8d5zfzO13lSmlJci0MxcC+Gllhv/ZGK5SEeHYKJ/sm186 b3s8TT4qYfvxJrPZbhlhK3w/lDzag5UNsryyCqaVrzjzCBkF/11sf6KBL+iIF34zKom5 3J/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:to:cc :content-transfer-encoding:message-id:mime-version; bh=wFyPGXK8QcxGKwRbTQY/j04/M2XyhYpUIGaaQodNAUU=; b=Dt7zeNmQoj8A0Za98wRvuyjGP/vdka9xkNvaQZvU6MPNMmUqMFkOAEO2Z7AWo1oUpi spO7BKT343B00wOHuRbD3igI5HIy81iidpftrbGQUCVXR8rT/4ghnY2kdT66QduWt1IC MOAcR2OEXPDCwY+xP0kbxKEAy2aj6qJwHYSGj920AmwKsMJK2oo1Dfq47yDrS8hACTHP BXsWS+b7pkY+YxL4fJqkX4rkqKj4TSZ0jA3XxzrUEwTNLXN76OqaeKVh1R0zFra5FDVk L9o+740U9wUkSQWzSANCGdil7ti43ZCwW7sZNJ4HILrUbbm8wvvm8XdeocRNKWDMvpEV sO+g== X-Gm-Message-State: AJIora+zE/HbqPQBvWdKUfWBIO3kv/uoyfoogSt6YvnTynj3Q44ja2EQ 8ZAd164IL99NDmU06UTb1lLtDqRbmEc= X-Google-Smtp-Source: AGRyM1sgW22nbAPajbNqPEpmds/PJvSicVR2Wcl+0d+ZZDpf+UY9+U2WLh8ZlJlhxosFeqCNAolNxQ== X-Received: by 2002:a17:906:2dd:b0:712:1293:3dd8 with SMTP id 29-20020a17090602dd00b0071212933dd8mr8313631ejk.448.1655455014682; Fri, 17 Jun 2022 01:36:54 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id u24-20020a17090617d800b006feb20b5235sm1859491eje.84.2022.06.17.01.36.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 01:36:54 -0700 (PDT) From: Liliana Marie Prikler Date: Fri, 17 Jun 2022 10:27:59 +0200 Content-Transfer-Encoding: 8bit Message-ID: <1c81a93681347259140a364e9d2330f93fcb89be.camel@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655455247; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wFyPGXK8QcxGKwRbTQY/j04/M2XyhYpUIGaaQodNAUU=; b=q9JzcL7S3rIsHtcGPs719A2W4jdc5P8cMhfkwps7rTALVY4dSbgFAZrfJe4mhp5d8axLQd yHbJUrVLXeCr8p28/udirq/RCOIM66kbZqoQ/MJ3z7pCu6HTGlUXGbEpvlB+Re8gHqbVUg 1bthFRr5jj+8KDABGLoxnJtC21FZr/CxobJaLSEzIbW3EFQw3PgmckRyG+IonJEyXZueez TzMP6/6EzT7rVxih7SmVCh7Wxc/Mi0S5yDO6KmF90hjvDLLvXlpLV4W1e46YGLcuu40PSJ 4GkWTRseUXix7n1GmEoNtpTuICEpOMerVxnybrI0No8PhIiIiM/x6qjDVBoKyg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655455247; a=rsa-sha256; cv=none; b=tpOMOtgErbfqdSy0U40/XEJ+bAqpDU2odONXn8XlYgTy1TtbaGnR6F3IuGJ6mxu0q0JrBc +hp/xybJfvHNqO2+M4gg8SDVgVO2La78vRZj0vFeYiBh0Nk+Cj4FgyC8h5eilSdwsIVmFz 3qkDVdOy1lbhzL/DSYlhQb33zx+PBzOn50QUDKd39i0TiuNSKYLe+D0FYttGns6bwbCz2u TWGu3xe3y6kN5WGVOGzfOB8jiubd+LzpjlfDFS0BrFCmjFCfvk2vx87tKXYeCafOaRpEGr fIA6Aiaywb9v4M5HVPFEaaXQMcNjo673yFfl+sj0+XKKiaF+9zyI5qxDjtu4MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=dv92ok6j; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 8.01 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=dv92ok6j; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 61E8D2DD20 X-Spam-Score: 8.01 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: q8Qg8ZoLfetP * 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. --- 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 ea83450995..e688cd390c 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) @@ -1253,16 +1254,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 @@ -1486,8 +1492,11 @@ (define* (install-renpy-game #:key output game name (renpy renpy) #t)))))) (inputs `(("renpy.in" ,(search-auxiliary-file "renpy/renpy.in")) + ("python-pefile" ,python-pefile) + ("python-requests" ,python-requests) ("python-renpy" ,python-renpy) ("python-tkinter" ,python "tk") + ("python-six" ,python-six) ("python" ,python) ; for ‘fix-commands’ and ‘wrap’ ("xdg-utils" ,xdg-utils))) (propagated-inputs '()) -- 2.36.1