From patchwork Mon Aug 26 11:17:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 15141 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 D7B841731C; Mon, 26 Aug 2019 12:18:12 +0100 (BST) 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 3461117319 for ; Mon, 26 Aug 2019 12:18:12 +0100 (BST) Received: from localhost ([::1]:51766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2D0l-0001dZ-CJ for patchwork@mira.cbaines.net; Mon, 26 Aug 2019 07:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45104) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2D0e-0001dS-Rx for guix-patches@gnu.org; Mon, 26 Aug 2019 07:18:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2D0d-0000Jl-1q for guix-patches@gnu.org; Mon, 26 Aug 2019 07:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2D0c-0000Is-UP for guix-patches@gnu.org; Mon, 26 Aug 2019 07:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i2D0b-0002QH-NB for guix-patches@gnu.org; Mon, 26 Aug 2019 07:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36978] [PATCH 0/3] Add Unknown Horizons and dependencies Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 26 Aug 2019 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36978 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Received: via spool by 36978-submit@debbugs.gnu.org id=B36978.15668182489269 (code B ref 36978); Mon, 26 Aug 2019 11:18:01 +0000 Received: (at 36978) by debbugs.gnu.org; 26 Aug 2019 11:17:28 +0000 Received: from localhost ([127.0.0.1]:45689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2Czv-0002PG-Lx for submit@debbugs.gnu.org; Mon, 26 Aug 2019 07:17:28 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:55382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2Czr-0002P4-Lv for 36978@debbugs.gnu.org; Mon, 26 Aug 2019 07:17:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IMT+T9rllBExuye3QqCdJ6HcVLidPs1nTZBpoAhNsAM=; b=QmFqdzTZm6NfPRZhnVltvnoEK g8g0nuIRtfNz0moF492zf3doT0NZJvGXCgVi3MuwsLd2QfnyAZdorgKHZkIbO/NhT0IP5lJaSWGi+ WEVUxKTaLu+nUHZa8hiWZZwxhyhesFtCE/WlXQxTMCKRTGsksFwsK9EJkYrRNcdIM5YcE=; Received: from [14.139.128.10] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.1) (envelope-from ) id 1i2Czn-0000PF-Fm; Mon, 26 Aug 2019 16:47:11 +0530 From: Arun Isaac In-Reply-To: References: <8736ibtogp.fsf@cbaines.net> <87y2zjzizi.fsf@gnu.org> Date: Mon, 26 Aug 2019 16:47:08 +0530 Message-ID: MIME-Version: 1.0 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: , Cc: 36978@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches > fifengine and unknown-horizons do have tests, though. Could you try > packaging them? I had some WIP on packaging unknown-horizons and dependencies. I have attached my unfinished patches. Perhaps that could be of some use to you. From cb3f833c38e948d1b45513124a786e81a2f70911 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 26 Aug 2019 16:41:45 +0530 Subject: [PATCH 3/3] gnu: Add unknown-horizons. * gnu/packages/games.scm (unknown-horizons): New variable. --- gnu/packages/games.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 870becc50b..f49b451bbd 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -7637,3 +7637,70 @@ remake of that series or any other game.") the AlphaGo Zero paper. The current best network weights file for the engine can be downloaded from @url{https://zero.sjeng.org/best-network}.") (license license:gpl3+))) + +(define-public unknown-horizons + (package + (name "unknown-horizons") + (version "2019.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/unknown-horizons/unknown-horizons") + (commit version))) + (sha256 + (base32 + "1khq9ajwi0fmphsjpa024v1px47mcjzvvx2vnrpz1fkis34y83h0")))) + (build-system python-build-system) + (inputs + `(("fifengine" ,fifengine) + ("python:tk" ,python "tk") + ("python-future" ,python-future) + ("python-pyyaml" ,python-pyyaml))) + (native-inputs + `(("intltool" ,intltool) + ;; required during the generate-atlases phase + ("python-pillow" ,python-pillow) + + ;; required for tests + ("python-greenlet" ,python-greenlet) + ("python-polib" ,python-polib) + ("python-pytest" ,python-pytest) + ("python-pytest-mock" ,python-pytest-mock))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'configure + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "run_uh.py" + (("options = \\[\\]") + (string-append "options = ['" (assoc-ref outputs "out") + "/share/unknown-horizons']"))) + #t)) + (add-before 'build 'set-home + (lambda _ + (setenv "HOME" "/tmp") + #t)) + (add-before 'build 'generate-atlases + (lambda _ + (invoke "python3" "horizons/engine/generate_atlases.py" "2048"))) + ;; TODO: Run gui tests as well + (replace 'check + (lambda _ + (substitute* "horizons/constants.py" + (("IS_DEV_VERSION = False") + "IS_DEV_VERSION = True")) + (invoke "pytest" "tests") + (substitute* "horizons/constants.py" + (("IS_DEV_VERSION = True") + "IS_DEV_VERSION = False")) + #t))))) + (home-page "http://unknown-horizons.org") + (synopsis "2D realtime strategy simulation game") + (description "Unknown Horizons is a 2D realtime strategy simulation game +with an emphasis on economy and city building. Expand your small settlement +to a strong and wealthy colony, collect taxes and supply your inhabitants with +valuable goods. Increase your power with a well balanced economy and with +strategic trade and diplomacy.") + ;; FIXME: fix license + (license license:gpl2))) -- 2.22.0