From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 23AA0158042 for ; Thu, 24 Oct 2024 06:08:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 45809E08FA; Thu, 24 Oct 2024 06:08:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2AC45E08FA for ; Thu, 24 Oct 2024 06:08:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2D24334092E for ; Thu, 24 Oct 2024 06:08:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 93D7BF32 for ; Thu, 24 Oct 2024 06:08:00 +0000 (UTC) From: "Sven Wegener" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Wegener" Message-ID: <1729749931.414a882f2947ac2111cb50e5f1dc3bd7b025f2d1.swegener@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/osm2pgsql/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/osm2pgsql/Manifest sci-geosciences/osm2pgsql/osm2pgsql-2.0.0.ebuild X-VCS-Directories: sci-geosciences/osm2pgsql/ X-VCS-Committer: swegener X-VCS-Committer-Name: Sven Wegener X-VCS-Revision: 414a882f2947ac2111cb50e5f1dc3bd7b025f2d1 X-VCS-Branch: master Date: Thu, 24 Oct 2024 06:08:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ba4e123e-3810-48b9-8794-c16a6524c7f9 X-Archives-Hash: 1b6fc81a803f697983487b12747ca30d commit: 414a882f2947ac2111cb50e5f1dc3bd7b025f2d1 Author: Sven Wegener gentoo org> AuthorDate: Thu Oct 24 06:05:21 2024 +0000 Commit: Sven Wegener gentoo org> CommitDate: Thu Oct 24 06:05:31 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414a882f sci-geosciences/osm2pgsql: add 2.0.0 Signed-off-by: Sven Wegener gentoo.org> sci-geosciences/osm2pgsql/Manifest | 1 + sci-geosciences/osm2pgsql/osm2pgsql-2.0.0.ebuild | 51 ++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/sci-geosciences/osm2pgsql/Manifest b/sci-geosciences/osm2pgsql/Manifest index bfae50571f56..608550816edb 100644 --- a/sci-geosciences/osm2pgsql/Manifest +++ b/sci-geosciences/osm2pgsql/Manifest @@ -1 +1,2 @@ DIST osm2pgsql-1.4.0.tar.gz 2429430 BLAKE2B 5d93a159a87c9cb12d85be8b89377f720e0d94564574f70d6f3686b215a99250967655d0eeee3dcda2742fcab356ecf62de2b4bab384d69a641a06829c401388 SHA512 f0eaceb7f78087a58bba3bbfafbb9d6d70aecd4c3ba1cfb0ce784116b52a57c69855c1a7459cce8b963c87955de269ca320cf4a3934b6ff5ad29b7554e07dd9e +DIST osm2pgsql-2.0.0.tar.gz 2712209 BLAKE2B 064bca5796f8ede6f6fb816c8fa3758f066788c8e41c300b4a9cadd8058ca9bed49379a260ee8e5990d7a38061808f7ec78d2895c4964e5546b2ed3862d74239 SHA512 24310f0370fe5e5f87f81f553c61cc24ec80d29054f0679a2d34a3f1d72eacff93ef59611ba0938e552c9faf167f187d7117f5a08f0c0c26f258d95ebee86743 diff --git a/sci-geosciences/osm2pgsql/osm2pgsql-2.0.0.ebuild b/sci-geosciences/osm2pgsql/osm2pgsql-2.0.0.ebuild new file mode 100644 index 000000000000..67bfea565657 --- /dev/null +++ b/sci-geosciences/osm2pgsql/osm2pgsql-2.0.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit cmake lua-single + +DESCRIPTION="Converts OSM planet.osm data to a PostgreSQL/PostGIS database" +HOMEPAGE="https://osm2pgsql.org/" +SRC_URI="https://github.com/openstreetmap/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +COMMON_DEPEND=" + app-arch/bzip2 + dev-db/postgresql:= + dev-libs/expat + sci-libs/proj:= + sys-libs/zlib + ${LUA_DEPS} +" +DEPEND="${COMMON_DEPEND} + dev-cpp/nlohmann_json + dev-libs/boost:= +" +RDEPEND="${COMMON_DEPEND} + dev-db/postgis +" + +# Tries to connect to local postgres server and other shenanigans +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.0-cmake_lua_version.patch +) + +src_configure() { + local mycmakeargs=( + -DWITH_LUAJIT=$(usex lua_single_target_luajit) + # To prevent the "unused variable" QA warning + $(usex !lua_single_target_luajit "-DLUA_VERSION=$(lua_get_version)" "") + -DBUILD_TESTS=OFF + ) + cmake_src_configure +}