emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#36082: closed ([PATCH] add gnurobots)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#36082: closed ([PATCH] add gnurobots)
Date: Thu, 06 Jun 2019 10:22:01 +0000

Your message dated Thu, 06 Jun 2019 12:20:49 +0200
with message-id <address@hidden>
and subject line Re: [bug#36082] [PATCH] add gnurobots
has caused the debbugs.gnu.org bug report #36082,
regarding [PATCH] add gnurobots
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
36082: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36082
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] add gnurobots Date: Mon, 3 Jun 2019 16:14:31 -0600
From 77168e843404ba8cddbace220a04d2d30d419a2f Mon Sep 17 00:00:00 2001
From: Jesse Gibbons <address@hidden>
Date: Mon, 3 Jun 2019 16:10:43 -0600
Subject: [PATCH] add gnurobots

---
 gnu/packages/games.scm | 49 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 4fdc9b01e6..6416b6b1bc 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -40,6 +40,7 @@
 ;;; Copyright © 2019 Oleg Pykhalov <address@hidden>
 ;;; Copyright © 2019 Pierre Langlois <address@hidden>
 ;;; Copyright © 2019 Julien Lepiller <address@hidden>
+;;; Copyright © 2019 Jesse Gibbons <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -7336,3 +7337,51 @@ Unfortunately, Hacker is not aware of Drascula's
real ambitions: DOMINATING the World and demonstrating that he is even
more evil than his brother Vlad.") ;; Drascula uses a BSD-like license.
     (license (license:non-copyleft "file:///readme.txt"))))
+
+
+(define-public gnurobots
+  (package
+   (name "gnurobots")
+   (version "1.2.0")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (string-append
+          "mirror://gnu/gnurobots/gnurobots-"
+          version
+          ".tar.gz"))
+     (sha256
+      (base32
+       "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
+   (build-system gnu-build-system)
+   (inputs
+    `(("glib" ,glib)
+      ("gtk+" ,gtk+-2)
+      ("vte" ,vte/gtk+-2)
+      ("readline" ,readline)
+      ("guile" ,guile-1.8)
+      ("pkg-config" ,pkg-config)))
+   (arguments '(
+               ;-Werror=deprecated-declarations kills the build. Fix
it!
+               #:make-flags
'("CFLAGS=-Wno-error=deprecated-declarations")
+               #:phases
+               ;readline headers were moved to readline/readline.h.
Fix before we compile.
+               (modify-phases %standard-phases
+                               (add-before 'build
'patch-shell-references
+                               (lambda _
+                                                         (begin
+
(substitute* (find-files "src" "\\.c$")
+
(("<readline.h>") "<readline/readline.h>"))
+
(substitute* (find-files "src" "\\.c$")
+
(("<history.h>") "<readline/history.h>"))))))))
+   (synopsis
+    "Program a little robot and watch him explore a world")
+   (description
+    "GNU Robots is a game in which you program a robot to explore a
world +full of enemies that can hurt it, obstacles and food to be eaten.
+The goal of the game is to stay alive and collect prizes.  The robot
+program conveniently may be written in a plain text file in the
+Scheme programming language.")
+   (home-page
+    "http://www.gnu.org/software/gnurobots/readme.html";)
+   (license gpl3+)))
-- 
2.21.0




--- End Message ---
--- Begin Message --- Subject: Re: [bug#36082] [PATCH] add gnurobots Date: Thu, 06 Jun 2019 12:20:49 +0200 User-agent: mu4e 1.2.0; emacs 26.2
Hi Jesse,

thank you for the updated patch.  I pushed it to the master branch with
commit 08c2fb8fe9 after a couple of changes:

* fixed indentation and formatting; replaced tabs with spaces
* added a build phase to install the HOWTO document
* replaced the build phase to patch references to headers with a make
  flag
* moved pkg-config to native-inputs
* reflowed the description
* changed the commit message

Thanks!

-- 
Ricardo



--- End Message ---

reply via email to

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