gnu: renpy: Use new style.
* gnu/packages/game-development.scm (renpy)[arguments]: Change to list of G-Expressions. [inputs]: Drop labels. [native-inputs, outputs]: Squash to single line.
parent
6c04a8961f
commit
f7d66e41f8
|
@ -48,6 +48,7 @@
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix svn-download)
|
#:use-module (guix svn-download)
|
||||||
|
@ -1352,13 +1353,14 @@ are only used to bootstrap it.")
|
||||||
(name "renpy")
|
(name "renpy")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; see python-renpy
|
(list
|
||||||
#:modules ((srfi srfi-1)
|
#:tests? #f ; see python-renpy
|
||||||
|
#:modules '((srfi srfi-1)
|
||||||
(guix build python-build-system)
|
(guix build python-build-system)
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
#:imported-modules ((srfi srfi-1) ,@%python-build-system-modules)
|
#:imported-modules `((srfi srfi-1) ,@%python-build-system-modules)
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-commands
|
(add-after 'unpack 'fix-commands
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(substitute* "launcher/game/choose_directory.rpy"
|
(substitute* "launcher/game/choose_directory.rpy"
|
||||||
|
@ -1403,7 +1405,7 @@ are only used to bootstrap it.")
|
||||||
;; `-- gui
|
;; `-- gui
|
||||||
;;
|
;;
|
||||||
;; Note that common shares the source files that would be installed
|
;; Note that common shares the source files that would be installed
|
||||||
;; by python-renpy (which are instead deleted from that package),
|
;; by python2-renpy (which are instead deleted from that package),
|
||||||
;; but also contains their byte-compiled versions.
|
;; but also contains their byte-compiled versions.
|
||||||
;; On other systems, renpy_base would point to site-packages or
|
;; On other systems, renpy_base would point to site-packages or
|
||||||
;; even somewhere in /opt.
|
;; even somewhere in /opt.
|
||||||
|
@ -1432,7 +1434,8 @@ are only used to bootstrap it.")
|
||||||
(string-append out "/share/renpy/gui"))
|
(string-append out "/share/renpy/gui"))
|
||||||
|
|
||||||
(mkdir-p (string-append out "/bin"))
|
(mkdir-p (string-append out "/bin"))
|
||||||
(copy-file (assoc-ref inputs "renpy.in") bin/renpy)
|
(copy-file #$(local-file (search-auxiliary-file "renpy/renpy.in"))
|
||||||
|
bin/renpy)
|
||||||
(substitute* bin/renpy
|
(substitute* bin/renpy
|
||||||
(("@PYTHON@") (search-input-file inputs "bin/python3"))
|
(("@PYTHON@") (search-input-file inputs "bin/python3"))
|
||||||
(("@RENPY_BASE@") (string-append out "/share/renpy")))
|
(("@RENPY_BASE@") (string-append out "/share/renpy")))
|
||||||
|
@ -1487,21 +1490,17 @@ are only used to bootstrap it.")
|
||||||
(lambda (input)
|
(lambda (input)
|
||||||
(string-prefix? "python" (car input)))
|
(string-prefix? "python" (car input)))
|
||||||
inputs))))))))))))))
|
inputs))))))))))))))
|
||||||
(inputs
|
(inputs (list bash-minimal
|
||||||
`(("bash-minimal" ,bash-minimal)
|
python
|
||||||
("renpy.in" ,(search-auxiliary-file "renpy/renpy.in"))
|
python-pefile
|
||||||
("python-pefile" ,python-pefile)
|
python-requests
|
||||||
("python-requests" ,python-requests)
|
python-renpy
|
||||||
("python-renpy" ,python-renpy)
|
python-six
|
||||||
("python:tk" ,python "tk")
|
`(,python "tk")
|
||||||
("python-six" ,python-six)
|
xdg-utils))
|
||||||
("python" ,python) ; for ‘fix-commands’ and ‘wrap’
|
|
||||||
("xdg-utils" ,xdg-utils)))
|
|
||||||
(propagated-inputs '())
|
(propagated-inputs '())
|
||||||
(native-inputs
|
(native-inputs (list xorg-server-for-tests))
|
||||||
(list xorg-server-for-tests))
|
(outputs (list "out" "tutorial" "the-question"))
|
||||||
(outputs
|
|
||||||
(list "out" "tutorial" "the-question"))
|
|
||||||
(home-page "https://www.renpy.org/")
|
(home-page "https://www.renpy.org/")
|
||||||
(synopsis "Visual Novel Engine")
|
(synopsis "Visual Novel Engine")
|
||||||
(description "Ren'Py is a visual novel engine that helps you use words,
|
(description "Ren'Py is a visual novel engine that helps you use words,
|
||||||
|
|
Reference in New Issue