From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yGWDCFofRmGI9QAAgWs5BA (envelope-from ) for ; Sat, 18 Sep 2021 19:18:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IOs2BFofRmGgdgAA1q6Kng (envelope-from ) for ; Sat, 18 Sep 2021 17:18: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 B4FFEA4DF for ; Sat, 18 Sep 2021 19:18:16 +0200 (CEST) Received: from localhost ([::1]:56082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRdyh-0001iZ-Qx for larch@yhetil.org; Sat, 18 Sep 2021 13:18:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRdyX-0001ey-UE for guix-patches@gnu.org; Sat, 18 Sep 2021 13:18:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53466) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRdyU-0000L2-Mz for guix-patches@gnu.org; Sat, 18 Sep 2021 13:18:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRdyU-0008Jy-Iq for guix-patches@gnu.org; Sat, 18 Sep 2021 13:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49713] [PATCH 2/3] gnu: Add libigl. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Sep 2021 17:18: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: Ivan Gankevich , 49713@debbugs.gnu.org Received: via spool by 49713-submit@debbugs.gnu.org id=B49713.163198545931955 (code B ref 49713); Sat, 18 Sep 2021 17:18:02 +0000 Received: (at 49713) by debbugs.gnu.org; 18 Sep 2021 17:17:39 +0000 Received: from localhost ([127.0.0.1]:36779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRdy6-0008JL-MN for submit@debbugs.gnu.org; Sat, 18 Sep 2021 13:17:38 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRdy4-0008J7-3o for 49713@debbugs.gnu.org; Sat, 18 Sep 2021 13:17:36 -0400 Received: by mail-wr1-f65.google.com with SMTP id w29so20589961wra.8 for <49713@debbugs.gnu.org>; Sat, 18 Sep 2021 10:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=ilLD9OYQXvBXO5UETE4sl5EDu9rRsS8trE3z42BquhE=; b=LbqoNX6obs6/AEjGrrOkOu0rEHgoP21cNEwCBjLxq7Zy4jt/iYhiu0oP35QJ+VvTHL LpSDrPVoTPaSPLxfFyuqbCfHYNtXrUVwEbU9+wwcAk7bElpuW4kmEUV0sdNmymA+1mx1 tpoirtDicAzHbEQ1q6xyYRhS4Ck8hBWzizFbXi6Nbc2TDFBjm4k/2FasO29n145yF8q8 ckMqrng7xToQRdM7XCi8WcuHn4R2Ix3wezj1NgFdnJwHrIGtGzQv5t/A5bMyJFOvnMzp rIyQkY3otvg7IgjtMNGVV8FVgoGn49zU5y6cWT8mr2LiyVLmMHqO7/CZ3RtHD9BvPybQ BV+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ilLD9OYQXvBXO5UETE4sl5EDu9rRsS8trE3z42BquhE=; b=a//dIyoZv95he5jmLr4e4fJFSqMV/9lxz9nfviGExNQFW6NZexPTvrvc5Kv8m2fV6Y mJd4o6FUkB92/2wgkwIy8wcjqbMMLVqj8ssp+wYAihKr53b9JaYRF4f8visuSW9l0yUF lX8SLOGKc101j2Wir241V7/Q8n9k8fyd1Yxldv/bbcmS+VQPZlftFb0N23dFlXJZXYTE 24zQ6ro//YGXKZ86zW5zu3CCdhDKRU2KaKeJRItcyB8lsYa/VILDmpnHA7DPQaaClXMF YX3UNwmmj3BI/kMymT/84ZegZIcokvieVJgkyPGSCcQgghS/jdMTCUbf1fRWwcg1rmgI 2Qcw== X-Gm-Message-State: AOAM532yZnXqQOb06ASsUxITpCIEGn/mbGPBOd8BoYrt78U9ydSQ9xc1 Qgx+LGNuFAtE0/r8m5bEX64E3KsEhFM= X-Google-Smtp-Source: ABdhPJzuxdn7OmYG4bZNukKYav8GS7Uzvt4JMJaBzqeTKRokL1I18X4A19ReD8G8+RaxOGVJFbOjJg== X-Received: by 2002:a5d:5258:: with SMTP id k24mr19032516wrc.390.1631985450450; Sat, 18 Sep 2021 10:17:30 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id k17sm15567009wmj.0.2021.09.18.10.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Sep 2021 10:17:30 -0700 (PDT) Message-ID: <60123c258c4a361fec28fb13fed0cde7efa09fa0.camel@gmail.com> From: Liliana Marie Prikler Date: Sat, 18 Sep 2021 19:17:29 +0200 In-Reply-To: <20210723210731.9246-1-i.gankevich@spbu.ru> References: <20210723210731.9246-1-i.gankevich@spbu.ru> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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=1631985496; 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: 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=ilLD9OYQXvBXO5UETE4sl5EDu9rRsS8trE3z42BquhE=; b=iFouSlCTlg6mBkt8k97zAEP2kUxSLBC1froLho9Z0XAcb4/4Pj4r9A9jMmVUcAaeZniHGL XRZn/PAMLaIBTVbmDTWmWPHxieMPpj3Z7xKpLHeefae3oVXE1hO9f803GX0Q6VzhvE2aG3 BYIy6a1SVXvgmT37Sf+qXmwR1okAh02kLFZGkSbwJSH8P5O8FAU27Kxv5ibNTNEGZu8jtp qWWHEh6DTJNb97GkmEY/Ajo65iOLwfGCI1UH1HR1UYSlNtvvORjj/XW0/dQIXugnysh9ve tLVRcenRlnXR8SAULsJpdCSF+tjL4VYut28qMAgTteFMdSdl6xUmKA/JQ+AZAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631985496; a=rsa-sha256; cv=none; b=pKydWaI4cJzVAVxxiZtxKMhogS5RI9QD2Dpekfd7DgbFl9OjEZBoPo4xL9u1YOG26BM2KS oyiv7Zk1FSe45unjj5LCajMwzk3yQFO+K5Mps7lTzZ0IeW9NAaw69w1mpJQvwztGoMcG8u XlUhH3Owj4CjYY0E3dVpJeUP6cAgjIkguE5rlLB3jrXFQ3Q+hsuXCkhXPHKQseEbKPa0sA i2Zrbx4yubG2PHMOZAmylYs88sVb5/G1MK4FCjhFZAS5eqjLNW4OUNp2NHj+JF4CdgtA2+ wqP6jMyQDolAs85+ftnmnEeMCVIp0sX/di4+fxzIPuDQ/xJMz9auFOkLD1N0QA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LbqoNX6o; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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-Spam-Score: 0.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LbqoNX6o; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: B4FFEA4DF X-Spam-Score: 0.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: OhjU5j/N+Y+t Hi, Am Samstag, den 24.07.2021, 00:07 +0300 schrieb Ivan Gankevich: > * 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 Can we provide test data as input? > + "-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") In Guix we prefer to build packages as feature-complete as possible. Obviously MATLAB won't work unless they also accept octave, but you might want to at least enable some of the low-hanging fruits such as XML or OpenGL. If it's about having a minimal package, simply provide a -minimal variant as well. > + #:tests? #f Don't leave #:tests? #f uncommented. > + #: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.") s/The/This/ ? > + (license (list license:gpl3 license:mpl2.0)))) Regards