git: c6debc386dfa - main - converters/osm2pgsql: update 1.8.1 → 1.9.0

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Mon, 21 Aug 2023 21:07:00 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c6debc386dfa99e7005db41c0005cc2ff429c05c

commit c6debc386dfa99e7005db41c0005cc2ff429c05c
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2023-08-21 18:52:29 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2023-08-21 21:06:34 +0000

    converters/osm2pgsql: update 1.8.1 → 1.9.0
---
 converters/osm2pgsql/Makefile | 14 ++++++++++----
 converters/osm2pgsql/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/converters/osm2pgsql/Makefile b/converters/osm2pgsql/Makefile
index fddfdfd7dc92..219fac18e65b 100644
--- a/converters/osm2pgsql/Makefile
+++ b/converters/osm2pgsql/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	osm2pgsql
-PORTVERSION=	1.8.1
-PORTREVISION=	3
+PORTVERSION=	1.9.0
 CATEGORIES=	converters geography
 
 MAINTAINER=	amdmi3@FreeBSD.org
@@ -16,7 +15,8 @@ LIB_DEPENDS=	libproj.so:graphics/proj \
 		libboost_system.so:devel/boost-libs \
 		libexpat.so:textproc/expat2
 BUILD_DEPENDS=	${LOCALBASE}/include/osmium/version.hpp:astro/libosmium \
-		${LOCALBASE}/include/protozero/version.hpp:devel/protozero
+		${LOCALBASE}/include/protozero/version.hpp:devel/protozero \
+		${LOCALBASE}/include/nlohmann/json.hpp:devel/nlohmann-json
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	openstreetmap
@@ -32,7 +32,7 @@ CMAKE_ARGS=	-DLUA_EXE="${LOCALBASE}/bin/${LUA_CMD}"
 PORTDOCS=	AUTHORS CONTRIBUTING.md README.md
 PORTDATA=	*
 
-OPTIONS_DEFINE=	DOCS LUAJIT TEST
+OPTIONS_DEFINE=	DOCS LUAJIT TEST # GEN (utility built with this option is not installed)
 
 LUAJIT_DESC=		Build with LuaJIT support
 LUAJIT_CMAKE_BOOL=	WITH_LUAJIT
@@ -43,10 +43,16 @@ TEST_TEST_TARGET=	test
 TEST_CMAKE_ON=		-DCMAKE_CTEST_ARGUMENTS="--label-regex;NoDB;--output-on-failure"
 TEST_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}behave>=0:devel/py-behave@${PY_FLAVOR}
 TEST_TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}behave>=0:devel/py-behave@${PY_FLAVOR}
+#GEN_DESC=		Build experimental osm2pgsql-gen data generalization utility
+#GEN_LIB_DEPENDS=	libpotrace.so:graphics/libpotrace
+#GEN_BUILD_DEPENDS=	${LOCALBASE}/include/CImg.h:graphics/cimg
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|find_package(Lua |&${LUA_VER} EXACT |' \
 		${WRKSRC}/CMakeLists.txt
+# for post-patch-GEN-off: when GEN option is implemented
+	@${REINPLACE_CMD} -Ee '/find_(path|library)/ s,(potrace|CImg),no&,' \
+		${WRKSRC}/CMakeLists.txt
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/converters/osm2pgsql/distinfo b/converters/osm2pgsql/distinfo
index ca55711a8a3e..63007259b913 100644
--- a/converters/osm2pgsql/distinfo
+++ b/converters/osm2pgsql/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1676291675
-SHA256 (openstreetmap-osm2pgsql-1.8.1_GH0.tar.gz) = 9e3cd9e13893fd7a153c7b42089bd23338867190c91b157cbdb4ff7176ecba62
-SIZE (openstreetmap-osm2pgsql-1.8.1_GH0.tar.gz) = 2545767
+TIMESTAMP = 1692617129
+SHA256 (openstreetmap-osm2pgsql-1.9.0_GH0.tar.gz) = f568618809930d550fc21a1951180b58b72c091235e4b0bc93477e4c27d54e88
+SIZE (openstreetmap-osm2pgsql-1.9.0_GH0.tar.gz) = 2598607