From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-patches-bounces+larch=yhetil.org@gnu.org>
Received: from mp2.migadu.com ([2001:41d0:403:4876::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms1.migadu.com with LMTPS
	id sAhyEaDZFWYToQAAe85BDQ:P1
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 10 Apr 2024 02:13:20 +0200
Received: from aspmx1.migadu.com ([2001:41d0:403:4876::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp2.migadu.com with LMTPS
	id sAhyEaDZFWYToQAAe85BDQ
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 10 Apr 2024 02:13:20 +0200
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=VNbjS2vM;
	dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none);
	spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712708000; a=rsa-sha256; cv=none;
	b=dqLjgqpF3P0JSvwLTav8F4GIIH+TvRA/M2DnknnOTyeY9GKMC/Yfb+KgVvgl+B2ysJe300
	mmXjJ6YE6ubbHvSK874zDW0N7D09dWQvbn/u1tmoRzOjOpo+oBpm0k2fTp8iPmgmAR7jom
	3Q2t9k+/UHWUKCmStB1PY04UVw0P1y1m37W+jhbK+bsGQJxerYwFP/ej2yJEI6KkriNRWR
	Nf4bK0YqFa8TToFHc/Hx918Dda0OAPh+/h8LNniBasZMuZahI1JOlGia+50eC6abuTGPz5
	iRWSzg3fybfmqS0q4FuwT3M2dTQ7VZZrCN63Y8a8mIPgyjBC8I1HR4BwOMcu6w==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=VNbjS2vM;
	dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none);
	spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1712708000;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 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=nTY3LA6E5wyBoTYM0do/1yHfR07SU8n8a8hsV4HRhRA=;
	b=c+tYSdFHyK3dAN6+yVKEWXkFT2PHQbcA907JoF6b5ld2WDIUgEIttm7HE5XDkh0+tlezbd
	uTDvE0eKGoVTUKmlIi3AkWStA4aXPDVG7o9ChL8VQYHsphJCP3SWYAgxo6nFra4l3BdH3/
	UKTILQYJcof/yJQGaHYymMKBLDiWhVXt/fQHPakdnscbl8xL41o/JlqYSjrfOYC6k0DEH9
	wISeR54NnxKkh4ydLx4rPWan/FFmvUoZQwlMy5FMPdlc5GqZBqRgsjDOU+LL7ZzJm7EWc4
	CnA1bus3YToUW9pQReujgploBKOAWMxsXtUf56OvaF66Jr7tsCanbbS+Sn+iuQ==
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 E39346D52B
	for <larch@yhetil.org>; Wed, 10 Apr 2024 02:13:19 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-patches-bounces@gnu.org>)
	id 1ruLaE-0001jx-Jw; Tue, 09 Apr 2024 20:12:58 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1ruLaB-0001jP-0H
 for guix-patches@gnu.org; Tue, 09 Apr 2024 20:12:55 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1ruLaA-0007lb-Am
 for guix-patches@gnu.org; Tue, 09 Apr 2024 20:12:54 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ruLaI-0007ye-Ig
 for guix-patches@gnu.org; Tue, 09 Apr 2024 20:13:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#70319] [PATCH 2/2] gnu: Add draco.
Resent-From: Vinicius Monego <monego@posteo.net>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: guix-patches@gnu.org
Resent-Date: Wed, 10 Apr 2024 00:13:02 +0000
Resent-Message-ID: <handler.70319.B70319.171270797230585@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 70319
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 70319@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Received: via spool by 70319-submit@debbugs.gnu.org id=B70319.171270797230585
 (code B ref 70319); Wed, 10 Apr 2024 00:13:02 +0000
Received: (at 70319) by debbugs.gnu.org; 10 Apr 2024 00:12:52 +0000
Received: from localhost ([127.0.0.1]:51799 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1ruLa7-0007xE-ND
 for submit@debbugs.gnu.org; Tue, 09 Apr 2024 20:12:52 -0400
Received: from mout01.posteo.de ([185.67.36.65]:47623)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monego@posteo.net>) id 1ruLa3-0007wU-NV
 for 70319@debbugs.gnu.org; Tue, 09 Apr 2024 20:12:48 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id C6110240027
 for <70319@debbugs.gnu.org>; Wed, 10 Apr 2024 02:12:33 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1712707953; bh=n41PNqaTWRSyWjYKajqIrU1qHJb9jZtC+123nwO1+w8=;
 h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:
 Content-Transfer-Encoding:From;
 b=VNbjS2vMqAu/z9/Q5zC7sFEjxCmjg0QuFqnWeV1HjPpRGZLL4NqHpSjX5Lyb8XRD+
 IagnjH8N+wgfqhLIo8wbvGD4ci4GrUN2+PFA5PxFzBTvoqyH2uQqP8HWv+uPhJLwWM
 sB26AwBNAKGShqJcCYtyGTgmSoBqMmBTOOlVx0yVMg9Psj70tCsq77tqdYkeaQSsbz
 Sl5//rYwgNLyZqsWQz0XGsudtfWYHgqJ/3KFLVGMyjmMrJkJRfopDcctNeIx74BaZH
 iz829p/g5KeUkPhjQZpGYC6ghfukkQnUbpKlNCNnCMPHiA6Z8K6nxhooCuLYb8RS3J
 gg/fwbjmwHIpA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4VDjvN63Nxz9rwn;
 Wed, 10 Apr 2024 02:12:32 +0200 (CEST)
From: Vinicius Monego <monego@posteo.net>
Date: Wed, 10 Apr 2024 00:12:03 +0000
Message-Id: <a6232d601410a6e0c6d157467c3cf4df77b207f8.1712707652.git.monego@posteo.net>
In-Reply-To: <cover.1712707652.git.monego@posteo.net>
References: <cover.1712707652.git.monego@posteo.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: guix-patches@gnu.org
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org
Sender: guix-patches-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Spam-Score: -3.97
X-Migadu-Queue-Id: E39346D52B
X-Migadu-Spam-Score: -3.97
X-Migadu-Scanner: mx10.migadu.com
X-TUID: I/vIZqLJ4raO

* gnu/packages/compression.scm (draco): New variable.

Change-Id: Ibba9180ac2ee176aa445684472fa7d34327f8ce5
---
 gnu/packages/compression.scm | 42 ++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 02a20e5c62..cbed6d947c 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -71,6 +71,7 @@ (define-module (gnu packages compression)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
+  #:use-module (gnu packages algebra)
   #:use-module (gnu packages assembly)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages backup)
@@ -79,6 +80,7 @@ (define-module (gnu packages compression)
   #:use-module (gnu packages benchmark)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages cpp)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages file)
@@ -86,6 +88,7 @@ (define-module (gnu packages compression)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages graphics)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages java)
   #:use-module (gnu packages llvm)
@@ -831,6 +834,45 @@ (define-public sfarkxtc
 sfArk file format to the uncompressed sf2 format.")
       (license license:gpl3+))))
 
