From patchwork Tue Nov 1 20:22:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 44240 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 A5DFB27BBEB; Tue, 1 Nov 2022 20:23:18 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 78F9E27BBE9 for ; Tue, 1 Nov 2022 20:23:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opxmp-0000jC-Nw; Tue, 01 Nov 2022 16:23:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opxmo-0000ic-7L for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opxmo-0001qW-0R for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opxmn-0000QF-SM for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58952] [PATCH 1/3] gnu: Add easyexif References: <20221101202106.17518-1-sharlatanus@gmail.com> In-Reply-To: <20221101202106.17518-1-sharlatanus@gmail.com> Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Nov 2022 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58952 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58952@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 58952-submit@debbugs.gnu.org id=B58952.16673341801588 (code B ref 58952); Tue, 01 Nov 2022 20:23:01 +0000 Received: (at 58952) by debbugs.gnu.org; 1 Nov 2022 20:23:00 +0000 Received: from localhost ([127.0.0.1]:44308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmj-0000PG-Uj for submit@debbugs.gnu.org; Tue, 01 Nov 2022 16:23:00 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:42937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmh-0000Oy-LK for 58952@debbugs.gnu.org; Tue, 01 Nov 2022 16:22:56 -0400 Received: by mail-wr1-f48.google.com with SMTP id cl5so10038979wrb.9 for <58952@debbugs.gnu.org>; Tue, 01 Nov 2022 13:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eJjmy00OO70RxjYwSZuJo9eO7pRokO4MJw1lAltH2SI=; b=Lgww5Yf8S4sPPg2ng7xECdmgb65qKpw4R7tnAbAE+doFgleFuAEgA8TEKuCIMQhk+Z TaSWm6K3XipagNteGLThID2+oPsveTeliiaSA92Ll5rxFYQv6A2zUu/r56GhrZWmsT7o Ebir6N2klB0pNN+EofNJ2C2SMMFcxeYJL0chDrlyWdSh7yshuraMeoskZqOEaddE9ylk jhuNJjMiCTl5aak3yInusjoHEMg4WH3OAUbTCM0sEa9WJV9Z6Pn78APDX4DXpnr7Z5hu B+rTTru5nIJq2XU4XsgPRhk1WKaGMCuH4MWxI3EVkbfLkPRS27sGB7x+pG97BrS9z7ev uqrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eJjmy00OO70RxjYwSZuJo9eO7pRokO4MJw1lAltH2SI=; b=mi2SnSExYhaVfasvhd5C4g9ew7wex3hSEOSWd1YcGGaYDvCTdVvUyeEcgPPP1QAG94 7xw4xnONXzbeJDVIREDu4rihFgwcDSj4rTAlDFEUleeS5IXXRMrRL2XanqgKcn65lfos feQmYrQ5NznPQpC213w4SHHxsYL+f34MYiQ+s1o8vxRh3sJPqHm2MGBidDqzHeZfGAHD bbSszWfiPqrvgajw9yzDhCDQ1boJshNvbMTWkB0/yk9Ike+5s0/qykkJ7EjkZpT0bzD2 rHaakqX8okbY+See2iKTgo+quwl8RXQ2kPLG3qJxogAv4942pM1XhHgXM9cKho6RZ4+V gzLg== X-Gm-Message-State: ACrzQf2FNAPlS9jsH/sN7ruYk+HZK3yhIHBl7Ru0GNKX9gKG6wyW8Y3f dGZX8J2rrcY1NIiICRz0Qnyf9vqut7k= X-Google-Smtp-Source: AMsMyM4qpxmZN3joj5Rk0m4WMMeG3H+kxLiisOX2TpTFJOhquukVLSGQZS9oMqcR70CbD/df0whyfQ== X-Received: by 2002:adf:ebd2:0:b0:236:d5d6:7dab with SMTP id v18-20020adfebd2000000b00236d5d67dabmr6833002wrn.595.1667334169694; Tue, 01 Nov 2022 13:22:49 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003cf4c1e211fsm12301474wmq.38.2022.11.01.13.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 13:22:49 -0700 (PDT) From: Sharlatan Hellseher Date: Tue, 1 Nov 2022 20:22:44 +0000 Message-Id: <20221101202246.17659-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/photo.scm (easyexif): New variable. --- gnu/packages/photo.scm | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index 642694bda1..0df6c7f271 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -227,6 +227,50 @@ (define-public libexif data as produced by digital cameras.") (license license:lgpl2.1+))) +(define-public easyexif + (package + (name "easyexif") + (version "1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mayanklahiri/easyexif") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0l3zr2gzjw25k7gw8z7cpz4prqzfrrpqdqd8gqw2py8pbsxkx8ap")))) + (build-system gnu-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./test.sh")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (share (string-append out "/share")) + (include (string-append out + "/include/easyexif"))) + (for-each (lambda (dir) + (mkdir-p dir)) + (list bin include share)) + (install-file "demo" bin) + (install-file "exif.cpp" include) + (install-file "exif.h" include) + (install-file "LICENSE" share))))))) + (home-page "https://github.com/mayanklahiri/easyexif") + (synopsis "ISO-compliant C++ EXIF parsing library") + (description + "EasyEXIF is a tiny, lightweight C++ library that parses basic information +out of JPEG files. It uses only the std::string library and is otherwise pure +C++. You pass it the binary contents of a JPEG file, and it parses several of +the most important EXIF fields for you.") + (license license:bsd-0))) + (define-public libgphoto2 (package (name "libgphoto2") From patchwork Tue Nov 1 20:22:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 44239 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 4632627BBEB; Tue, 1 Nov 2022 20:23:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2134327BBE9 for ; Tue, 1 Nov 2022 20:23:14 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opxmp-0000jD-V3; Tue, 01 Nov 2022 16:23:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opxmp-0000j5-2O for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opxmo-0001ql-RF for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opxmo-0000QP-Mr for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58952] [PATCH 2/3] gnu: Add vcglib Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Nov 2022 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58952 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58952@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 58952-submit@debbugs.gnu.org id=B58952.16673341811601 (code B ref 58952); Tue, 01 Nov 2022 20:23:02 +0000 Received: (at 58952) by debbugs.gnu.org; 1 Nov 2022 20:23:01 +0000 Received: from localhost ([127.0.0.1]:44311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmm-0000PZ-Gl for submit@debbugs.gnu.org; Tue, 01 Nov 2022 16:23:01 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:35736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmj-0000P1-KT for 58952@debbugs.gnu.org; Tue, 01 Nov 2022 16:22:58 -0400 Received: by mail-wr1-f51.google.com with SMTP id l14so21704961wrw.2 for <58952@debbugs.gnu.org>; Tue, 01 Nov 2022 13:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=knXW075fLDGk14AzpR65jMBvSyrDrxdqpGKTLSuh/74=; b=kXHHTdPEqcnCu2MoDZwyQ4IQ5YLpkGoapkiOKXPaZehHyxZq1bku/GlSTe2EkpnAsC 5vmv7SZReSCz50NEjnBcJdzA081DhQhZs+VOCBhns6PCzrQFe52yEZR4SoBbLsGCv9hA A/+mYJL5dBH3xboQaFj9i4fQxHTpxB4uOM84OBl889H/fyMfGpJuv/mN2oLa88j36vSG fdk+CstpgRzzhjtbAIesdxp0CgehQIpff57Ubvj82/vKVOINS5W7Wd19ZtlQCjyVeoYI zDWEcstvqkpyUdHc/XgLN5JHH8QDmHivYo40APB39jLcUvyo5JkKdG12n/jJvnE5qb7R k4ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=knXW075fLDGk14AzpR65jMBvSyrDrxdqpGKTLSuh/74=; b=fiMrksD+iaN5fGAEMPxMulaQSfWTvqgPx2Z+65zxE2YanBsrvLm06rT8VhGTN/gYJi XJFu4NOfCfNMZ7duBTJiWOuNhtAIYvwS9y2MVeBEE1dUl1ASPTC8MbP1Z9blN4JdD4iy F/vosHM4jdYIwwKXKdZuKDUDXQjsI6M+D/4O9P+FIUwox/kDk5dUde0IQReb5KK8ncTt vDMpmOANFE64I9AnHqzZ+WsU3hIDvW+ayLMdrUCuqiLAVqkE5nAhtHbZwiobeMlp/Li4 0hvbJszjNwqlzZTmkmZW4mddg7oIK06pkO+QzoqQ7JuU4Br8PbLObMNzvOru8yyknZFb YM6Q== X-Gm-Message-State: ACrzQf1ZtE1v7XTJi1UD3dC/DZTYP8HZCzDwxf7WR8LQlHJadiMDipxT b/tNW1VSoxoJ3YzMyh9bJiIcXw5MOa0= X-Google-Smtp-Source: AMsMyM6gYs0yq18ddmJ/Q6baPg7jQpOLmRLtg0oClau+jDfaWIFY/lU4yhMhvCp3tyOTm1xCMLF4UA== X-Received: by 2002:adf:e3cf:0:b0:22e:54da:a4f1 with SMTP id k15-20020adfe3cf000000b0022e54daa4f1mr137883wrm.637.1667334171978; Tue, 01 Nov 2022 13:22:51 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003cf4c1e211fsm12301474wmq.38.2022.11.01.13.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 13:22:51 -0700 (PDT) From: Sharlatan Hellseher Date: Tue, 1 Nov 2022 20:22:45 +0000 Message-Id: <20221101202246.17659-2-sharlatanus@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101202246.17659-1-sharlatanus@gmail.com> References: <20221101202246.17659-1-sharlatanus@gmail.com> MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/engineering.scm (vcglib): New variable. --- gnu/packages/engineering.scm | 65 ++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 644c0f8ef9..4f705d4b9b 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2741,6 +2741,71 @@ (define-public lib3ds export filters.") (license license:lgpl2.1+))) +(define-public vcglib + (package + (name "vcglib") + (version "2022.02") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cnr-isti-vclab/vcglib") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1w9r22wg7452x4xald4frsq4vc03vbxf3qq3d9a2zl04b1bdna2w")))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;Has no tests + #:configure-flags + ;; Make sure we still can build examples which shows nothing major + ;; broken. + #~(list (string-append "-DVCG_BUILD_EXAMPLES=ON") + (string-append "-DEIGEN3_INCLUDE_DIR=" + #$(this-package-input "eigen") + "/include/eigen3")) + #:phases #~(modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out + "/include/vcglib")) + (wrap (string-append include "/wrap/")) + (vcg (string-append include "/vcg"))) + (for-each (lambda (dir) + (mkdir-p dir)) + (list bin include wrap vcg)) + (install-file "apps/metro/metro" bin) + (install-file "../source/CMakeLists.txt" include) + (copy-recursively "../source/wrap/" wrap) + (copy-recursively "../source/vcg/" vcg))))))) + (propagated-inputs (list eigen)) + (synopsis "C++ library to work with triangle meshes") + (home-page "http://vcglib.net/") + (description + "This package provides @acronym{VCGlib, Visualization and Computer Graphics +Library} The VCG library is tailored to mostly manage triangular meshes: offers +many capabilities for processing meshes, such as: + +@itemize + +@item high quality quadric-error edge-collapse based simplfication +@item efficient spatial query structures (uniform grids, hashed grids, kdtree, +etc) +@item advanced smoothing and fairing algorithms +@item computation of curvature +@item optimization of texture coordinates +@item Hausdorff distance computation +@item geodesic paths +@item mesh repairing capabilities +@item isosurface extraction and advancing front meshing algorithms +@item Poisson Disk sampling and other tools to sample point distributions over +meshes +@item subdivision surfaces +@end itemize") + (license license:gpl3+))) + (define-public meshlab (package (name "meshlab") From patchwork Tue Nov 1 20:22:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 44241 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 8302F27BBEB; Tue, 1 Nov 2022 20:24:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6DCB127BBE9 for ; Tue, 1 Nov 2022 20:24:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opxno-0000zd-Ki; Tue, 01 Nov 2022 16:24:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opxnm-0000zI-GW for guix-patches@gnu.org; Tue, 01 Nov 2022 16:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opxnm-0002Hr-97 for guix-patches@gnu.org; Tue, 01 Nov 2022 16:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opxnm-0000Ry-3Y for guix-patches@gnu.org; Tue, 01 Nov 2022 16:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58952] [PATCH 3/3] gnu: meshlab: Unbundle vcglib and easyexif Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Nov 2022 20:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58952 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58952@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 58952-submit@debbugs.gnu.org id=B58952.16673341821640 (code B ref 58952); Tue, 01 Nov 2022 20:24:02 +0000 Received: (at 58952) by debbugs.gnu.org; 1 Nov 2022 20:23:02 +0000 Received: from localhost ([127.0.0.1]:44314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmo-0000QM-3K for submit@debbugs.gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:33751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxml-0000P5-J8 for 58952@debbugs.gnu.org; Tue, 01 Nov 2022 16:23:00 -0400 Received: by mail-wr1-f50.google.com with SMTP id h9so21737330wrt.0 for <58952@debbugs.gnu.org>; Tue, 01 Nov 2022 13:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CxTOZq89OSFna1wHINhFVDbzA7JHR+lAw2qRm854ldQ=; b=IHp2ixF5EBcs2wehhxsFnFMczjGJaGAZCqv7ygs/dXMGvujS0uKFiMmOa3KgIgtB3x fiUAcpaL9N5pQTP5OPVii8zJjhYdlvqqrLbVlWCkYHyDnTRTrkldBkjO7xI18iCWkNgb dZSApFK5K/lAeDz3bMAs6Fq4XLql74SiOwUF92vqAXvH0cctWDTO6FdYmUyBFoxznizA ZoE+brbr1dXI5KHEcC+m+iInn/0bxWXljv7sBcX2PGGep9VJ7D2w1jf6MlirBUkcG2od I6Sk2DFJzj2hmtgDcoGqx6tbDmnnIioOfmsNGJnQh+Zk3VnLu/lMaoVaqmaL5/ylS9M3 7lyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CxTOZq89OSFna1wHINhFVDbzA7JHR+lAw2qRm854ldQ=; b=zNB6BA81G09U+U2SATcuSjL0FtZ08Uoyi3YMlVK0UXfRjFvb4lJ5DdKPQCXCA3Owsa K8jPBV7x9wBjk/aRCSSuChBlS5cFf9BjEc6tsmKVxbFVzmYhUQm0h7nEW49a/dCrOKUV ERGTBxWEeYcn4hXiHZZGaSVmXIGhiun+4qntbmv6OwzszMcxG7Iz8OjsCnFfkgDwa/Xi ymFECvXtlbgmH+mIKZWsF9VJE5dh3Ppo8Hs3fJBFFcJMVydK+XUxKaBpPTHUJcXo3sIm gKhFEl5L1EHz36nclIb8oaOoNoKitNvfKtYIyVIULZUmloy3Fmu0mUtQ3DVHKTQXl24F JOIw== X-Gm-Message-State: ACrzQf2LwP/hnVMg0xagoK5Av+bA2niQltUMw1K+OxAgVeHNI1GJQuFL Rlq8cRk5ck9bgcub1Cgxdqw8jda+Rz0= X-Google-Smtp-Source: AMsMyM7g3r9nvq3YoV9qtJSKkUc4vFIrVbzgOqAi/lvrRCN9QYiidX9DgekA2VrLMsGMDIVn4DF8Rg== X-Received: by 2002:adf:e805:0:b0:236:5635:9520 with SMTP id o5-20020adfe805000000b0023656359520mr12332035wrm.154.1667334173891; Tue, 01 Nov 2022 13:22:53 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003cf4c1e211fsm12301474wmq.38.2022.11.01.13.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 13:22:53 -0700 (PDT) From: Sharlatan Hellseher Date: Tue, 1 Nov 2022 20:22:46 +0000 Message-Id: <20221101202246.17659-3-sharlatanus@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101202246.17659-1-sharlatanus@gmail.com> References: <20221101202246.17659-1-sharlatanus@gmail.com> MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/engineering.scm (meshlab): [source]: Do not clone the project recursively. Add clean up procedure to remove any bundled libraries and external sources. [inputs]: Add vcglib and easyexif. Sort list alphabetically. [phases]{set-external-libraries}: New phase. --- gnu/packages/engineering.scm | 69 +++++++++++++++++++++++++++++------- 1 file changed, 57 insertions(+), 12 deletions(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 4f705d4b9b..41ed010d6e 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -126,6 +126,7 @@ (define-module (gnu packages engineering) #:use-module (gnu packages parallel) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) + #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) #:use-module (gnu packages protobuf) @@ -2814,28 +2815,61 @@ (define-public meshlab (method git-fetch) (uri (git-reference (url "https://github.com/cnr-isti-vclab/meshlab") - (commit (string-append "MeshLab-" version)) - (recursive? #t))) + (commit (string-append "MeshLab-" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0dkh9qw9z2160s6gjiv0a601kp6hvl66cplvi8rfc892zcykgiwd")))) + (base32 "0dkh9qw9z2160s6gjiv0a601kp6hvl66cplvi8rfc892zcykgiwd")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Remove bundeled libraries and prebuilt binaries, check if + ;; the list is changed in the next release. + (for-each (lambda (dir) + (delete-file-recursively dir)) + (list "src/external/OpenCTM-1.0.3" + "src/external/e57" + "src/external/easyexif" + "src/external/glew-2.1.0" + "src/external/levmar-2.3" + "src/external/lib3ds-1.3.0" + "src/external/libigl-2.3.0" + "src/external/muparser_v225" + "src/external/nexus" + "src/external/openkinect" + "src/external/qhull-2020.2" + "src/external/structuresynth-1.5" + "src/external/tinygltf" + "src/external/u3d" + "src/external/xerces" + "src/vcglib" + ;; XXX: Remove this in future release + ;; they are present in master and contains + ;; prebuilt libraries + ;; + ;; "resources/linux" + ;; "resources/windows" + ;; "resources/macos" + )))))) (build-system cmake-build-system) (inputs - (list qtbase-5 - mesa - glu + (list easyexif + eigen glew - muparser + glu gmp - eigen - libfreenect lib3ds + libfreenect + mesa + muparser openctm - qhull)) + qhull + qtbase-5 + vcglib)) (arguments (list #:tests? #f ; Has no tests #:configure-flags - #~(list (string-append "-DCMAKE_MODULE_LINKER_FLAGS=-Wl,-rpath=" + #~(list (string-append "-DVCGDIR=" #$(this-package-input "vcglib") "/include/vcglib") + (string-append "-DCMAKE_MODULE_LINKER_FLAGS=-Wl,-rpath=" #$output "/lib/meshlab") (string-append "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-rpath=" #$output "/lib/meshlab") @@ -2844,7 +2878,18 @@ (define-public meshlab #:phases #~(modify-phases %standard-phases (add-after 'unpack 'go-to-source-dir - (lambda _ (chdir "src")))))) + (lambda _ (chdir "src"))) + ;; XXX: Add more substitutions to CMake files if building start + ;; failing. GLEW and easyexif comes as hard dependencies for + ;; MashLab missing them prevent core built. + (add-before 'configure 'set-external-libraries + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "external/easyexif.cmake" + ((".*set.EXIF_DIR.*") + (string-append + "set(EXIF_DIR " + (search-input-directory inputs "/include/easyexif") + ")")))))))) (synopsis "3D triangular mesh processing and editing software") (home-page "https://www.meshlab.net/") (description "MeshLab is a system for the processing and editing of large,