Skip to content

Commit 52f5a48

Browse files
gui-apps/organicmaps: fix compilation
Signed-off-by: Vitaly Zdanevich <[email protected]>
1 parent 033aed9 commit 52f5a48

File tree

8 files changed

+94
-69
lines changed

8 files changed

+94
-69
lines changed

dev-cpp/fast_double_parser/Manifest

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST fast_double_parser-0.8.0.tar.gz 637032 BLAKE2B ddd8ca6b86321335bc4fd33dd474a7748968941635ba0448fa8cf8ddad4a97f4a25c0e874ef66351dfb792e0e884e55490fa6e211e855e140149a4d8ca8be7d3 SHA512 41115f3c3b77ad430b0b4a1e622dd2a911ce3283bfd4190b5081f368cd1c371c68cf49789a12a2ed610a91e5b4693fe0b9b0d07876e82cfb0b106a6bc33dedd0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit cmake
7+
8+
DESCRIPTION="Parse strings into double floating-point values"
9+
HOMEPAGE="https://github.com/lemire/fast_double_parser"
10+
11+
if [[ ${PV} == 9999 ]] ; then
12+
inherit git-r3
13+
# the library depends (and fetches) on dev-cpp/abseil-cpp and
14+
# dev-libs/double-conversion but just for its benchmarking code
15+
EGIT_SUBMODULES=()
16+
EGIT_REPO_URI="https://github.com/lemire/fast_double_parser"
17+
else
18+
SRC_URI="https://github.com/lemire/fast_double_parser/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
19+
KEYWORDS="~amd64"
20+
fi
21+
22+
LICENSE="Apache-2.0"
23+
SLOT="0"
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person" proxied="yes">
5+
<email>[email protected]</email>
6+
<name>Vitaly Zdanevich</name>
7+
</maintainer>
8+
<upstream>
9+
<remote-id type="github">lemire/fast_double_parser</remote-id>
10+
</upstream>
11+
</pkgmetadata>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/3party/CMakeLists.txt b/3party/CMakeLists.txt
2+
index d4996e302d..953787945b 100644
3+
--- a/3party/CMakeLists.txt
4+
+++ b/3party/CMakeLists.txt
5+
@@ -41,9 +41,6 @@ if (NOT WITH_SYSTEM_PROVIDED_3PARTY)
6+
# Add pugixml library.
7+
add_subdirectory(pugixml)
8+
9+
- # Add protobuf library.
10+
- add_subdirectory(protobuf)
11+
-
12+
if (NOT PLATFORM_LINUX)
13+
add_subdirectory(freetype)
14+
add_subdirectory(icu)
15+
@@ -55,6 +52,9 @@ if (NOT WITH_SYSTEM_PROVIDED_3PARTY)
16+
target_include_directories(utf8cpp INTERFACE "${OMIM_ROOT}/3party/utfcpp/source")
17+
endif()
18+
19+
+# Add protobuf library.
20+
+add_subdirectory(protobuf)
21+
+
22+
add_subdirectory(agg)
23+
add_subdirectory(bsdiff-courgette)
24+
add_subdirectory(liboauthcpp)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
commit 905b161487865a200ce4a43fb2c1d96ecb38e102
2+
Author: Gerion Entrup <[email protected]>
3+
Date: Thu Apr 25 10:14:41 2024 +0200
4+
5+
CMakeLists: import jansson with pkgconfig
6+
7+
Upstream jansson offers compiling with autotools and CMake.
8+
If it is compiled with autotools (the recommended way) it does only
9+
provide a pkgconfig file and not a cmake file.
10+
This is also the way most distributions provide jansson, so this commit
11+
changes the behavior to use pkgconfig, too.
12+
13+
Signed-off-by: Gerion Entrup <[email protected]>
14+
15+
diff --git a/CMakeLists.txt b/CMakeLists.txt
16+
index 1902f0e618..975a402f8a 100644
17+
--- a/CMakeLists.txt
18+
+++ b/CMakeLists.txt
19+
@@ -320,8 +320,11 @@ if (WITH_SYSTEM_PROVIDED_3PARTY)
20+
set(GFLAGS_USE_TARGET_NAMESPACE ON)
21+
find_package(gflags REQUIRED)
22+
23+
+ find_package(PkgConfig)
24+
+ pkg_check_modules(jansson REQUIRED IMPORTED_TARGET jansson)
25+
+ add_library(jansson::jansson ALIAS PkgConfig::jansson)
26+
+
27+
find_package(expat CONFIG REQUIRED)
28+
- find_package(jansson CONFIG REQUIRED)
29+
find_package(pugixml REQUIRED)
30+
find_package(utf8cpp REQUIRED)
31+
endif()

gui-apps/organicmaps/files/more-3party.patch

-46
This file was deleted.

gui-apps/organicmaps/files/no-dynamic-download.patch

-15
This file was deleted.

gui-apps/organicmaps/organicmaps-9999.ebuild

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Copyright 1999-2023 Gentoo Authors
1+
# Copyright 1999-2025 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

44
EAPI=8
55

6-
PYTHON_COMPAT=( python3_{11..12} )
6+
PYTHON_COMPAT=( python3_{7..13} )
77
inherit git-r3 python-r1 xdg cmake
88
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
99
# this URL is to make the tests compile since organicmaps usually dynamically clones the repo
@@ -29,6 +29,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
2929

3030
# depend on sys-libs/zlib[minizip] when it is not pulled in as subproject anymore
3131
RDEPEND="
32+
>dev-cpp/fast_double_parser-0.7.0
3233
dev-cpp/gflags
3334
dev-db/sqlite
3435
dev-lang/python
@@ -45,7 +46,7 @@ RDEPEND="
4546
"
4647
DEPEND="${RDEPEND}"
4748

48-
PATCHES=( "${FILESDIR}"/more-3party.patch "${FILESDIR}"/no-dynamic-download.patch )
49+
PATCHES=( "${FILESDIR}"/fix-jansson.patch "${FILESDIR}"/fix-3party.patch)
4950

5051
WORLD_FEED_TESTS_S="${WORKDIR}/world_feed_integration_tests_data-${PV}"
5152

@@ -57,11 +58,6 @@ src_unpack () {
5758
}
5859

5960
src_configure() {
60-
# organicmaps wants a ./configure.sh execution.
61-
# However, this setups mainly stuff for Android and XCode builds that we don't need.
62-
# We need just this line here
63-
cp private_default.h private.h || die
64-
6561
CMAKE_BUILD_TYPE="RelWithDebInfo"
6662
local mycmakeargs=(
6763
-DWITH_SYSTEM_PROVIDED_3PARTY=yes

0 commit comments

Comments
 (0)