From patchwork Fri Sep 13 21:30:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 67945 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 26AE427BBEA; Fri, 13 Sep 2024 22:33:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E694427BBE2 for ; Fri, 13 Sep 2024 22:33:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spDuS-0001L5-0Z; Fri, 13 Sep 2024 17:32:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spDuQ-0001In-MH for guix-patches@gnu.org; Fri, 13 Sep 2024 17:32:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spDuP-0007RI-TU for guix-patches@gnu.org; Fri, 13 Sep 2024 17:32:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=Jt0Bt3PdTRVMTP44y2gXXo8Q+3NCqlTq9004bCvY6KM=; b=FmHTzEM0PLcuZnuyvRD4iSydee40iF62cz0JQLBhG6FL22yxTDvdIh1dMc5K9T0czT0PyI9vy7ETxbYMCoA7cNyG7fi1xPmrWnERptLmrA/yAA6BtgVWLkiWM2rRFTMPPcViSODR9vk4YHP6rKPC2/ZsgSqnTLXw4/Su/VXtSarUEvHdL2l2rH7mZJI+XCV1fXQCPEvfROWi51EvKj/zk1lv4ZYhOjqDObEmjzjHVwnEOesPDrilt/MBZqwK+r/HJnTlG/ekgJnTXjY/4Hcx/pZpqUph6kw2sbt1trxumHuV4J0OOv4yyx6pAlJHc5mYDITpIbxgyNo+rH+hL8nsIg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spDuY-0002Qb-5D; Fri, 13 Sep 2024 17:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73238] [PATCH] gnu: Add xevil. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: adam.faiz@disroot.org, liliana.prikler@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Fri, 13 Sep 2024 21:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73238 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73238@debbugs.gnu.org Cc: Adam Faiz , Liliana Marie Prikler , =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Adam Faiz , Liliana Marie Prikler , =?utf-8?b?5a6L5paH5q2m?= Received: via spool by submit@debbugs.gnu.org id=B.17262631509273 (code B ref -1); Fri, 13 Sep 2024 21:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2024 21:32:30 +0000 Received: from localhost ([127.0.0.1]:44363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spDu1-0002PV-QJ for submit@debbugs.gnu.org; Fri, 13 Sep 2024 17:32:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:55024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spDtz-0002PK-5m for submit@debbugs.gnu.org; Fri, 13 Sep 2024 17:32:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spDtp-0000hg-1a for guix-patches@gnu.org; Fri, 13 Sep 2024 17:32:17 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spDtm-0007Pq-Kp for guix-patches@gnu.org; Fri, 13 Sep 2024 17:32:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=Jt0Bt3PdTRVMT P44y2gXXo8Q+3NCqlTq9004bCvY6KM=; h=date:subject:to:from; d=tobias.gr; b=DBIaPOVXyvACe6YT4Tju7bEE3GvITfUU5/xoQDcMZBczoAs0Me/y9XxHOifXKSXyu5Qf l408ZhyypWmxbXWjWrImfAWWR1dnUS7D9r9lJ71VCcq522QL81cr7xKo69pq4mRSUnqFeH BRHb3hsOYfAIq478d9a4oUle5yXglWuZ1KgdiJ7o4MkCUVFFFZvzT/pGaNoxCSg9hp/qZM 1JG9iHeQayynR8l23XOzqA4Br3OViHry9tioNAjYjISRiSyR0Mrh9Ok++ZnfNRoq1Cbve2 ZEGucJ5xT71VJ/GxaC5aRgETgIdWLHLQ63tvR6IkjiBSekDVaXQLbwyz53FDteHA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id d7e6fae9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 13 Sep 2024 21:32:08 +0000 (UTC) Date: Fri, 13 Sep 2024 23:30:32 +0200 Message-ID: <9cfbda028dc4eac5d99a1b57e3088f09fef7603d.1726263032.git.me@tobias.gr> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Tobias Geerinckx-Rice X-ACL-Warn: , Tobias Geerinckx-Rice via Guix-patches X-Patchwork-Original-From: Tobias Geerinckx-Rice via Guix-patches via From: Tobias Geerinckx-Rice Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/games.scm (xevil): New public variable. Change-Id: I86885cc816685001a7d8d7dacccc396f39ddbd5f --- What an ugly thing for which to feel childhood nostalgia. But I do. gnu/packages/games.scm | 79 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) base-commit: aefa5f2a6760f462ff002db5dccd37ea92ae97f8 prerequisite-patch-id: 2f4066d1d249a7c775a86bda300ffe4747eca5ca prerequisite-patch-id: f20ff1a7a3fd63bc23eb305b23371ed46aede738 prerequisite-patch-id: 66eb3b0b8d5565169223d6dcaaef60e193ecaf17 prerequisite-patch-id: 9a5b632245d8ba1373272bb80f09c26fd19fbfae diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 26ddde50fe..d010c57fc5 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -11109,6 +11109,85 @@ (define-public xblackjack System\" (high-low system).") (license (license:x11-style "" "See file headers.")))) +(define-public xevil + ;; This game is old. Use a maintained fork that builds with modern toolchains + ;; on modern, 64-bit hardware. + (let ((commit "9ca85059d5195be0eb15e107de3bb9d1b49e5f99") + (revision "0")) + (package + (name "xevil") + (version (git-version "2.02" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lvella/xevil") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14hsmw9ll2asnp1s0zvniyp31kjw8ynm7vnycg74lpqf28h2rric")))) + (build-system gnu-build-system) + (arguments + (list + #:modules `(,@%default-gnu-imported-modules + (srfi srfi-26)) + #:make-flags + #~(list "SHELL=sh" + "DEBUG_OPT=-g -DNDEBUG") + #:tests? #f ;no test suite + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'rename-licence-file + (lambda _ (rename-file "gpl.txt" "COPYING"))) + (add-after 'unpack 'redefine + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "cmn/game.cpp" + (("(#define VERSION ).*" _ define) + (string-append define "\"" #$version "\"\n"))) + (substitute* "cmn/utils.cpp" + (("[^\"]*/(bin/uname)" _ command) + (search-input-file inputs command))) + (substitute* "x11/ui.cpp" + ;; Neither DEFAULT_BIG_FONT_NAME nor BACKUP_FONT_NAME are + ;; available from most Guix X11 servers, making the game + ;; unplayable by default. Substitute the closest match. + (("9x15") "6x13") + ;; ‘For fast machines’ need no longer default to False in C21. + (("(smoothScroll = )False" _ assign) + (string-append assign "True"))))) + (delete 'configure) ;no configure script + (replace 'install + (lambda _ + (with-directory-excursion "x11/REDHAT_LINUX" ;yeah + (for-each (cut install-file <> + (string-append #$output "/bin")) + (list "xevil" "serverping"))) + (let ((doc (string-append #$output "/share/doc/" + #$name "-" #$version))) + (mkdir-p doc) + (for-each (lambda (file) + (copy-recursively file + (string-append + doc "/" (basename file)))) + (list "instructions" "x11/app-defaults")))))))) + (inputs + (list coreutils-minimal ;for uname + libx11 libxpm)) + ;; The current home page has been ‘subtly’ vandalised with spam and is + ;; missing a lot of content from this older snapshot. + (home-page (string-append "https://web.archive.org/web/20060410005819/" + "http://www.xevil.com/")) + (synopsis + "Third-person, side-scrolling, fast-action, kill-everything game") + (description + "XEvil is a violent third-person, side-scrolling, fast-action deathmatch. +You run around a randomly generated two-dimensional map composed of walls, +floors, ladders, doors, and horizontal and vertical elevators. Your only object +is to explore this world to find weapons and items, killing everything in sight +before they kill you. You can fight against either computer-controlled enemies +or against other people.") + (license license:gpl2+)))) + (define-public azimuth (package (name "azimuth")