gnu: renpy: Update to 7.99.99-0-3e854bc.
* 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.
This commit is contained in:
parent
62a7455107
commit
6c04a8961f
2 changed files with 33 additions and 7 deletions
|
@ -1,12 +1,29 @@
|
||||||
#! @PYTHON@
|
#! @PYTHON@
|
||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
|
|
||||||
from __future__ import print_function
|
import glob
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
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):
|
def path_to_common(renpy_base):
|
||||||
return renpy_base + "/common"
|
return renpy_base + "/common"
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,7 @@
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages pulseaudio)
|
#:use-module (gnu packages pulseaudio)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages python-web)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages readline)
|
#:use-module (gnu packages readline)
|
||||||
#:use-module (gnu packages qt)
|
#:use-module (gnu packages qt)
|
||||||
|
@ -1255,16 +1256,21 @@ While it aims to be used as a drop-in replacement, it appears to be
|
||||||
developed mainly for Ren'py.")
|
developed mainly for Ren'py.")
|
||||||
(license (list license:lgpl2.1 license:zlib)))))
|
(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
|
(define-public python-renpy
|
||||||
(package
|
(package
|
||||||
(name "python-renpy")
|
(name "python-renpy")
|
||||||
(version "7.4.11")
|
(version (git-version "7.99.99" "0" %renpy-commit))
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://www.renpy.org/dl/" version
|
(uri (git-reference
|
||||||
"/renpy-" version "-source.tar.bz2"))
|
(url "https://github.com/renpy/renpy")
|
||||||
(sha256 (base32 "0zkhg2sd2hglm9dkansf4h8sq7lm7iqslzl763ambp4kyfdvd07q"))
|
(commit %renpy-commit)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256 (base32 "11g7hqhw4gbkx5ib2wsawrznmjbn8r9zkgf2sg39z56h96y8wfbn"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(patches
|
(patches
|
||||||
(search-patches
|
(search-patches
|
||||||
|
@ -1484,8 +1490,11 @@ are only used to bootstrap it.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("bash-minimal" ,bash-minimal)
|
`(("bash-minimal" ,bash-minimal)
|
||||||
("renpy.in" ,(search-auxiliary-file "renpy/renpy.in"))
|
("renpy.in" ,(search-auxiliary-file "renpy/renpy.in"))
|
||||||
|
("python-pefile" ,python-pefile)
|
||||||
|
("python-requests" ,python-requests)
|
||||||
("python-renpy" ,python-renpy)
|
("python-renpy" ,python-renpy)
|
||||||
("python:tk" ,python "tk")
|
("python:tk" ,python "tk")
|
||||||
|
("python-six" ,python-six)
|
||||||
("python" ,python) ; for ‘fix-commands’ and ‘wrap’
|
("python" ,python) ; for ‘fix-commands’ and ‘wrap’
|
||||||
("xdg-utils" ,xdg-utils)))
|
("xdg-utils" ,xdg-utils)))
|
||||||
(propagated-inputs '())
|
(propagated-inputs '())
|
||||||
|
|
Reference in a new issue