From patchwork Fri Dec 20 12:37:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 16579 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8E9F217916; Fri, 20 Dec 2019 12:39:35 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 46475178ED for ; Fri, 20 Dec 2019 12:39:35 +0000 (GMT) Received: from localhost ([::1]:54670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiHZ8-0006VS-CX for patchwork@mira.cbaines.net; Fri, 20 Dec 2019 07:39:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37619) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiHYe-0006Hy-HC for guix-patches@gnu.org; Fri, 20 Dec 2019 07:39:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiHYd-0001lf-08 for guix-patches@gnu.org; Fri, 20 Dec 2019 07:39:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iiHYc-0001kZ-Ow for guix-patches@gnu.org; Fri, 20 Dec 2019 07:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iiHYc-0003rk-KI for guix-patches@gnu.org; Fri, 20 Dec 2019 07:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38687] [PATCH] gnu: Add libtcod. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Dec 2019 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38687 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38687@debbugs.gnu.org Cc: Giacomo Leidi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157684553314838 (code B ref -1); Fri, 20 Dec 2019 12:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Dec 2019 12:38:53 +0000 Received: from localhost ([127.0.0.1]:45996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iiHYS-0003rG-Os for submit@debbugs.gnu.org; Fri, 20 Dec 2019 07:38:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:48109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iiHYR-0003r8-Ck for submit@debbugs.gnu.org; Fri, 20 Dec 2019 07:38:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35992) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiHYP-0005qc-Iv for guix-patches@gnu.org; Fri, 20 Dec 2019 07:38:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiHYN-000149-Nu for guix-patches@gnu.org; Fri, 20 Dec 2019 07:38:49 -0500 Received: from devianza.investici.org ([198.167.222.108]:34729) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iiHYN-0000pW-46 for guix-patches@gnu.org; Fri, 20 Dec 2019 07:38:47 -0500 Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id BD93AE0559; Fri, 20 Dec 2019 12:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1576845521; bh=5DBkj/RoHVstC+Kyn8rw4+2phly0s1cYX/feFHgZjc8=; h=From:To:Cc:Subject:Date:From; b=MiM41+5dHAUic6NdaqjqWNY2oJzfjo8Obr0Do0rnQRHQ2XFmK3HWNrFAnwnVdIpN9 k1lOFaiSB6zeU0V6TWG/DtAFVGH1KwUkamhbhW5GQQN3kcm2ofu+qd0q/vwLyfbVPP FFFj6MPRYkRIk8MyvQRpEDKNBuWRjDz69Y3rqBEQ= Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 97657E0556; Fri, 20 Dec 2019 12:38:40 +0000 (UTC) From: Giacomo Leidi Date: Fri, 20 Dec 2019 13:37:39 +0100 Message-Id: <20191220123739.18081-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/game-development.scm (libtcod): New variable. --- gnu/packages/game-development.scm | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index febe15fa57..b5c4ff9ca7 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2019 Pierre Neidhardt ;;; Copyright © 2019 Leo Prikler ;;; Copyright © 2019 Jethro Cao +;;; Copyright © 2019 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -1904,3 +1905,41 @@ projects.") hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting.") (license license:bsd-3))) + +(define-public libtcod + (package + (name "libtcod") + (version "1.15.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libtcod/libtcod.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0pzr8ajmbqvh43ldjajx962xirj3rf8ayh344p6mqlrmb8gxrfr5")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'change-to-build-dir + (lambda _ + (chdir "buildsys/autotools") + (patch-shebang "get_version.py") + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("python" ,python) + ("pkg-config" ,pkg-config) + ("sdl2" ,sdl2) + ("zlib" ,zlib))) + (home-page "https://github.com/libtcod/libtcod") + (synopsis "Library specifically designed for writing roguelikes") + (description + "libtcod is a free, fast, portable and uncomplicated API for roguelike +developers providing an advanced true color console, input, and lots of other +utilities frequently used in roguelikes.") + (license license:bsd-3)))