From patchwork Fri Oct 4 13:25:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Wiktor_=C5=BBelazny?= X-Patchwork-Id: 15653 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 8ABCA17500; Fri, 4 Oct 2019 14:28:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id F035F174FE for ; Fri, 4 Oct 2019 14:28:10 +0100 (BST) Received: from localhost ([::1]:48770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGNcv-0001cZ-St for patchwork@mira.cbaines.net; Fri, 04 Oct 2019 09:28:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45836) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGNcq-0001cS-1c for guix-patches@gnu.org; Fri, 04 Oct 2019 09:28:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGNco-0008Dq-QA for guix-patches@gnu.org; Fri, 04 Oct 2019 09:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGNco-0008De-NP for guix-patches@gnu.org; Fri, 04 Oct 2019 09:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iGNco-0003ns-H6 for guix-patches@gnu.org; Fri, 04 Oct 2019 09:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37619] [PATCH] gnu: Add libspatialindex. Resent-From: Wiktor =?utf-8?q?=C5=BBelazny?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Oct 2019 13:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37619@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157019566714595 (code B ref -1); Fri, 04 Oct 2019 13:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2019 13:27:47 +0000 Received: from localhost ([127.0.0.1]:41841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGNcV-0003nI-1g for submit@debbugs.gnu.org; Fri, 04 Oct 2019 09:27:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:42016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGNcP-0003n6-Le for submit@debbugs.gnu.org; Fri, 04 Oct 2019 09:27:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45780) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGNcM-0001aV-6l for guix-patches@gnu.org; Fri, 04 Oct 2019 09:27:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGNcI-0007wi-Rs for guix-patches@gnu.org; Fri, 04 Oct 2019 09:27:34 -0400 Received: from freeshell.de ([2a01:360:106::2]:42717) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iGNcI-0007w3-Lv for guix-patches@gnu.org; Fri, 04 Oct 2019 09:27:30 -0400 From: Wiktor =?utf-8?q?=C5=BBelazny?= DKIM-Filter: OpenDKIM Filter v2.9.2 freeshell.de 5751235CC371 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=mail; t=1570195648; bh=TSLcWvDgPtYsAgtXYyVIwbqXyqOnPX/Df0nIvYhDNxw=; h=From:To:Subject:Date; b=oSOOovKf88ampCUlFleCJAgE+YiEPaT9Rj+GITaTsG4MSRNZIFObphf23++iBPu2p u0/jkFzugrwLc32AjS+zZ+Y02JxwPTwOT2aCHdCG0T/hurvfQaJhOBEr+MDwCKigVn rJ+YWllHqXXhAbGV7Ul+o2Ius1GVmiNK9CU1mrvk= Date: Fri, 4 Oct 2019 15:25:16 +0200 Message-Id: <20191004132516.16761-1-wz@freeshell.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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 From: Wiktor Żelazny * gnu/packages/geo.scm (libspatialindex): new variable. --- gnu/packages/geo.scm | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 5e1f7e39d7..1d635c4f1f 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2018 Julien Lepiller ;;; Copyright © 2019 Guillaume Le Vaillant ;;; Copyright © 2019 Efraim Flashner +;;; Copyright © 2019 Wiktor Żelazny ;;; ;;; This file is part of GNU Guix. ;;; @@ -65,7 +66,8 @@ #:use-module (gnu packages web) #:use-module (gnu packages webkit) #:use-module (gnu packages wxwidgets) - #:use-module (gnu packages xml)) + #:use-module (gnu packages xml) + #:use-module (ice-9 regex)) (define-public geos (package @@ -996,3 +998,40 @@ XyGrib is the continuation of the zyGrib software package with a new team of volunteers.") (home-page "https://opengribs.org") (license license:gpl3+))) + +(define-public libspatialindex + (package + (name "libspatialindex") + (version "1.8.5") + (source + (origin + (method url-fetch) + (uri (string-append + "https://download.osgeo.org/" name "/" + (regexp-substitute #f (string-match "^lib" name) 'pre "" 'post) + "-src-" version ".tar.gz")) + (sha256 + (base32 + ; checked .md5 + "1vxzm7kczwnb6qdmc0hb00z8ykx11zk3sb68gc7rch4vrfi4dakw")))) + (build-system gnu-build-system) + (home-page "https://libspatialindex.org") + (synopsis "Spatial indexing library") + (description "The purpose of this library is to provide: + +@itemize + @item An extensible framework that will support robust spatial indexing +methods. + @item Support for sophisticated spatial queries. Range, point location, + nearest neighbor and k-nearest neighbor as well as parametric queries (defined +by spatial constraints) should be easy to deploy and run. + @item Easy to use interfaces for inserting, deleting and updating information. + @item Wide variety of customization capabilities. Basic index and storage +characteristics like the page size, node capacity, minimum fan-out, splitting +algorithm, etc. should be easy to customize. + @item Index persistence. Internal memory and external memory structures +should be supported. Clustered and non-clustered indices should be easy to be +persisted. +@end itemize +") + (license license:expat)))