unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27190: [PATCH] gnu: Add retux.
@ 2017-06-01 17:48 Kei Kebreau
  2017-06-22 21:25 ` Kei Kebreau
  0 siblings, 1 reply; 2+ messages in thread
From: Kei Kebreau @ 2017-06-01 17:48 UTC (permalink / raw)
  To: 27190; +Cc: Kei Kebreau

* gnu/packages/games.scm (retux): New variable.
---
 gnu/packages/games.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 60d885500..aaae1e54b 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -331,6 +331,63 @@ Chess).  It is similar to standard chess but this variant is far more complicate
     "PrBoom+ is a Doom source port developed from the original PrBoom project.")
    (license license:gpl2+)))
 
+(define-public retux
+  (package
+    (name "retux")
+    (version "1.3.4")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://savannah/retux/"
+                                  (version-major+minor version) "/retux-"
+                                  version "-src.tar.gz"))
+              (sha256
+               (base32
+                "1wgvh3q96kfgymb2jpd58xsms9hmckhhc4fq7v2k61gh2l11cvdj"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f ; no check target
+       #:phases
+       (modify-phases %standard-phases
+         ;; no setup.py script
+         (delete 'build)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out    (assoc-ref outputs "out"))
+                    (bin    (string-append out "/bin"))
+                    (data   (string-append out "/share/retux"))
+                    (doc    (string-append out "/share/doc/retux")))
+               (mkdir-p bin)
+
+               (substitute* "retux.py"
+                 ;; Use the correct data directory.
+                 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
+                  (string-append "\"" data "\","))
+                 ;; Use Python 3 so the patch-shebangs phase works properly.
+                 ((".*python2.*") "#!/usr/bin/python3"))
+
+               (copy-file "retux.py" (string-append bin "/retux"))
+
+               (copy-recursively "data" data)
+
+               (install-file "COPYING" doc)))))))
+    (inputs `(("python-sge-pygame" ,python-sge-pygame)
+              ("python-six" ,python-six)
+              ("python-xsge" ,python-xsge)))
+    (home-page "http://retux.nongnu.org")
+    (synopsis "Action platformer game")
+    (description
+     "ReTux is an action platformer loosely inspired by the Mario games,
+utilizing the art assets from the @code{SuperTux} project.")
+    ;; GPL version 3 or later is the license for the code and some art.
+    ;; The rest of the licenses are for the art exclusively, as listed in
+    ;; data/LICENSES.
+    (license (list license:cc0
+                   license:cc-by3.0
+                   license:cc-by-sa3.0
+                   license:cc-by-sa4.0
+                   license:gpl2+
+                   license:gpl3+))))
+
 (define-public xshogi
   (package
     (name "xshogi")
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#27190: [PATCH] gnu: Add retux.
  2017-06-01 17:48 bug#27190: [PATCH] gnu: Add retux Kei Kebreau
@ 2017-06-22 21:25 ` Kei Kebreau
  0 siblings, 0 replies; 2+ messages in thread
From: Kei Kebreau @ 2017-06-22 21:25 UTC (permalink / raw)
  To: 27190-done

[-- Attachment #1: Type: text/plain, Size: 3311 bytes --]

Kei Kebreau <kei@openmailbox.org> writes:

> * gnu/packages/games.scm (retux): New variable.
> ---
>  gnu/packages/games.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 57 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index 60d885500..aaae1e54b 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -331,6 +331,63 @@ Chess).  It is similar to standard chess but this variant is far more complicate
>      "PrBoom+ is a Doom source port developed from the original PrBoom project.")
>     (license license:gpl2+)))
>  
> +(define-public retux
> +  (package
> +    (name "retux")
> +    (version "1.3.4")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "mirror://savannah/retux/"
> +                                  (version-major+minor version) "/retux-"
> +                                  version "-src.tar.gz"))
> +              (sha256
> +               (base32
> +                "1wgvh3q96kfgymb2jpd58xsms9hmckhhc4fq7v2k61gh2l11cvdj"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:tests? #f ; no check target
> +       #:phases
> +       (modify-phases %standard-phases
> +         ;; no setup.py script
> +         (delete 'build)
> +         (replace 'install
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let* ((out    (assoc-ref outputs "out"))
> +                    (bin    (string-append out "/bin"))
> +                    (data   (string-append out "/share/retux"))
> +                    (doc    (string-append out "/share/doc/retux")))
> +               (mkdir-p bin)
> +
> +               (substitute* "retux.py"
> +                 ;; Use the correct data directory.
> +                 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
> +                  (string-append "\"" data "\","))
> +                 ;; Use Python 3 so the patch-shebangs phase works properly.
> +                 ((".*python2.*") "#!/usr/bin/python3"))
> +
> +               (copy-file "retux.py" (string-append bin "/retux"))
> +
> +               (copy-recursively "data" data)
> +
> +               (install-file "COPYING" doc)))))))
> +    (inputs `(("python-sge-pygame" ,python-sge-pygame)
> +              ("python-six" ,python-six)
> +              ("python-xsge" ,python-xsge)))
> +    (home-page "http://retux.nongnu.org")
> +    (synopsis "Action platformer game")
> +    (description
> +     "ReTux is an action platformer loosely inspired by the Mario games,
> +utilizing the art assets from the @code{SuperTux} project.")
> +    ;; GPL version 3 or later is the license for the code and some art.
> +    ;; The rest of the licenses are for the art exclusively, as listed in
> +    ;; data/LICENSES.
> +    (license (list license:cc0
> +                   license:cc-by3.0
> +                   license:cc-by-sa3.0
> +                   license:cc-by-sa4.0
> +                   license:gpl2+
> +                   license:gpl3+))))
> +
>  (define-public xshogi
>    (package
>      (name "xshogi")

Noting the lack of commentary, this package is pushed to master as
519bfc656c680067c902f12b9db32fa8a0ec7c2a.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-22 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-01 17:48 bug#27190: [PATCH] gnu: Add retux Kei Kebreau
2017-06-22 21:25 ` Kei Kebreau

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).