From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oIgcM/FUYGAwzgAAgWs5BA (envelope-from ) for ; Sun, 28 Mar 2021 12:05:37 +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 eHvpLPFUYGBjLAAAB5/wlQ (envelope-from ) for ; Sun, 28 Mar 2021 10:05:37 +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 5D1E7159C8 for ; Sun, 28 Mar 2021 12:05:37 +0200 (CEST) Received: from localhost ([::1]:59774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQSIa-0002Wc-Jt for larch@yhetil.org; Sun, 28 Mar 2021 06:05:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQSI2-0002WU-5B for guix-patches@gnu.org; Sun, 28 Mar 2021 06:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQSI1-0002HQ-U2 for guix-patches@gnu.org; Sun, 28 Mar 2021 06:05:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQSI1-0003qR-OO for guix-patches@gnu.org; Sun, 28 Mar 2021 06:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47447] [PATCH] gnu: Add entt. Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Mar 2021 10:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47447 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47447@debbugs.gnu.org Cc: Alexandru-Sergiu Marton X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161692585314720 (code B ref -1); Sun, 28 Mar 2021 10:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Mar 2021 10:04:13 +0000 Received: from localhost ([127.0.0.1]:45449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQSHD-0003pK-N7 for submit@debbugs.gnu.org; Sun, 28 Mar 2021 06:04:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:60212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQSH8-0003p9-JQ for submit@debbugs.gnu.org; Sun, 28 Mar 2021 06:04:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQSH6-00021V-Sy for guix-patches@gnu.org; Sun, 28 Mar 2021 06:04:06 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQSH1-0001Pl-48 for guix-patches@gnu.org; Sun, 28 Mar 2021 06:04:04 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id EC54F2400FB for ; Sun, 28 Mar 2021 12:03:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1616925834; bh=wo5eTYvSWs69z+x2L356wh4NHlnh1nZ+MUtM8hAtMI8=; h=From:To:Cc:Subject:Date:From; b=iiKLNjUJhyBx7v/lse6BWaQLiyGMr7WcUbMvCbgs8hoir2laLSg4D+r/eIk9yxXwI wMOAkmn4zMW5MSWRQ8TTzfQAR+W3k1eJ9aa+G3Rvu4VBWU2lFDwppQ/37EEXCkTRU+ c3hh6ATaBPZs2crVfsa/fzkHYVM86SF8YN89ZfKs2psYy1zP8NKL+cKF3uEfyBlU10 m1A0WW9nUNNPzImqbDf5P1b1KO8AwwHhpdUdLKGxqFMaHWskUrsDPVwdZD6x1I6qnf em//wn03/6bJfJBbtYX+glUYryeVHa5WMC1E1BsQXdNjw/soj0adKyoKj5xFHojG07 4Z9uoacOLG/cw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4F7WWY1lGjz6tmQ; Sun, 28 Mar 2021 12:03:52 +0200 (CEST) From: Alexandru-Sergiu Marton Date: Sun, 28 Mar 2021 13:03:22 +0300 Message-Id: <20210328100322.31991-1-brown121407@posteo.ro> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=brown121407@posteo.ro; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616925937; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=2ZYNkC7iJpMqKgQusyEVwzZ8mI0jNaGoHWFmS4JAGtM=; b=anb9G0fdCRJuU2+hEtdStsWuNyIF+sqDMDYfw+OlNGHUo35O5U5socnsIQtFqwCL1QzLUk O9hyBD9udffpvC/7SnOrgdv+jYoBVFRNcJA6ncEdzl44MUSSWdXVq0OCGICJJiFPk8waSM TLwOHiYogM5YcwMINY7+j4UzLYRM6J6dhF9J3EoLaGcYvMHJz75wLfuNsYVSoNBB7WgsX/ PTbFSXkxf4Dp4rulAacy4+p1lHITxrxzgczYBEaOH5osnMoWEiDodfMskzuWc5wSGEaqds XAj86H/8iVwBIzSFzWaSoWIbSmQcadjdnTbyQ+z3n8RcpmIQJWqMcfCJ4DyzhQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616925937; a=rsa-sha256; cv=none; b=jHcNeumOwLi/bM1EKR2xMm2fW2/M/JoA+Ri6VgpLdJRW9OUfqVZGF2KL95DF5e+dgDLi1+ WBRbO1K08p6kRlKiW+1GIBQ/gDROgrnU2onU/O0rCVb4ojAnwKB0MT/w/OB2VnktwLiaAe a+uPiOR0UMDrWhkbj2PfOtoVka6fX6bwL59Xcy0EcyZllDfVltpQ+7q4LO+dwpq1F9depv xu5KW583Qn6wuEgNYA34Bv89NkBV/35fJ+1F4j8ndxKqZHXm6hBpy2lNyIW88FniyYi+B2 mZ/5j42afFucImJo1A9rGWa+qg/MivCEBoGnKIc9e9SWSXEPd+QBfgUlIZUoZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.ro header.s=2017 header.b=iiKLNjUJ; 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: -0.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.ro header.s=2017 header.b=iiKLNjUJ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.ro (policy=none); 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: 5D1E7159C8 X-Spam-Score: -0.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: InSQj/Us3ebX * gnu/packages/cpp.scm (entt): New variable. (entt-fixed-tests): New variable. --- gnu/packages/cpp.scm | 51 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 2a00d3838a..449b4c1c06 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -18,7 +18,7 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2020 Milkey Mouse ;;; Copyright © 2021 Raghav Gururajan - +;;; Copyright © 2021 Alexandru-Sergiu Marton ;;; ;;; This file is part of GNU Guix. ;;; @@ -57,6 +57,7 @@ #:use-module (gnu packages curl) #:use-module (gnu packages documentation) #:use-module (gnu packages gcc) + #:use-module (gnu packages graphviz) #:use-module (gnu packages libevent) #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) @@ -1211,3 +1212,51 @@ of reading and writing XML.") ;; incompatible with the GPL v2. Refer to the file named FLOSSE for the ;; details. (license license:gpl2+))) + +;; TODO: Make public and remove the fix below when the next release comes and +;; fixes the failing tests. +(define entt + (package + (name "entt") + (version "3.6.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/skypjack/entt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "17w0gx6xah8j2d1kc6ly7a8jvkp4jspmn505w724hynlvlx1192x")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags (list "-DENTT_BUILD_TESTING=ON" + "-DENTT_FIND_GTEST_PACKAGE=ON" + "-DENTT_BUILD_DOCS=ON"))) + (native-inputs + `(("googletest" ,googletest) + ("doxygen" ,doxygen) ; These two packages are needed for + ("graphviz" ,graphviz))) ; generating the documentation. + (synopsis "Fast and reliable entity component system (ECS)") + (description "EnTT is a header-only, tiny and easy to use library for game +programming and much more written in modern C++.") + (home-page "https://github.com/skypjack/entt") + (license (list license:expat ; for the code + license:cc-by4.0)))) ; for the docs + +(define-public entt-fixed-tests + ;; This commit fixes two tests that are failing on the 3.6.0 version. + (let ((commit "14915368c7d4fa87e944cb55ffae1bb88cc6ef4c") + (revision "1")) + (package + (inherit entt) + (name "entt") + (version (git-version "v3.6.0" revision commit)) + (source (origin + (inherit (package-source entt)) + (uri (git-reference + (url "https://github.com/skypjack/entt") + (commit commit))) + (sha256 + (base32 + "1amlr4amj94xnmbdz94292vfkxbl92azsr5s41vcqqjmarwkkhfh"))))))) -- 2.31.0