Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/geos/files/, sci-libs/geos/
Date: Fri, 17 Mar 2023 03:20:03
Message-Id: 1679023141.2f7dad5c2882013ab855c0c65db529904dd4c0c7.sam@gentoo
1 commit: 2f7dad5c2882013ab855c0c65db529904dd4c0c7
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 17 03:19:01 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 17 03:19:01 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f7dad5c
7
8 sci-libs/geos: add 3.11.2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sci-libs/geos/Manifest | 1 +
13 sci-libs/geos/files/geos-3.11.2-gcc-13.patch | 38 +++++++++++++++++++++
14 sci-libs/geos/geos-3.11.2.ebuild | 50 ++++++++++++++++++++++++++++
15 3 files changed, 89 insertions(+)
16
17 diff --git a/sci-libs/geos/Manifest b/sci-libs/geos/Manifest
18 index e090e325a34b..42022eecc40f 100644
19 --- a/sci-libs/geos/Manifest
20 +++ b/sci-libs/geos/Manifest
21 @@ -1,2 +1,3 @@
22 DIST geos-3.11.0.tar.bz2 6727294 BLAKE2B 7d2cb7ae2dc6c5eb13836c16c8164402c1e964f98df95d5aaf9f6fd957ebcdbdefb43ae4fb17a5a671b6dfdb812bdacfdbfdfdea6e5bd44f135e3701a3cc914d SHA512 40c7553bbb93673c231ddd0131b73bf43b3f50524bc5bd9e6934c068d2c09632f388b7429254ae15d9641da2d15e3a626b430438854e98d9e7419ad04e535189
23 DIST geos-3.11.1.tar.bz2 6753232 BLAKE2B 376050ca3224e5220f69d82ff62d79ff7ea3d35d5fe90b7ab4e0cabcb4200b47d7569110538c201df9cb28da784f09f8207a9a8233ee002ab2ec87f5cf336ba1 SHA512 708500aba9b04208ee46a531d55ddf63a213dfaa2922dae937b524300b2b46c95143ed6cd3ff1414e9099f2be95e5df5a2e0b49df43acf93a9478215259f20d3
24 +DIST geos-3.11.2.tar.bz2 6774288 BLAKE2B 62ddcaf5b6716983d49a6931c97ebe8d4c457ce7d127531ff3ff985555e9dfc2f1ebd211d1fe7afe183a3858913b4c22ec4674f68fb28ee8c43c9e9ce61abd3b SHA512 b5df5b773bef595335e1be6c6d3325f932f1577e2a4b8bdfa8cf26f09c7d41ed5e0695ca15826d1f95bc4a45b777839c2be8a96a8af5415c8bcf58cc804eb1ec
25
26 diff --git a/sci-libs/geos/files/geos-3.11.2-gcc-13.patch b/sci-libs/geos/files/geos-3.11.2-gcc-13.patch
27 new file mode 100644
28 index 000000000000..fa46cf8bf4d2
29 --- /dev/null
30 +++ b/sci-libs/geos/files/geos-3.11.2-gcc-13.patch
31 @@ -0,0 +1,38 @@
32 +https://github.com/libgeos/geos/commit/bea3188be44075034fd349f5bb117c943bdb7fb1
33 +
34 +From bea3188be44075034fd349f5bb117c943bdb7fb1 Mon Sep 17 00:00:00 2001
35 +From: Heiko Becker <mail@××××××××××××.de>
36 +Date: Mon, 23 Jan 2023 15:56:11 +0100
37 +Subject: [PATCH] Fix build with gcc 13 by including <cstdint> (#805)
38 +
39 +In addition to [1]. Otherwise geos fails to build with:
40 +"geos-3.11.1/include/geos/shape/fractal/HilbertEncoder.h:40:28: error: expected ')' before 'p_level'
41 + 40 | HilbertEncoder(uint32_t p_level, geom::Envelope& extent);
42 + | ~ ^~~~~~~~
43 + | )
44 +/var/tmp/paludis/build/sci-libs-geos-3.11.1/work/geos-3.11.1/include/geos/shape/fractal/HilbertEncoder.h:41:5: error: 'uint32_t' does not name a type
45 + 41 | uint32_t encode(const geom::Envelope* env);
46 + | ^~~~~~~~"
47 +
48 +[1] 0e8d4368b8bd72a7d361286e8523ebce5cff6146
49 +--- a/include/geos/shape/fractal/HilbertEncoder.h
50 ++++ b/include/geos/shape/fractal/HilbertEncoder.h
51 +@@ -19,6 +19,7 @@
52 + #include <geos/geom/Geometry.h>
53 + #include <string>
54 + #include <vector>
55 ++#include <cstdint>
56 +
57 + // Forward declarations
58 + namespace geos {
59 +--- a/tests/unit/capi/GEOSMakeValidTest.cpp
60 ++++ b/tests/unit/capi/GEOSMakeValidTest.cpp
61 +@@ -9,6 +9,7 @@
62 + #include <cstdlib>
63 + #include <cmath>
64 + #include <cstring>
65 ++#include <cstdint>
66 +
67 + #include "capi_test_utils.h"
68 +
69 +
70
71 diff --git a/sci-libs/geos/geos-3.11.2.ebuild b/sci-libs/geos/geos-3.11.2.ebuild
72 new file mode 100644
73 index 000000000000..9aa1b4eecd40
74 --- /dev/null
75 +++ b/sci-libs/geos/geos-3.11.2.ebuild
76 @@ -0,0 +1,50 @@
77 +# Copyright 1999-2023 Gentoo Authors
78 +# Distributed under the terms of the GNU General Public License v2
79 +
80 +EAPI=8
81 +
82 +inherit cmake
83 +
84 +DESCRIPTION="Geometry engine library for Geographic Information Systems"
85 +HOMEPAGE="https://libgeos.org/"
86 +SRC_URI="https://download.osgeo.org/geos/${P}.tar.bz2"
87 +
88 +LICENSE="LGPL-2.1"
89 +SLOT="0"
90 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
91 +IUSE="doc test"
92 +RESTRICT="!test? ( test )"
93 +
94 +BDEPEND="doc? ( app-doc/doxygen )"
95 +
96 +PATCHES=(
97 + "${FILESDIR}"/${P}-gcc-13.patch
98 +)
99 +
100 +src_configure() {
101 + local mycmakeargs=(
102 + -DBUILD_DOCUMENTATION=$(usex doc)
103 + -DBUILD_TESTING=$(usex test)
104 + -DUSE_CCACHE=OFF
105 +
106 + # bug #709368
107 + $(usev arm '-DDISABLE_GEOS_INLINE=ON')
108 + )
109 +
110 + cmake_src_configure
111 +}
112 +
113 +src_compile() {
114 + cmake_src_compile
115 +
116 + use doc && cmake_src_compile docs
117 +}
118 +
119 +src_install() {
120 + cmake_src_install
121 +
122 + if use doc ; then
123 + HTML_DOCS=( "${BUILD_DIR}"/doxygen/doxygen_docs/html/. )
124 + einstalldocs
125 + fi
126 +}