+(define-public draco
+  (package
+    (name "draco")
+    (version "1.5.7")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/google/draco")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1v1idvqr9mww9wi36yzb10lq66ls78dlrgnxchjjjv5paw2g0mk3"))))
+    (build-system cmake-build-system)
+    (inputs (list eigen gulrak-filesystem tinygltf))
+    (arguments
+     ;; There is a testdata directory but apparently no actual tests.
+     (list #:tests? #f
+           #:configure-flags
+           #~(list "-DBUILD_SHARED_LIBS=true"
+                   (string-append "-DDRACO_EIGEN_PATH="
+                                  #$(this-package-input "eigen"))
+                   (string-append "-DDRACO_FILESYSTEM_PATH="
+                                  #$(this-package-input "gulrak-filesystem"))
+                   (string-append "-DDRACO_TINYGLTF_PATH="
+                                  #$(this-package-input "tinygltf")))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'install 'delete-static-lib
+                 (lambda _
+                   (delete-file (string-append #$output
+                                               "/lib/libdraco.a")))))))
+    (home-page "https://google.github.io/draco/")
+    (synopsis "Compress and decompress 3D geometric meshes and point clouds")
+    (description "Draco is a library for compressing and decompressing 3D
+geometric meshes and point clouds.  It is intended to improve the storage and
+transmission of 3D graphics.")
+    (license license:asl2.0)))
+
 (define-public libmspack
   (package
     (name "libmspack")
-- 
2.39.2