Received: (at submit) by debbugs.gnu.org; 13 Sep 2024 21:32:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 13 17:32:30 2024 Received: from localhost ([127.0.0.1]:44363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1spDu1-0002PV-QJ for submit <at> 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 <me@HIDDEN>) id 1spDtz-0002PK-5m for submit <at> 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 <me@HIDDEN>) id 1spDtp-0000hg-1a for guix-patches@HIDDEN; 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 <me@HIDDEN>) id 1spDtm-0007Pq-Kp for guix-patches@HIDDEN; 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 <guix-patches@HIDDEN>; Fri, 13 Sep 2024 21:32:08 +0000 (UTC) From: Tobias Geerinckx-Rice <me@HIDDEN> To: guix-patches@HIDDEN Subject: [PATCH] gnu: Add xevil. Date: Fri, 13 Sep 2024 23:30:32 +0200 Message-ID: <9cfbda028dc4eac5d99a1b57e3088f09fef7603d.1726263032.git.me@HIDDEN> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Debbugs-Cc: Adam Faiz <adam.faiz@HIDDEN>, Liliana Marie Prikler <liliana.prikler@HIDDEN>, 宋文武 <iyzsong@HIDDEN> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@HIDDEN; 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-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.9 (-) * 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(+) 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") base-commit: aefa5f2a6760f462ff002db5dccd37ea92ae97f8 prerequisite-patch-id: 2f4066d1d249a7c775a86bda300ffe4747eca5ca prerequisite-patch-id: f20ff1a7a3fd63bc23eb305b23371ed46aede738 prerequisite-patch-id: 66eb3b0b8d5565169223d6dcaaef60e193ecaf17 prerequisite-patch-id: 9a5b632245d8ba1373272bb80f09c26fd19fbfae -- 2.46.0
Tobias Geerinckx-Rice <me@HIDDEN>
:adam.faiz@HIDDEN, liliana.prikler@HIDDEN, iyzsong@HIDDEN, guix-patches@HIDDEN
.
Full text available.adam.faiz@HIDDEN, liliana.prikler@HIDDEN, iyzsong@HIDDEN, guix-patches@HIDDEN
:bug#73238
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.