From patchwork Sat Apr 25 19:47:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ekaitz Zarraga X-Patchwork-Id: 21472 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 EE7BC27BBE4; Sat, 25 Apr 2020 20:48:18 +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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,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 7855C27BBE1 for ; Sat, 25 Apr 2020 20:48:18 +0100 (BST) Received: from localhost ([::1]:46448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSQmf-00027D-TG for patchwork@mira.cbaines.net; Sat, 25 Apr 2020 15:48:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35450) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSQma-00026x-Iy for guix-patches@gnu.org; Sat, 25 Apr 2020 15:48:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSQmQ-0004Xi-MG for guix-patches@gnu.org; Sat, 25 Apr 2020 15:48:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSQmQ-0004XF-9S for guix-patches@gnu.org; Sat, 25 Apr 2020 15:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSQmQ-0005NV-6E for guix-patches@gnu.org; Sat, 25 Apr 2020 15:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40492] [PATCH] gnu: Add meshlab Resent-From: Ekaitz Zarraga Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Apr 2020 19:48: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: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: "40492\\@debbugs.gnu.org" <40492@debbugs.gnu.org> Received: via spool by 40492-submit@debbugs.gnu.org id=B40492.158784403720622 (code B ref 40492); Sat, 25 Apr 2020 19:48:02 +0000 Received: (at 40492) by debbugs.gnu.org; 25 Apr 2020 19:47:17 +0000 Received: from localhost ([127.0.0.1]:60393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSQlh-0005MY-8O for submit@debbugs.gnu.org; Sat, 25 Apr 2020 15:47:17 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:11455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSQlf-0005MI-3N for 40492@debbugs.gnu.org; Sat, 25 Apr 2020 15:47:15 -0400 Date: Sat, 25 Apr 2020 19:47:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1587844028; bh=P40Oyfkb+sRTmU9nQ+SYD+uPtcl0vl52Ae7O9ZAx6wo=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=hsZ6lQ7Ap2C23DVy8vlx8qC0gVW/1aLX18yIE9XPHIzdQMk1z072Edb//JuXu9w3S fh55lazSVKsFXzL6hOowhCoIAQ3PzfE3mEc4Wir/p/kOGLTYGyQUCsulk3uuqtR2U6 bihVq2gzG/+qMX4CrHj3MSgvRIilX2808fXdckNs= From: Ekaitz Zarraga Message-ID: In-Reply-To: <87wo67ti07.fsf@gnu.org> References: <_UXapokzwPRYl41j0bjkPGSDUNXahWNWsEn72py7ch7Rd6DBsxW9B8rw8wTbmzj1O2HfWXz7XLbEdWCYQsFCa5DgMlGn0CKVPr779J2PFuo=@elenq.tech> <87a733v3hh.fsf@gnu.org> <87wo67ti07.fsf@gnu.org> 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: , Reply-To: Ekaitz Zarraga Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Saluton! > Egun on, :-) > > [...] > Not really, I think CMake initially sets the RUNPATH to the build tree, > as shown above, that’s OK. I think it changes it upon “make install”. > > > If I need to change that, what do I have to do? > > One way to fix it would be to arrange to pass ‘-Wl,-rpath,'$ORIGIN'’ on > the link command line of the plugins. > > Another solution would be to add a post-install phase to move > libmeshlab-common.so* to $output/lib, which seems more conventional, > though perhaps upstream had good reasons not to do that. Went for the second option because I didn't know how to make the first and looks like it's working. Also I think I fixed everything you pointed in the first comment. I attach the updated patch. Thanks for your help Ludo, Ekaitz 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. --- gnu/packages/engineering.scm | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 5405db762c..dbe7faf78b 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2491,3 +2491,52 @@ without any changes. And programmers that are familiar with the magellan API can continue using it with a free library without the restrictions of the official SDK.") (license license:bsd-3))) + +(define-public meshlab + (let ((version "2020.04")) + (package + (name "meshlab") + (version version) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cnr-isti-vclab/meshlab") + (commit (string-append "Meshlab-" version)) + (recursive? #t))) + (sha256 + (base32 "1vx9jcsnnxvzi90pcxpp7p72cqg3cm6jiivdmrxkzhr2fiz3pfvr")))) + (build-system cmake-build-system) + (native-inputs + `(("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)))))) + (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+)))) -- 2.26.1