[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/06: gnu: Add osm2pgsql.
From: |
julien lepiller |
Subject: |
05/06: gnu: Add osm2pgsql. |
Date: |
Sat, 29 Sep 2018 06:43:46 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit b0e2299ad8164b986ae0f9081dad30f3332c91e5
Author: Julien Lepiller <address@hidden>
Date: Sun Sep 23 22:37:17 2018 +0200
gnu: Add osm2pgsql.
* gnu/packages/geo.scm (osm2pgsql): New variable.
---
gnu/packages/geo.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 990c2a6..9644bf9 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -48,6 +48,7 @@
#:use-module (gnu packages gtk)
#:use-module (gnu packages image)
#:use-module (gnu packages icu4c)
+ #:use-module (gnu packages lua)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -907,3 +908,50 @@ encoder in C++. The developer using protozero has to
manually translate the
(description "Libosmium is a fast and flexible C++ library for working with
OpenStreetMap data.")
(license license:boost1.0)))
+
+(define-public osm2pgsql
+ (package
+ (name "osm2pgsql")
+ (version "0.96.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"https://github.com/openstreetmap/osm2pgsql/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "08y7776r4l9v9177a4q6cfdri0lpirky96m6g699hwl7v1vhw0mn"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (delete-file-recursively "contrib/protozero")
+ (delete-file-recursively "contrib/libosmium")
+ #t))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:tests? #f; tests fail because we need to setup a database
+ #:configure-flags
+ (list (string-append "-DOSMIUM_INCLUDE_DIR="
+ (assoc-ref %build-inputs "libosmium")
+ "/include")
+ (string-append "-DPROTOZERO_INCLUDE_DIR="
+ (assoc-ref %build-inputs "protozero")
+ "/include"))))
+ (inputs
+ `(("boost" ,boost)
+ ("expat" ,expat)
+ ("libosmium" ,libosmium)
+ ("lua" ,lua)
+ ("postgresql" ,postgresql)
+ ("proj.4" ,proj.4)
+ ("protozero" ,protozero)
+ ("zlib" ,zlib)))
+ (native-inputs
+ `(("python-2" ,python-2)
+ ("python2-psycopg2" ,python2-psycopg2)))
+ (home-page "https://github.com/openstreetmap/osm2pgsql")
+ (synopsis "OSM data importer to postgresql")
+ (description "Osm2pgsql is a tool for loading OpenStreetMap data into a
+PostgreSQL / PostGIS database suitable for applications like rendering into a
+map, geocoding with Nominatim, or general analysis.")
+ (license license:gpl2+)))
- branch master updated (1dc876a -> 6f91223), julien lepiller, 2018/09/29
- 01/06: gnu: Add tegola., julien lepiller, 2018/09/29
- 04/06: gnu: Add libosmium., julien lepiller, 2018/09/29
- 06/06: gnu: Add tippecanoe., julien lepiller, 2018/09/29
- 02/06: gnu: Add imposm3., julien lepiller, 2018/09/29
- 05/06: gnu: Add osm2pgsql.,
julien lepiller <=
- 03/06: gnu: Add protozero., julien lepiller, 2018/09/29