From patchwork Sun Apr 26 20:49:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 21672 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6D0FA27BBE4; Sun, 26 Apr 2020 21:50:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id B8CE527BBE1 for ; Sun, 26 Apr 2020 21:50:19 +0100 (BST) Received: from localhost ([::1]:45518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSoEF-0005ut-9X for patchwork@mira.cbaines.net; Sun, 26 Apr 2020 16:50:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57582) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSoDz-0005nR-Gk for guix-patches@gnu.org; Sun, 26 Apr 2020 16:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSoDy-0003Nk-KN for guix-patches@gnu.org; Sun, 26 Apr 2020 16:50:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSoDy-0003LU-73 for guix-patches@gnu.org; Sun, 26 Apr 2020 16:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSoDy-00089I-30 for guix-patches@gnu.org; Sun, 26 Apr 2020 16:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40492] [PATCH] gnu: Add meshlab Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Apr 2020 20:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ekaitz Zarraga Cc: "40492@debbugs.gnu.org" <40492@debbugs.gnu.org> Received: via spool by 40492-submit@debbugs.gnu.org id=B40492.158793418631297 (code B ref 40492); Sun, 26 Apr 2020 20:50:02 +0000 Received: (at 40492) by debbugs.gnu.org; 26 Apr 2020 20:49:46 +0000 Received: from localhost ([127.0.0.1]:35072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSoDe-00088f-LC for submit@debbugs.gnu.org; Sun, 26 Apr 2020 16:49:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSoDY-00088N-Tp for 40492@debbugs.gnu.org; Sun, 26 Apr 2020 16:49:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51715) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSoDS-0001wj-TG; Sun, 26 Apr 2020 16:49:30 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=51722 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSoDR-00087N-J5; Sun, 26 Apr 2020 16:49:30 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= References: <_UXapokzwPRYl41j0bjkPGSDUNXahWNWsEn72py7ch7Rd6DBsxW9B8rw8wTbmzj1O2HfWXz7XLbEdWCYQsFCa5DgMlGn0CKVPr779J2PFuo=@elenq.tech> <87a733v3hh.fsf@gnu.org> <87wo67ti07.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?utf-8?q?Flor=C3=A9al?= an 228 de la =?utf-8?q?R?= =?utf-8?q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 26 Apr 2020 22:49:27 +0200 In-Reply-To: (Ekaitz Zarraga's message of "Sat, 25 Apr 2020 19:47:03 +0000") Message-ID: <87blneynu0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Saluton! Ekaitz Zarraga skribis: > From 814e44cb90b1427a9af5d6a66392c5a39910e8fd Mon Sep 17 00:00:00 2001 > From: Ekaitz Zarraga > Date: Tue, 7 Apr 2020 18:56:06 +0200 > Subject: [PATCH] gnu: Add meshlab. > > * gnu/packages/engineering.scm (meshlab): New variable. Great! I added a copyright line for you, fixed up indentation (see the bit in the manual for how to do that automatically), and added a comment—patch attached. It built for me, but then I realized I had missed something: the external/ sub-directory contains lots of bundled copies of external tools, and indeed, the ‘configure’ phase shows: --8<---------------cut here---------------start------------->8--- -- Could NOT find Lib3ds (missing: LIB3DS_INCLUDE_DIR LIB3DS_LIBRARY) -- Could NOT find GMP (missing: GMP_INCLUDE_DIR GMP_LIBRARY) -- Could NOT find muparser (missing: MUPARSER_INCLUDE_DIR MUPARSER_LIBRARY) -- Could NOT find OpenCTM (missing: OPENCTM_INCLUDE_DIR OPENCTM_LIBRARY) -- Could NOT find Qhull (missing: QHULL_qhull_LIBRARY QHULL_qhull_INCLUDE_DIR qhull) -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- - jhead - using bundled source -- - glew - using bundled source -- - Eigen - using bundled source -- - newuoa - using bundled source -- - levmar - using bundled source -- - lib3ds - using bundled source -- - muparser - using bundled source -- - OpenCTM - using bundled source -- - structure-synth - using bundled source -- - qhull - using bundled source --8<---------------cut here---------------end--------------->8--- Some of these are already packaged, so it should be a matter of adding them to ‘inputs’. For the remaining ones, it would be extra packaging work to do. The goal is to address all of these, but if we can address the majority of these, perhaps we can commit a first version of the package with a FIXME stating what remains to be done, if you prefer. Thanks, and apologies for overlooking it before! Ludo’. diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 2fc2ecdd88..ee90e3b429 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2019 John Soo ;;; Copyright © 2020 Brice Waegeneire ;;; Copyright © 2020 Vincent Legoll +;;; Copyright © 2020 Ekaitz Zarraga ;;; ;;; This file is part of GNU Guix. ;;; @@ -2520,43 +2521,43 @@ official SDK.") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/cnr-isti-vclab/meshlab") - (commit (string-append "Meshlab-" version)) - (recursive? #t))) + (url "https://github.com/cnr-isti-vclab/meshlab") + (commit (string-append "Meshlab-" version)) + (recursive? #t))) + (file-name (git-file-name name version)) (sha256 - (base32 "1vx9jcsnnxvzi90pcxpp7p72cqg3cm6jiivdmrxkzhr2fiz3pfvr")))) + (base32 "1vx9jcsnnxvzi90pcxpp7p72cqg3cm6jiivdmrxkzhr2fiz3pfvr")))) (build-system cmake-build-system) (native-inputs - `(("qtbase" ,qtbase) - ("qtscript" ,qtscript) - ("qtxmlpatterns" ,qtxmlpatterns) - ("mesa", mesa) - ("glu", glu))) + `(("qtbase" ,qtbase) + ("qtscript" ,qtscript) + ("qtxmlpatterns" ,qtxmlpatterns) + ("mesa", mesa) + ("glu", glu))) (arguments - `(#:tests? #f ; Has no tests - #:phases - (modify-phases - %standard-phases - (add-after - 'unpack 'go-to-source-dir - (lambda _ (chdir "src") #t)) - (add-after - 'install 'move-files - (lambda* (#:key outputs #:allow-other-keys) - (let ((lib (string-append (assoc-ref outputs "out") - "/lib"))) - (rename-file - (string-append lib "/meshlab/libmeshlab-common.so") - (string-append lib "/libmeshlab-common.so")) - #t)))))) + `(#:tests? #f ;has no tests + #:phases + (modify-phases + %standard-phases + (add-after 'unpack 'go-to-source-dir + (lambda _ (chdir "src") #t)) + (add-after 'install 'move-files + (lambda* (#:key outputs #:allow-other-keys) + ;; The RUNPATH on plugins is set to OUT/lib. Move + ;; libmeshlab-common.so there so it can be found. + (let ((lib (string-append (assoc-ref outputs "out") + "/lib"))) + (rename-file + (string-append lib "/meshlab/libmeshlab-common.so") + (string-append lib "/libmeshlab-common.so")) + #t)))))) (synopsis "3D triangular mesh processing and editing software") - (home-page "http://www.meshlab.net/") - (description "MeshLab is a system for the processing and -editing of unstructured large 3D triangular meshes. It is aimed to help the -processing of the typical not-so-small unstructured models arising in 3D -scanning, providing a set of tools for editing, cleaning, healing, inspecting, -rendering and converting this kind of meshes. These tools include MeshLab -proper, a versatile program with a graphical user interface, and meshlabserver, -a program that can perform mesh processing tasks in batch mode, without a -GUI.") - (license license:gpl3+)))) + (home-page "http://www.meshlab.net/") + (description "MeshLab is a system for the processing and editing of +unstructured large 3D triangular meshes. It is aimed to help the processing +of the typical not-so-small unstructured models arising in 3D scanning, +providing a set of tools for editing, cleaning, healing, inspecting, rendering +and converting this kind of meshes. These tools include MeshLab proper, a +versatile program with a graphical user interface, and meshlabserver, a +program that can perform mesh processing tasks in batch mode, without a GUI.") + (license license:gpl3+))))