diff options
author | Sven Wegener <swegener@gentoo.org> | 2024-10-24 08:05:21 +0200 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2024-10-24 08:05:31 +0200 |
commit | 414a882f2947ac2111cb50e5f1dc3bd7b025f2d1 (patch) | |
tree | 563a071cb28ad0878e97917a5ae58eaf2d43b731 /sci-geosciences | |
parent | sci-geosciences/osm2pgsql: update lua version patch for live ebuild (diff) | |
download | gentoo-414a882f2947ac2111cb50e5f1dc3bd7b025f2d1.tar.gz gentoo-414a882f2947ac2111cb50e5f1dc3bd7b025f2d1.tar.bz2 gentoo-414a882f2947ac2111cb50e5f1dc3bd7b025f2d1.zip |
sci-geosciences/osm2pgsql: add 2.0.0
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r-- | sci-geosciences/osm2pgsql/Manifest | 1 | ||||
-rw-r--r-- | sci-geosciences/osm2pgsql/osm2pgsql-2.0.0.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
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 +} |