From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mBvYCvysPGNghgEAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 00:00:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gLPpCvysPGPhdgEA9RJhRA (envelope-from ) for ; Wed, 05 Oct 2022 00:00:28 +0200 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 B3B6641970 for ; Wed, 5 Oct 2022 00:00:27 +0200 (CEST) Received: from localhost ([::1]:39540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofpxi-0002TO-PV for larch@yhetil.org; Tue, 04 Oct 2022 18:00:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofpvQ-0000Iy-57 for guix-patches@gnu.org; Tue, 04 Oct 2022 17:58:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56295) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofpvO-00055j-Mt for guix-patches@gnu.org; Tue, 04 Oct 2022 17:58:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofpvO-000153-5K for guix-patches@gnu.org; Tue, 04 Oct 2022 17:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58295] [PATCH] Add dds-bridge Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 Oct 2022 21:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58295 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58295@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16649206294090 (code B ref -1); Tue, 04 Oct 2022 21:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2022 21:57:09 +0000 Received: from localhost ([127.0.0.1]:55373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofpuW-00013t-OJ for submit@debbugs.gnu.org; Tue, 04 Oct 2022 17:57:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:33470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofpuS-00013j-QO for submit@debbugs.gnu.org; Tue, 04 Oct 2022 17:57:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofpuM-000881-99 for guix-patches@gnu.org; Tue, 04 Oct 2022 17:57:04 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofpuI-00050K-Qg for guix-patches@gnu.org; Tue, 04 Oct 2022 17:56:57 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 7A122E000A for ; Tue, 4 Oct 2022 21:56:50 +0000 (UTC) From: Nicolas Goaziou Date: Tue, 04 Oct 2022 23:56:49 +0200 Message-ID: <878rlvmevy.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=217.70.183.196; envelope-from=mail@nicolasgoaziou.fr; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664920827; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=hBIQoWfxW1GgAoDzE3eL3YcKhXfRpUxRB3McxS3jFQ0=; b=HhCRSJKTHqwXzQYmLG89sSBGRiBiYvwYuS7yOksfxIaK+DYqxLrfVqBGn324gAeepYzFat 1H3hSSLGOdeMXrFHQEKVFdx9c/ApwkxPPGgtCn3y4ejmV8uBrhc054kvjKbHvmLP+UD0vg NtwgjZCfXSFavgWxHnSCb9tYRWTGpZZMv0TDdk2DiMvXXA0BUld14Ji5O8PNwNvvncgZ+c qkU2Z58OU6Q8oPmjZ5br8V866F6WZy/CNyvycxGSlpq2LXFUFkoTrDgogGvkdcKx6jb8fB DdxblzdZnIu7vlwacDMwLFL62EIYJNQ52Yl0+x+5LKXjMGHN/knw4CRUYN+9ZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664920827; a=rsa-sha256; cv=none; b=twwRGsmTLr1+XxwP4BTNqiHrsEfubETKJkLcKkdHdYEEMRFVjE/0J2CXNgTJI4LzB26PnO kJc3cYsuT9Ohaqgkpa4WtS7mggpHt09bXnCekF4pcATJli/jFML7xFfJPBQ96twKDJ0fiJ UJhtTZJZa+cxKkFXDsdDNblZYa6dR6R1M+Lt+pF0FjPCHzCeZbE4o707JPgMWz2OLfro/4 x5PWVuYjw9KOVetj0sKWb99z0UIaAkUVQXr3+w+HbzfacaLtaHT6fmKKOtMo3EG+Y1oZWd f1818OP/NYlKW+R2IGJdxBovM9JqLdwV2+XX8aBVJy5sSNOaINAxuvsTEC9dww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.26 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B3B6641970 X-Spam-Score: -2.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: asFWjTTie685 --=-=-= Content-Type: text/plain Hello, The following patch adds the DDS library for bridge card game development. Note: it builds without libomp (but not without boost). I'm not sure it is really necessary, even though OpenMP is mentioned in the code base. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-dds-bridge.patch Content-Transfer-Encoding: quoted-printable >From af7d1beeebac44c18cac7a37c539043de244215b Mon Sep 17 00:00:00 2001 Message-Id: From: Nicolas Goaziou Date: Tue, 4 Oct 2022 23:51:00 +0200 Subject: [PATCH] gnu: Add dds-bridge. * gnu/packages/game-development.scm (dds-bridge): New variable. --- gnu/packages/game-development.scm | 70 ++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-developm= ent.scm index 889b435cfb..bda72fe72e 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -17,7 +17,7 @@ ;;; Copyright =C2=A9 2019 Pierre Neidhardt ;;; Copyright =C2=A9 2019, 2020, 2021 Liliana Marie Prikler ;;; Copyright =C2=A9 2019 Jethro Cao -;;; Copyright =C2=A9 2020, 2021 Nicolas Goaziou +;;; Copyright =C2=A9 2020-2022 Nicolas Goaziou ;;; Copyright =C2=A9 2020 Timotej Lazar ;;; Copyright =C2=A9 2020 Giacomo Leidi ;;; Copyright =C2=A9 2021 Alexandru-Sergiu Marton @@ -74,6 +74,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages freedesktop) #:use-module (gnu packages fribidi) #:use-module (gnu packages dbm) + #:use-module (gnu packages gawk) #:use-module (gnu packages gettext) #:use-module (gnu packages gl) #:use-module (gnu packages glib) @@ -85,6 +86,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages guile) #:use-module (gnu packages image) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages lua) #:use-module (gnu packages m4) #:use-module (gnu packages mp3) @@ -181,6 +183,72 @@ (define-public bullet is used in some video games and movies.") (license license:zlib))) =20 +(define-public dds-bridge + (package + (name "dds-bridge") + (version "2.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dds-bridge/dds") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1iv09qic43nvla02lm8zgnkqpjgnc95p8zh3wyifmnmlh1rz02yj")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "src"))) + (replace 'configure + ;; Configuration is done by copying the appropriate + ;; make file in the working directory. There is no + ;; configure script. + (lambda _ + (copy-file "Makefiles/Makefile_linux_shared" + "Makefile"))) + (replace 'check + ;; There is no "check" traget. We must compile + ;; a "dtest" program and apply it on a data set. + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (install-file "libdds.so" "../test") + (with-directory-excursion "../test" + (copy-file "Makefiles/Makefile_linux" + "Makefile") + (substitute* "Makefile" + (("-Werror") "")) + (invoke "make") + (invoke "./dtest") + (invoke "./dtest" "-f" "../hands/list100.txt"))))) + (replace 'install + ;; "install" target merely moves ".so" file around + ;; the source directory. We install it in the store, + ;; along with all shipped documentation (which cannot + ;; be built from source unfortunately). + (lambda _ + (install-file "libdds.so" + (string-append #$output "/lib")) + (let ((doc (string-append #$output + "/share/doc/" + #$name "-" #$version))) + (install-file "../LICENSE" doc) + (copy-recursively "../doc" doc))))))) + (native-inputs + (list gawk procps)) + (inputs + (list boost libomp)) + (home-page "http://privat.bahnhof.se/wb758135/") + (synopsis "Double dummy solver for the bridge card game") + (description "DDS is a double-dummy solver of bridge hands. It suppor= ts +single-threading and multi-threading for improved performance. DDS +offers a wide range of functions, including par-score calculations.") + (license license:asl2.0))) + (define-public deutex (package (name "deutex") --=20 2.37.3 --=-=-=--