mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
converters/osm2pgsql: update 1.7.0 → 1.7.1
This commit is contained in:
parent
058d5ac716
commit
78cfe65ee0
@ -1,10 +1,12 @@
|
||||
PORTNAME= osm2pgsql
|
||||
PORTVERSION= 1.7.0
|
||||
PORTVERSION= 1.7.1
|
||||
CATEGORIES= converters geography
|
||||
|
||||
MAINTAINER= amdmi3@FreeBSD.org
|
||||
COMMENT= Convert OSM XML data to PostgreSQL database
|
||||
WWW= https://wiki.openstreetmap.org/wiki/Osm2pgsql
|
||||
WWW= https://osm2pgsql.org/ \
|
||||
https://wiki.openstreetmap.org/wiki/Osm2pgsql \
|
||||
https://github.com/openstreetmap/osm2pgsql
|
||||
|
||||
LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1660665094
|
||||
SHA256 (openstreetmap-osm2pgsql-1.7.0_GH0.tar.gz) = 0f722baf0f04eda387d934d86228aae07d848993900db6b9e7ab312c91fd84e5
|
||||
SIZE (openstreetmap-osm2pgsql-1.7.0_GH0.tar.gz) = 2620585
|
||||
TIMESTAMP = 1667404495
|
||||
SHA256 (openstreetmap-osm2pgsql-1.7.1_GH0.tar.gz) = 76c303bfb28440eee546d0f7327565a08d6dac20a915f95dbb4bf21f2e691141
|
||||
SIZE (openstreetmap-osm2pgsql-1.7.1_GH0.tar.gz) = 2626690
|
||||
|
@ -0,0 +1,50 @@
|
||||
From f7b99c16928c09ab4baa4962850af635132f7beb Mon Sep 17 00:00:00 2001
|
||||
From: Sarah Hoffmann <lonvia@denofr.de>
|
||||
Date: Sat, 22 Oct 2022 11:52:11 +0200
|
||||
Subject: [PATCH] always expect osm2pgsql in same path as osm2pgsql-replication
|
||||
|
||||
Anything else causes issues with the installation process of cmake.
|
||||
---
|
||||
CMakeLists.txt | 3 +--
|
||||
scripts/osm2pgsql-replication | 9 +++------
|
||||
2 files changed, 4 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 7fbc8ce06..dea959ed6 100644
|
||||
--- CMakeLists.txt
|
||||
+++ CMakeLists.txt
|
||||
@@ -337,6 +337,5 @@ include(GNUInstallDirs)
|
||||
if (ENABLE_INSTALL)
|
||||
install(TARGETS osm2pgsql DESTINATION bin)
|
||||
install(FILES default.style empty.style DESTINATION share/osm2pgsql)
|
||||
- install(CODE "set(OSM2PGSQL_BINDIR ${CMAKE_INSTALL_FULL_BINDIR})
|
||||
- configure_file(${PROJECT_SOURCE_DIR}/scripts/osm2pgsql-replication ${CMAKE_INSTALL_FULL_BINDIR}/osm2pgsql-replication)")
|
||||
+ install(PROGRAMS scripts/osm2pgsql-replication DESTINATION bin)
|
||||
endif()
|
||||
diff --git a/scripts/osm2pgsql-replication b/scripts/osm2pgsql-replication
|
||||
index e721da350..0485169c8 100755
|
||||
--- scripts/osm2pgsql-replication
|
||||
+++ scripts/osm2pgsql-replication
|
||||
@@ -51,10 +51,7 @@ except ImportError:
|
||||
|
||||
LOG = logging.getLogger()
|
||||
|
||||
-# Will be replaced when installed via CMake.
|
||||
-INSTALL_PREFIX = '@OSM2PGSQL_BINDIR@/'
|
||||
-if INSTALL_PREFIX.startswith('@'):
|
||||
- INSTALL_PREFIX = ''
|
||||
+OSM2PGSQL_PATH = Path(__file__).parent.resolve() / 'osm2pgsql'
|
||||
|
||||
def pretty_format_timedelta(seconds):
|
||||
minutes = int(seconds/60)
|
||||
@@ -493,8 +490,8 @@ def get_parser():
|
||||
help='File to save changes before they are applied to osm2pgsql.')
|
||||
cmd.add_argument('--max-diff-size', type=int, default=500,
|
||||
help='Maximum data to load in MB (default: 500MB)')
|
||||
- cmd.add_argument('--osm2pgsql-cmd', default=INSTALL_PREFIX + 'osm2pgsql',
|
||||
- help=f'Path to osm2pgsql command (default: {INSTALL_PREFIX}osm2pgsql)')
|
||||
+ cmd.add_argument('--osm2pgsql-cmd', default=str(OSM2PGSQL_PATH),
|
||||
+ help=f'Path to osm2pgsql command (default: {OSM2PGSQL_PATH})')
|
||||
cmd.add_argument('--once', action='store_true',
|
||||
help='Run updates only once, even when more data is available.')
|
||||
cmd.add_argument('--post-processing', metavar='SCRIPT',
|
Loading…
Reference in New Issue
Block a user