From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2CLaNLgv+2DyjwAAgWs5BA (envelope-from ) for ; Fri, 23 Jul 2021 23:08:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4HBMMLgv+2BnOgAAB5/wlQ (envelope-from ) for ; Fri, 23 Jul 2021 21:08:08 +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 1C7F2FAD6 for ; Fri, 23 Jul 2021 23:08:08 +0200 (CEST) Received: from localhost ([::1]:38836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m72Ot-0004mf-9o for larch@yhetil.org; Fri, 23 Jul 2021 17:08:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m72Oo-0004jc-Fm for guix-patches@gnu.org; Fri, 23 Jul 2021 17:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m72Oo-00061v-6j for guix-patches@gnu.org; Fri, 23 Jul 2021 17:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m72Oo-0002JX-1a for guix-patches@gnu.org; Fri, 23 Jul 2021 17:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49713] [PATCH 2/3] gnu: Add libigl. References: <20210723210037.28150-1-i.gankevich@spbu.ru> In-Reply-To: <20210723210037.28150-1-i.gankevich@spbu.ru> Resent-From: Ivan Gankevich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Jul 2021 21:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49713 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49713@debbugs.gnu.org Cc: Ivan Gankevich Received: via spool by 49713-submit@debbugs.gnu.org id=B49713.16270744818892 (code B ref 49713); Fri, 23 Jul 2021 21:08:02 +0000 Received: (at 49713) by debbugs.gnu.org; 23 Jul 2021 21:08:01 +0000 Received: from localhost ([127.0.0.1]:44757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m72On-0002JI-5h for submit@debbugs.gnu.org; Fri, 23 Jul 2021 17:08:01 -0400 Received: from mail.spbu.ru ([195.70.197.23]:41319 helo=cgp2.pu.ru) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m72Ok-0002J4-D0 for 49713@debbugs.gnu.org; Fri, 23 Jul 2021 17:07:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=spbu.ru; s=20180812; bh=L3j88pCBRNgBiO7q1PICge1JZCl/QvXD3TA5U/Ih6n0=; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From; b=LrVCvvQSk+DKGszQILVaOH+fE7OHSAO+urL2SnyoX/Yp+4GfAIOW+2+nuE2Rtb/KIxETnEb3Y+ Gc4OFYeIHMdDRJPTtouv3swUMJ7Gtf7dBLPoim9qQO8BVQNHf+EJa9C09Muhl0aNXPMaURnxpTylU 1ln/CYmJbK4WrXAv+ntQyuP2quyV5cSFJduMtZQKQ8QluYzZBb6LttqY1meK5uwZMzBGHcmj+cLs/ gMZPh0oMP/IHE7XuglZKe1XigTDb0GMTsNaJ+jIBmF/tWJyBoE0WX0B1mZtkwFOkR8RrSAX5GIovf bfcTLlgt+WNBUW+x/ri8MC7iTbt5ojga/9yfw== Received: from [172.27.221.159] (account st018947@spbu.ru HELO localhost.localdomain) by spbu.ru (CommuniGate Pro SMTP 6.2.15) with ESMTPSA id 173785815; Sat, 24 Jul 2021 00:07:52 +0300 From: Ivan Gankevich Date: Sat, 24 Jul 2021 00:07:32 +0300 Message-Id: <20210723210731.9246-1-i.gankevich@spbu.ru> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1627074488; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PO8FaQGB32aPPI+Q3qJu8C2TQMvfOc+LpCG6+g8PmOU=; b=SIJ6ui3i0MEW/F4a0E2/iTW5c25ulXF0QgZTzgorn2P9ws3XvusHoMWF+KmLO9eEWb9zJY WRsjbReWjo/x4iBF5bKvd+IZUQnniD7xHU8WeJXyIHp0yRmlJtH18LJQWK4oOj5kJ+PR7z UJyTC3+yWciCWoq+7jbIqjl52nhpQ5E4cyb5poeXWP+xFgZQlyE0Drn4YcwkjUl8UqW2Mz F3nk9XQW5gFx2AeypzP+QQRS3lk1ZQXIxpR3jjPw5ZOm6yfo6p3PwZlxd5FSsYDZA5Lgdj kq6bmCsktMSA84dHIki6J18P9zFs9AgtL6bBvG1wQWBfS+YgDI4czMIwRyFxLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627074488; a=rsa-sha256; cv=none; b=bpm/LNUlsec+Kye7L5yLRl6AQImc21wIR0p6XnUhC8RW+ccHAkCcYqJE62D4OfiaOH7PN9 CoSrS7jzZO7KqXTFyuz8s0RFIZugkaf+Kvd5KlPkzjwR7Gl4aOcSLrv/gkgstns241hhBI VQwkbmi9SedQbyfFqDYG31b3O/U2KSiN4Z6Y5GWLowj68/uxA1p8+vvv45TkzlxDMEguzn XRp83SR6kDGY4ckBZu4beILqro8cY6kV/2nXDiEVZWW6lh6nUwUyIXGP2Rmb6tdCTYajns wwsvTCQ7nG6XzzaBgJqvzo2vopjAHwD/jM/TR0C1UCCeFas254D9SKRjpTsZsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spbu.ru header.s=20180812 header.b=LrVCvvQS; 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: 3.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spbu.ru header.s=20180812 header.b=LrVCvvQS; dmarc=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: 1C7F2FAD6 X-Spam-Score: 3.58 X-Migadu-Scanner: scn1.migadu.com X-TUID: KLA1WOPlcgnP * gnu/packages/engineering.scm (libigl): New variable. --- gnu/packages/engineering.scm | 62 ++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index fc932ddb28..eec12814ff 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2862,3 +2862,65 @@ for hooking Linux system calls in user space. This is achieved by hot-patching the machine code of the standard C library in the memory of a process.") (license license:bsd-2)))) + +(define-public libigl + (package + (name "libigl") + (version "2.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libigl/libigl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "004a22ifq2vibgkgvrlyihqimpsfizvq5l448204kwfg3lkycajj")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list "-DLIBIGL_USE_STATIC_LIBRARY=OFF" + "-DLIBIGL_BUILD_TESTS=OFF" ;; tests need to download test data + "-DLIBIGL_BUILD_TUTORIALS=OFF" + "-DLIBIGL_EXPORT_TARGETS=ON" + "-DLIBIGL_WITH_CGAL=ON" + "-DLIBIGL_WITH_COMISO=OFF" + "-DLIBIGL_WITH_CORK=OFF" + "-DLIBIGL_WITH_EMBREE=OFF" + "-DLIBIGL_WITH_MATLAB=OFF" + "-DLIBIGL_WITH_MOSEK=OFF" + "-DLIBIGL_WITH_OPENGL=OFF" + "-DLIBIGL_WITH_OPENGL_GLFW=OFF" + "-DLIBIGL_WITH_OPENGL_GLFW_IMGUI=OFF" + "-DLIBIGL_WITH_PNG=OFF" + "-DLIBIGL_WITH_TETGEN=OFF" + "-DLIBIGL_WITH_TRIANGLE=OFF" + "-DLIBIGL_WITH_PREDICATES=OFF" + "-DLIBIGL_WITH_XML=OFF") + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'configure 'do-not-download-dependencies + (lambda _ + (substitute* "cmake/libigl.cmake" + (("if\\(NOT TARGET Eigen3::Eigen\\)" all) + (string-append "find_package(Eigen3 CONFIG REQUIRED)\n" all)) + (("if\\(NOT TARGET CGAL::CGAL\\)" all) + (string-append "find_package(CGAL CONFIG COMPONENTS Core)\n" all))))) + (add-after 'install 'install-all-subdirs + (lambda _ + (copy-recursively + "../source/include" + (string-append (assoc-ref %outputs "out") "/include"))))))) + (inputs + `(("eigen" ,eigen) + ("cgal" ,cgal) + ("gmp" ,gmp) + ("mpfr" ,mpfr) + ("boost" ,boost))) + (home-page "https://libigl.github.io/") + (synopsis "Simple C++ geometry processing library") + (description "The library provides functionality for shape modelling, +visualization, matrix manipulation.") + (license (list license:gpl3 license:mpl2.0)))) -- 2.32.0