guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/06: gnu: grue-hunter: Move to (gnu packages games).


From: Ludovic Courtès
Subject: 04/06: gnu: grue-hunter: Move to (gnu packages games).
Date: Wed, 15 Jun 2016 13:28:18 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 0fb9a15bb5faf34214689810ff98b23a4295f04e
Author: Ludovic Courtès <address@hidden>
Date:   Wed Jun 15 11:02:16 2016 +0200

    gnu: grue-hunter: Move to (gnu packages games).
    
    * gnu/packages/grue-hunter.scm: Remove.  Move contents to...
    * gnu/packages/games.scm (grue-hunter): ... here.  New variable.
    * gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
---
 gnu/local.mk                 |    1 -
 gnu/packages/games.scm       |   58 +++++++++++++++++++++++++++++
 gnu/packages/grue-hunter.scm |   84 ------------------------------------------
 3 files changed, 58 insertions(+), 85 deletions(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index 73aef0a..df1e769 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -154,7 +154,6 @@ GNU_SYSTEM_MODULES =                                \
   %D%/packages/graphviz.scm                    \
   %D%/packages/groff.scm                       \
   %D%/packages/grub.scm                                \
-  %D%/packages/grue-hunter.scm                 \
   %D%/packages/gsasl.scm                       \
   %D%/packages/gstreamer.scm                   \
   %D%/packages/gtk.scm                         \
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 9f4a4f9..b0bf4e3 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -20,6 +20,7 @@
 ;;; Copyright © 2016 Albin Söderqvist <address@hidden>
 ;;; Copyright © 2016 Kei Kebreau <address@hidden>
 ;;; Copyright © 2016 Alex Griffin <address@hidden>
+;;; Copyright © 2013 Nikita Karetnikov <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2338,3 +2339,60 @@ Super Game Boy, BS-X Satellaview, and Sufami Turbo.")
     ;; - icarus/icarus.cpp
     ;; - higan/emulator/emulator.hpp
     (license license:gpl3)))
+
+(define-public grue-hunter
+  (package
+    (name "grue-hunter")
+    (version "1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://jxself.org/"; name ".tar.gz"))
+              (sha256
+               (base32
+                "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
+    (build-system trivial-build-system) ; no Makefile.PL
+    (arguments `(#:modules ((guix build utils))
+                 #:builder
+                 (begin
+                   (use-modules (guix build utils))
+                   (use-modules (srfi srfi-1))
+
+                   (let* ((tarball (assoc-ref %build-inputs "tarball"))
+                          (perl    (string-append (assoc-ref %build-inputs
+                                                             "perl")
+                                                  "/bin"))
+                          (gunzip  (string-append (assoc-ref %build-inputs
+                                                             "gzip")
+                                                  "/bin/gunzip"))
+                          (tar     (string-append (assoc-ref %build-inputs
+                                                             "tar")
+                                                  "/bin/tar"))
+                          (out     (assoc-ref %outputs "out"))
+                          (bin     (string-append out "/bin"))
+                          (doc     (string-append out "/share/doc")))
+                     (begin
+                       (mkdir out)
+                       (copy-file tarball "grue-hunter.tar.gz")
+                       (zero? (system* gunzip "grue-hunter.tar.gz"))
+                       (zero? (system* tar "xvf"  "grue-hunter.tar"))
+
+                       (mkdir-p bin)
+                       (copy-file "grue-hunter/gh.pl"
+                                  (string-append bin "/grue-hunter"))
+                       (patch-shebang (string-append bin "/grue-hunter")
+                                      (list perl))
+
+                       (mkdir-p doc)
+                       (copy-file "grue-hunter/AGPLv3.txt"
+                                  (string-append doc "/grue-hunter")))))))
+    (inputs `(("perl" ,perl)
+              ("tar" ,tar)
+              ("gzip" ,gzip)
+              ("tarball" ,source)))
+    (home-page "http://jxself.org/grue-hunter.shtml";)
+    (synopsis "Text adventure game")
+    (description
+     "Grue Hunter is a text adventure game written in Perl.  You must make
+your way through an underground cave system in search of the Grue.  Can you
+capture it and get out alive?")
+    (license license:agpl3+)))
diff --git a/gnu/packages/grue-hunter.scm b/gnu/packages/grue-hunter.scm
deleted file mode 100644
index 71eee96..0000000
--- a/gnu/packages/grue-hunter.scm
+++ /dev/null
@@ -1,84 +0,0 @@
-;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013 Nikita Karetnikov <address@hidden>
-;;;
-;;; This file is part of GNU Guix.
-;;;
-;;; GNU Guix is free software; you can redistribute it and/or modify it
-;;; under the terms of the GNU General Public License as published by
-;;; the Free Software Foundation; either version 3 of the License, or (at
-;;; your option) any later version.
-;;;
-;;; GNU Guix is distributed in the hope that it will be useful, but
-;;; WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-;;; GNU General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
-
-(define-module (gnu packages grue-hunter)
-  #:use-module (guix licenses)
-  #:use-module (guix packages)
-  #:use-module (guix download)
-  #:use-module (guix build-system trivial)
-  #:use-module (gnu packages base)
-  #:use-module (gnu packages compression)
-  #:use-module (gnu packages perl))
-
-(define-public grue-hunter
-  (package
-    (name "grue-hunter")
-    (version "1.0")
-    (source
-     (origin
-      (method url-fetch)
-      (uri (string-append "https://jxself.org/"; name ".tar.gz"))
-      (sha256
-       (base32
-        "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
-    (build-system trivial-build-system) ; no Makefile.PL
-    (arguments `(#:modules ((guix build utils))
-                 #:builder
-                 (begin
-                   (use-modules (guix build utils))
-                   (use-modules (srfi srfi-1))
-
-                   (let* ((tarball (assoc-ref %build-inputs "tarball"))
-                          (perl    (string-append (assoc-ref %build-inputs
-                                                             "perl")
-                                                  "/bin"))
-                          (gunzip  (string-append (assoc-ref %build-inputs
-                                                             "gzip")
-                                                  "/bin/gunzip"))
-                          (tar     (string-append (assoc-ref %build-inputs
-                                                             "tar")
-                                                  "/bin/tar"))
-                          (out     (assoc-ref %outputs "out"))
-                          (bin     (string-append out "/bin"))
-                          (doc     (string-append out "/share/doc")))
-                     (begin
-                       (mkdir out)
-                       (copy-file tarball "grue-hunter.tar.gz")
-                       (zero? (system* gunzip "grue-hunter.tar.gz"))
-                       (zero? (system* tar "xvf"  "grue-hunter.tar"))
-
-                       (mkdir-p bin)
-                       (copy-file "grue-hunter/gh.pl"
-                                  (string-append bin "/grue-hunter"))
-                       (patch-shebang (string-append bin "/grue-hunter")
-                                      (list perl))
-
-                       (mkdir-p doc)
-                       (copy-file "grue-hunter/AGPLv3.txt"
-                                  (string-append doc "/grue-hunter")))))))
-    (inputs `(("perl" ,perl)
-              ("tar" ,tar)
-              ("gzip" ,gzip)
-              ("tarball" ,source)))
-    (home-page "http://jxself.org/grue-hunter.shtml";)
-    (synopsis "Text adventure game")
-    (description
-     "Grue Hunter is a text adventure game written in Perl.  You must make
-your way through an underground cave system in search of the Grue.  Can you
-capture it and get out alive?")
-    (license agpl3+)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]