From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:58000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXvER-0008SS-JR for guix-patches@gnu.org; Mon, 03 Jun 2019 18:15:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXvEP-0003LY-KI for guix-patches@gnu.org; Mon, 03 Jun 2019 18:15:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXvEM-0003Fu-6i for guix-patches@gnu.org; Mon, 03 Jun 2019 18:15:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hXvEM-0004Wl-0y for guix-patches@gnu.org; Mon, 03 Jun 2019 18:15:02 -0400 Subject: [bug#36082] [PATCH] add gnurobots Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:57839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXvDz-0008RU-3g for guix-patches@gnu.org; Mon, 03 Jun 2019 18:14:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXvDx-0002r8-It for guix-patches@gnu.org; Mon, 03 Jun 2019 18:14:39 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:35793) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXvDx-0002lP-7M for guix-patches@gnu.org; Mon, 03 Jun 2019 18:14:37 -0400 Received: by mail-pl1-x630.google.com with SMTP id p1so7495724plo.2 for ; Mon, 03 Jun 2019 15:14:36 -0700 (PDT) Received: from localhost ([199.68.53.171]) by smtp.gmail.com with ESMTPSA id q20sm14735378pgq.66.2019.06.03.15.14.32 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jun 2019 15:14:33 -0700 (PDT) Date: Mon, 3 Jun 2019 16:14:31 -0600 From: Jesse Gibbons Message-ID: <20190603161431.03842caa@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36082@debbugs.gnu.org =46rom 77168e843404ba8cddbace220a04d2d30d419a2f Mon Sep 17 00:00:00 2001 From: Jesse Gibbons 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 =C2=A9 2019 Oleg Pykhalov ;;; Copyright =C2=A9 2019 Pierre Langlois ;;; Copyright =C2=A9 2019 Julien Lepiller +;;; Copyright =C2=A9 2019 Jesse Gibbons ;;; ;;; 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=3Ddeprecated-declarations kills the build. Fix it! + #:make-flags '("CFLAGS=3D-Wno-error=3Ddeprecated-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$") + (("") "")) + (substitute* (find-files "src" "\\.c$") + (("") "")))))))) + (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+))) --=20 2.21.0