Сравнение osm2pgsql-1.4.0-r100 с osm2pgsql-2.0.0
/usr/portage/sci-geosciences/osm2pgsql/osm2pgsql-2.0.0.ebuild 2024-12-25 14:59:52.703270181 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
1 |
# Copyright 1999-2024 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=7 |
... | ... | |
14 | 14 |
LICENSE="GPL-2" |
15 | 15 |
SLOT="0" |
16 | 16 |
KEYWORDS="amd64 ~x86" |
17 |
IUSE="+lua" |
|
18 |
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" |
|
17 |
IUSE="" |
|
18 |
REQUIRED_USE="${LUA_REQUIRED_USE}" |
|
19 | 19 | |
20 | 20 |
COMMON_DEPEND=" |
21 | 21 |
app-arch/bzip2 |
... | ... | |
23 | 23 |
dev-libs/expat |
24 | 24 |
sci-libs/proj:= |
25 | 25 |
sys-libs/zlib |
26 |
lua? ( ${LUA_DEPS} ) |
|
26 |
${LUA_DEPS} |
|
27 | 27 |
" |
28 | 28 |
DEPEND="${COMMON_DEPEND} |
29 |
dev-cpp/nlohmann_json |
|
29 | 30 |
dev-libs/boost:= |
30 | 31 |
" |
31 | 32 |
RDEPEND="${COMMON_DEPEND} |
... | ... | |
36 | 37 |
RESTRICT="test" |
37 | 38 | |
38 | 39 |
PATCHES=( |
39 |
"${FILESDIR}"/${PN}-1.4.0-cmake_lua_version.patch |
|
40 |
"${FILESDIR}"/${PN}-2.0.0-cmake_lua_version.patch |
|
40 | 41 |
) |
41 | 42 | |
42 | 43 |
src_configure() { |
43 |
# Setting WITH_LUAJIT without "if use lua" guard is safe, upstream |
|
44 |
# CMakeLists.txt only evaluates it if WITH_LUA is true. |
|
45 | 44 |
local mycmakeargs=( |
46 |
-DWITH_LUA=$(usex lua) |
|
47 | 45 |
-DWITH_LUAJIT=$(usex lua_single_target_luajit) |
46 |
# To prevent the "unused variable" QA warning |
|
47 |
$(usex !lua_single_target_luajit "-DLUA_VERSION=$(lua_get_version)" "") |
|
48 | 48 |
-DBUILD_TESTS=OFF |
49 | 49 |
) |
50 |
# To prevent the "unused variable" QA warning |
|
51 |
if use lua && ! use lua_single_target_luajit; then |
|
52 |
mycmakeargs+=( -DLUA_VERSION="$(lua_get_version)" ) |
|
53 |
fi |
|
54 | 50 |
cmake_src_configure |
55 | 51 |
} |