From patchwork Mon Jan 6 11:07:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timotej Lazar X-Patchwork-Id: 19634 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 B37AB179FE; Mon, 6 Jan 2020 11:09:10 +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=-1.9 required=5.0 tests=BAYES_00,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 6C5511798D for ; Mon, 6 Jan 2020 11:09:10 +0000 (GMT) Received: from localhost ([::1]:50698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioQFx-0005QA-VA for patchwork@mira.cbaines.net; Mon, 06 Jan 2020 06:09:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54235) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioQFs-0005Ol-1h for guix-patches@gnu.org; Mon, 06 Jan 2020 06:09:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioQFq-0006oZ-QE for guix-patches@gnu.org; Mon, 06 Jan 2020 06:09:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioQFq-0006oO-N1 for guix-patches@gnu.org; Mon, 06 Jan 2020 06:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ioQFq-0007Am-Iz for guix-patches@gnu.org; Mon, 06 Jan 2020 06:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38981] [PATCH] gnu: Add corsix-th. Resent-From: Timotej Lazar Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Jan 2020 11:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38981 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38981@debbugs.gnu.org Cc: Timotej Lazar X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157830892427532 (code B ref -1); Mon, 06 Jan 2020 11:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jan 2020 11:08:44 +0000 Received: from localhost ([127.0.0.1]:45205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioQFX-00079z-5E for submit@debbugs.gnu.org; Mon, 06 Jan 2020 06:08:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:36275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioQFS-00079o-L7 for submit@debbugs.gnu.org; Mon, 06 Jan 2020 06:08:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioQFQ-0005O5-Fd for guix-patches@gnu.org; Mon, 06 Jan 2020 06:08:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioQFP-0006Wc-8D for guix-patches@gnu.org; Mon, 06 Jan 2020 06:08:36 -0500 Received: from araneo.si ([90.157.193.204]:41268) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ioQFO-0006Vp-Sx for guix-patches@gnu.org; Mon, 06 Jan 2020 06:08:35 -0500 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id 3d280e1b for ; Mon, 6 Jan 2020 11:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20180623; bh=ZlJXN8DJ4n1jxFTKq/p6qzzMTfk=; b=nvcU7EArv+3X0eks Rvjgzedps//gBFduQ6HVwF6Oftucp4fAjh2D/wDpCmZIsV96ikfHL2Fsvxp1Qazc 70/KizDUjH5xGyRAk5QPTqHzQYj+LPRk14dpRjZVFAYqrVEdbE347HlBRjumZYgJ YbsG9Bo5kPlcNtMWWb5TVjJCFZRkfqvNpyY5pBXmpyTiKy5p+ZL7CcpV+ovCRh75 R4OFeSvCfHXaq8v60AcnoZXztNnE+06j2+v7yTxSNvt6li/tv5P88tB5mpHxSrBB w9RH29qtKpootjn7aGQQgFuIp2FIuI80aK/DPzGN+AkloQAhQRy/eES64JvPZacF lCjqRw== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 92e30bc9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 6 Jan 2020 11:08:33 +0000 (UTC) From: Timotej Lazar Date: Mon, 6 Jan 2020 12:07:56 +0100 Message-Id: <20200106110756.4751-1-timotej.lazar@araneo.si> 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/games.scm (corsix-th): New variable. --- gnu/packages/games.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 066e2c8cf3..969518f8ca 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -462,6 +462,62 @@ want what you have.") (define-public cataclysm-dark-days-ahead (deprecated-package "cataclysm-dark-days-ahead" cataclysm-dda)) +(define-public corsix-th + (package + (name "corsix-th") + (version "0.63") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/CorsixTH/CorsixTH.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rkyk8g55xny276s0hr5k8mq6f4nzz56d3k2mp09dzfymrqb8hgi")))) + (build-system cmake-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-binary + (lambda _ + ;; Set Lua module paths and default MIDI soundfont on startup. + (let* ((out (assoc-ref %outputs "out")) + (fluid (assoc-ref %build-inputs "fluid-3")) + (lua-version ,(version-major+minor (package-version lua))) + (lua-cpath + (map (lambda (lib) + (string-append + (assoc-ref %build-inputs (string-append "lua-" lib)) + "/lib/lua/" lua-version "/?.so")) + '("filesystem" "lpeg")))) + (wrap-program (string-append out "/bin/corsix-th") + `("LUA_CPATH" ";" = ,lua-cpath) + `("SDL_SOUNDFONTS" ":" suffix + (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3"))))) + #t))) + #:tests? #f)) ; TODO need busted package to run tests + ;; Omit Lua-Socket dependency to disable automatic updates. + (inputs + `(("ffmpeg" ,ffmpeg) + ("fluid-3" ,fluid-3) + ("freetype" ,freetype) + ("lua" ,lua) + ("lua-filesystem" ,lua-filesystem) + ("lua-lpeg" ,lua-lpeg) + ("sdl2" ,sdl2) + ("sdl2-mixer" ,sdl2-mixer))) + (home-page "https://corsixth.com") + (synopsis "Free implementation of Theme Hospital game engine") + (description + "Reimplementation of the 1997 Bullfrog business simulation game Theme +Hospital. As well as faithfully recreating the original engine, CorsixTH adds +support for high resolutions, custom levels and more. This package does +@emph{not} provide the game assets.") + (license (list + license:expat ; main license + license:bsd-3)))) ; CorsixTH/Src/random.c + (define-public cowsay (package (name "cowsay")