From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yFGQN1q2RWH2LgAAgWs5BA (envelope-from ) for ; Sat, 18 Sep 2021 11:50:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mC1cM1q2RWEsIgAAB5/wlQ (envelope-from ) for ; Sat, 18 Sep 2021 09:50:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CB1E8272F4 for ; Sat, 18 Sep 2021 11:50:16 +0200 (CEST) Received: from localhost ([::1]:53374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRWz9-0001bx-RH for larch@yhetil.org; Sat, 18 Sep 2021 05:50:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRWyw-0001bp-RI for guix-patches@gnu.org; Sat, 18 Sep 2021 05:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50237) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRWyw-000285-Da for guix-patches@gnu.org; Sat, 18 Sep 2021 05:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRWyw-0003fW-91 for guix-patches@gnu.org; Sat, 18 Sep 2021 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50653] [PATCH] gnu: Add sdlpop. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Sep 2021 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50653@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.163195857314055 (code B ref -1); Sat, 18 Sep 2021 09:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2021 09:49:33 +0000 Received: from localhost ([127.0.0.1]:33550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRWyK-0003eQ-Fm for submit@debbugs.gnu.org; Sat, 18 Sep 2021 05:49:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:56776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRWyG-0003eF-4C for submit@debbugs.gnu.org; Sat, 18 Sep 2021 05:49:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRWyF-0001Zy-Sh for guix-patches@gnu.org; Sat, 18 Sep 2021 05:49:19 -0400 Received: from mail-4323.protonmail.ch ([185.70.43.23]:59790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRWyD-0001W9-Qq for guix-patches@gnu.org; Sat, 18 Sep 2021 05:49:19 -0400 Date: Sat, 18 Sep 2021 09:49:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631958554; bh=RPkEbqF+egu2oqvOvS8yCb7hdC5A4wT5bYlZfZ/DMZ0=; h=Date:To:From:Reply-To:Subject:From; b=b14mSgG3LgXYGQ2pjB7FgKc0Pq185uvMozJ1I2KmbSz2uSKzi35Txi18PTq7TbPeB GZrgXdl5fb5XYsrq9uq+rzq3esDfjg+57Eqx7lSg4OcjERgma5nRSgkEWqnjPOc+UK dVmIOMyYrwxEINHvdMFPsHaS+dJlvBp54i/w9NG0= Message-ID: <-p2XzmyUeU34-LyC3z50Id77Y3mrwZAnC3s3bUigV4CSc1rE9Pz-FYX9HxF97dLz1oBPpUEx06AoVSLT5eJGyZRZOFmCSfXlSzKHc5U8iCc=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=phodina@protonmail.com; helo=mail-4323.protonmail.ch X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO=1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631958617; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RPkEbqF+egu2oqvOvS8yCb7hdC5A4wT5bYlZfZ/DMZ0=; b=SxP0sOiJCu9WCu3JhjRUZCmY9NwHkW0OZc5oTGdh4p7UqhVoqYDbJ92CV5hmb5e3nNfWsZ rYLOOrtwbKmPAoH9LkAeT88HuhGM6K+6n+YGhFBzJ41JwSIXamFsOkcxL9aHYWmpdCigYU bfZgS5W4v7hPq/i6HfzXFzU01nzY54znq38wHAwXhhj8AKs5pydE1AxcYrr1X6JjlBle5t IJAe33l5R0u4FcKkJNAasdyZJSAx7PRV4SA1NCSeVKEn/CwKSuHt8eK72Bnrfyw/SPSLZ5 +e9c9LqW7KEOVhurgUeG8Rygf05O1TrucNAb/Ku4SI0Z8oKZNFlVT3Dr2GASyA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631958617; a=rsa-sha256; cv=none; b=MDv6KwSfjLwAwDOgPb6Y5QZpYC2C5JwJn1PBJeD5CXHe/jZuv5CoZq0cGAld7oi/xLyb9b O24xMbOSbXEq36flCeP5b4MQe5ibJPoUrGxRwI+HSK7QoNQXLc8cbT2Cs5nLJQs+pXMfgd 50djBTMjw57oWMD+eVadudlrHCfyNJcqFUFyfhknuaS9lVPkK/43DjFIano4IOPRKBoB/a DNJ0X348c4eLl6Kc2w71sIU7XMMgkpv2lbIxpg0HTYA6IL5SI9BqXZ5TFE8lD0Eb9gDlUu HdA1vzt5DpTwqAVicQRH+I7dq0dEzRE/2rvOTTbEHWG53T6fsVNCdEGtz+PLQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=b14mSgG3; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=b14mSgG3; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: CB1E8272F4 X-Spam-Score: -1.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: GJLejwZAyMcj * gnu/packages/games.scm (sdlpop): New variable. [copyright]: Sort by date pkill9@runbox.com. diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index c39770c260..0eed238f32 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -45,6 +45,7 @@ ;;; Copyright =C2=A9 2019, 2020 Guillaume Le Vaillant ;;; Copyright =C2=A9 2019, 2020 Timotej Lazar ;;; Copyright =C2=A9 2019 Josh Holland +;;; Copyright =C2=A9 2019 Pkill -9 ;;; Copyright =C2=A9 2017, 2019 Hartmut Goebel ;;; Copyright =C2=A9 2020 Alberto Eleuterio Flores Guerrero ;;; Copyright =C2=A9 2020 Naga Malleswari @@ -63,7 +64,7 @@ ;;; Copyright =C2=A9 2021 Felix Gruber ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Noisytoot -;;; Copyright =C2=A9 2019 Pkill -9 +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -12480,6 +12481,62 @@ do so you need to explore the island, find food, b= uild a shelter and try to get attention, so you get found.") (license license:cc-by4.0)))) +(define-public sdlpop + (package + (name "sdlpop") + (version "1.22") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/NagyD/SDLPoP") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yy5r1r0hv0xggk8qd8bwk2zy7abpv89nikq4flqgi53fc5q9xl7")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'prepare-build + ;; Set correct environment for SDL. + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CPATH" + (string-append (assoc-ref inputs "sdl") + "/include/SDL2:" + (or (getenv "CPATH") ""))))) + (add-after 'unpack 'chdir + (lambda* _ + (chdir "src"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (opt (string-append out "/opt/sdlpop")) + (app (string-append out "/usr/share/applications")) + (template "src/SDLPoP.desktop.template")) + (chdir "..") + (install-file "prince" bin) + (substitute* template (("\\$ROOT") out)) + (install-file template app) + (rename-file (string-append app "/SDLPoP.desktop.template") + (string-append app "/SDLPoP.desktop")) + (install-file "SDLPoP.ini" opt) + (copy-recursively "data" (string-append bin "/data")) + (copy-recursively "doc" opt) + (copy-recursively "mods" opt))))))) + (native-inputs `(("pkg-config" ,pkg-config))) + (inputs `(("sdl" ,(sdl-union (list sdl2 + sdl2-image + sdl2-mixer))))) + (synopsis "Open-source port of Prince of Persia") + (description "Open-source port of Prince of Persia, based on the disas= sembly +of the DOS version, extended with new features.") + (home-page "https://github.com/NagyD/SDLPoP") + (license license:gpl3))) + (define-public fheroes2 (package (name "fheroes2") -- 2.32.0