From a8f223f91cf1170c85c0133e12856476e40a8288 Mon Sep 17 00:00:00 2001 From: Mattia Bunel Date: Mon, 21 Oct 2024 18:14:15 +0200 Subject: [PATCH] gnu: Add libe57format. * gnu/packages/geo.scm (libe57format): New variable. Change-Id: I4b1473184ed871a5b6c5a4ea8320082292846c3f Co-authored-by: Andreas Enge Signed-off-by: Andreas Enge --- gnu/packages/geo.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 3317271802f058cd254c26856c1d1d85716f91c9..368ea01ca171e46a560ebec9456155bcc8a557c0 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -24,6 +24,8 @@ ;;; Copyright © 2022 Denis 'GNUtoo' Carikli ;;; Copyright © 2024 Wilko Meyer ;;; Copyright © 2024 Jonathan Brielmaier +;;; Copyright © 2025 Mattia Bunel +;;; Copyright © 2025 Andreas Enge ;;; ;;; This file is part of GNU Guix. ;;; @@ -3684,3 +3686,42 @@ Grosser Reiseplaner, Routeplaner Europa 2007, Map + Route.") @code{LAZ} files. The @code{LAS} format is a file format designed for the interchange and archiving of lidar point cloud data.") (license license:asl2.0))) + +(define-public libe57format + (package + (name "libe57format") + (version "3.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/asmaloney/libE57Format") + (commit "v3.2.0"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00sj0splv4apv3kfjfwgsrizhimav3hxw51q1qz4g2fgncn092a9")))) + (inputs (list xerces-c)) + (build-system cmake-build-system) + (arguments + (list + ;; Tests use external data from + ;; https://github.com/asmaloney/libE57Format-test-data + ;; Even after downloading it and copying it to the + ;; test/libE57Format-test-data subdirectory, the configure phase + ;; fails with the following message: + ;; [E57 Test] The GoogleTest submodule was not downloaded. + ;; E57_GIT_SUBMODULE_UPDATE was turned off or failed. Please update + ;; submodules and try again. + ;; Adding googletest as a native-input does not solve the problem. + #:configure-flags #~(list "-DE57_BUILD_TEST=NO") + #:tests? #f + #:build-type "Release")) + (home-page "https://github.com/asmaloney/libE57Format") + (synopsis "Library for reading and writing E57 files") + (description + "The libE57Format package provides a C++ library for reading and +writing files in the ASTM-standard E57 format. E57 files store 3D point +cloud data (produced by 3D imaging systems such as laser scanners), +attributes associated with 3D point data (color and intensity), +and 2D images (photos taken using a 3D imaging system).") + (license license:boost1.0)))