1 |
commit: c3ec8e1563acdc7509d0889be2b027d12a7de9fc |
2 |
Author: Thomas Bettler <thomas.bettler <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 20 09:48:45 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 20 23:08:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ec8e15 |
7 |
|
8 |
sci-libs/pdal: add pdal library |
9 |
|
10 |
to work with point clouds (i.e. in qgis) |
11 |
|
12 |
Bug: https://bugs.gentoo.org/830003 |
13 |
Bug: https://github.com/gentoo/gentoo/pull/23526 |
14 |
Closes: https://bugs.gentoo.org/830002 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/23525 |
16 |
Signed-off-by: Thomas Bettler <thomas.bettler <AT> gmail.com> |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
sci-libs/pdal/Manifest | 1 + |
20 |
.../pdal-2.3.0-fix_cmake_install_location.patch | 17 +++++ |
21 |
.../pdal/files/pdal-2.3.0-upgrade_cmake_min.patch | 77 ++++++++++++++++++++++ |
22 |
sci-libs/pdal/metadata.xml | 19 ++++++ |
23 |
sci-libs/pdal/pdal-2.3.0.ebuild | 48 ++++++++++++++ |
24 |
5 files changed, 162 insertions(+) |
25 |
|
26 |
diff --git a/sci-libs/pdal/Manifest b/sci-libs/pdal/Manifest |
27 |
new file mode 100644 |
28 |
index 000000000000..87d5e450ed54 |
29 |
--- /dev/null |
30 |
+++ b/sci-libs/pdal/Manifest |
31 |
@@ -0,0 +1 @@ |
32 |
+DIST PDAL-2.3.0-src.tar.gz 110530128 BLAKE2B 435997e7ae7fe84ff77d8546e68ce6d32e54a221b5a4bbea45543554355506d7900f65ebb47a4f5333d0f3a44192ffe548178b6b3e8b3b7575d3c104618e288b SHA512 9de87de7370175e76b95d3ec08667eb28b90a63eed8133f144427ff931e575d1f37aa13496f12054577539ee552458475dd054bcbdedfabe52eb0e32c4483d05 |
33 |
|
34 |
diff --git a/sci-libs/pdal/files/pdal-2.3.0-fix_cmake_install_location.patch b/sci-libs/pdal/files/pdal-2.3.0-fix_cmake_install_location.patch |
35 |
new file mode 100644 |
36 |
index 000000000000..65e32100d18d |
37 |
--- /dev/null |
38 |
+++ b/sci-libs/pdal/files/pdal-2.3.0-fix_cmake_install_location.patch |
39 |
@@ -0,0 +1,17 @@ |
40 |
+--- a/cmake/config.cmake.orig 2022-02-19 13:06:41.654048306 +0100 |
41 |
++++ b/cmake/config.cmake 2022-02-19 13:07:21.007165692 +0100 |
42 |
+@@ -6,7 +6,7 @@ |
43 |
+ configure_package_config_file( |
44 |
+ PDALConfig.cmake.in |
45 |
+ ${CMAKE_CURRENT_BINARY_DIR}/PDALConfig.cmake |
46 |
+- INSTALL_DESTINATION ${LIB_INSTALL_DIR}/cmake/PDAL |
47 |
++ INSTALL_DESTINATION ${PDAL_LIB_INSTALL_DIR}/cmake/PDAL |
48 |
+ PATH_VARS INCLUDE_INSTALL_DIR LIB_INSTALL_DIR) |
49 |
+ |
50 |
+ write_basic_package_version_file( |
51 |
+@@ -17,4 +17,4 @@ |
52 |
+ install(FILES |
53 |
+ ${CMAKE_CURRENT_BINARY_DIR}/PDALConfig.cmake |
54 |
+ ${CMAKE_CURRENT_BINARY_DIR}/PDALConfigVersion.cmake |
55 |
+- DESTINATION ${LIB_INSTALL_DIR}/cmake/PDAL) |
56 |
++ DESTINATION ${PDAL_LIB_INSTALL_DIR}/cmake/PDAL) |
57 |
|
58 |
diff --git a/sci-libs/pdal/files/pdal-2.3.0-upgrade_cmake_min.patch b/sci-libs/pdal/files/pdal-2.3.0-upgrade_cmake_min.patch |
59 |
new file mode 100644 |
60 |
index 000000000000..9b712cb0e789 |
61 |
--- /dev/null |
62 |
+++ b/sci-libs/pdal/files/pdal-2.3.0-upgrade_cmake_min.patch |
63 |
@@ -0,0 +1,77 @@ |
64 |
+diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt |
65 |
+index 8dd8845f35..c4b7e37543 100644 |
66 |
+--- a/apps/CMakeLists.txt |
67 |
++++ b/apps/CMakeLists.txt |
68 |
+@@ -3,7 +3,7 @@ |
69 |
+ # |
70 |
+ # (based originally on the libLAS files copyright Mateusz Loskot) |
71 |
+ |
72 |
+-cmake_minimum_required(VERSION 2.8) |
73 |
++cmake_minimum_required(VERSION 3.5) |
74 |
+ |
75 |
+ #------------------------------------------------------------------------------ |
76 |
+ # Configure build targets |
77 |
+diff --git a/cmake/ctest.cmake b/cmake/ctest.cmake |
78 |
+index a8382aaef5..98035205d1 100644 |
79 |
+--- a/cmake/ctest.cmake |
80 |
++++ b/cmake/ctest.cmake |
81 |
+@@ -5,7 +5,7 @@ if(ENABLE_CTEST) |
82 |
+ if (WITH_TESTS) |
83 |
+ message(STATUS |
84 |
+ "Enable CTest to support submissions of results to CDash at http://cdash.org") |
85 |
+- cmake_minimum_required(VERSION 2.8.0) |
86 |
++ cmake_minimum_required(VERSION 3.5.0) |
87 |
+ # |
88 |
+ # Dashboard has been prepared for experiments |
89 |
+ # http://my.cdash.org/index.php?project=PDAL |
90 |
+diff --git a/dimbuilder/CMakeLists.txt b/dimbuilder/CMakeLists.txt |
91 |
+index 09d334f1f8..9aa9742f63 100644 |
92 |
+--- a/dimbuilder/CMakeLists.txt |
93 |
++++ b/dimbuilder/CMakeLists.txt |
94 |
+@@ -2,7 +2,7 @@ |
95 |
+ # The seemingly strange arrangement of this cmake file allows you to build |
96 |
+ # this application as a standalone. |
97 |
+ # |
98 |
+-cmake_minimum_required(VERSION 2.8.6) |
99 |
++cmake_minimum_required(VERSION 3.5) |
100 |
+ |
101 |
+ set(MAKE_COLOR_MAKEFILE ON) |
102 |
+ |
103 |
+diff --git a/plugins/rdb/CMakeLists.txt b/plugins/rdb/CMakeLists.txt |
104 |
+index 2ec0adcf92..2e8ae422de 100644 |
105 |
+--- a/plugins/rdb/CMakeLists.txt |
106 |
++++ b/plugins/rdb/CMakeLists.txt |
107 |
+@@ -1,6 +1,6 @@ |
108 |
+ |
109 |
+ if (STANDALONE) |
110 |
+-cmake_minimum_required(VERSION 3.1) |
111 |
++cmake_minimum_required(VERSION 3.5) |
112 |
+ set(ROOT_DIR "../../${PROJECT_SOURCE_DIR}") |
113 |
+ include(../../cmake/common.cmake NO_POLICY_SCOPE) |
114 |
+ include(FeatureSummary) |
115 |
+diff --git a/tools/lasdump/CMakeLists.txt b/tools/lasdump/CMakeLists.txt |
116 |
+index 8083a228d8..767d642e76 100644 |
117 |
+--- a/tools/lasdump/CMakeLists.txt |
118 |
++++ b/tools/lasdump/CMakeLists.txt |
119 |
+@@ -2,7 +2,7 @@ |
120 |
+ # The seemingly strange arrangement of this cmake file allows you to build |
121 |
+ # lasdump as a standalone. |
122 |
+ # |
123 |
+-cmake_minimum_required(VERSION 2.8.6) |
124 |
++cmake_minimum_required(VERSION 3.5) |
125 |
+ |
126 |
+ set(MAKE_COLOR_MAKEFILE ON) |
127 |
+ |
128 |
+diff --git a/vendor/gtest/CMakeLists.txt b/vendor/gtest/CMakeLists.txt |
129 |
+index db292946a5..e41e59761e 100644 |
130 |
+--- a/vendor/gtest/CMakeLists.txt |
131 |
++++ b/vendor/gtest/CMakeLists.txt |
132 |
+@@ -53,7 +53,7 @@ else() |
133 |
+ cmake_policy(SET CMP0048 NEW) |
134 |
+ project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C) |
135 |
+ endif() |
136 |
+-cmake_minimum_required(VERSION 2.6.4) |
137 |
++cmake_minimum_required(VERSION 3.5) |
138 |
+ |
139 |
+ if (POLICY CMP0063) # Visibility |
140 |
+ cmake_policy(SET CMP0063 NEW) |
141 |
|
142 |
diff --git a/sci-libs/pdal/metadata.xml b/sci-libs/pdal/metadata.xml |
143 |
new file mode 100644 |
144 |
index 000000000000..3be37e190bd4 |
145 |
--- /dev/null |
146 |
+++ b/sci-libs/pdal/metadata.xml |
147 |
@@ -0,0 +1,19 @@ |
148 |
+<?xml version="1.0" encoding="UTF-8"?> |
149 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
150 |
+<pkgmetadata> |
151 |
+ <maintainer type="project"> |
152 |
+ <email>sci-geosciences@g.o</email> |
153 |
+ <name>Gentoo Geosciences Project</name> |
154 |
+ </maintainer> |
155 |
+ <maintainer type="person"> |
156 |
+ <email>thomas.bettler@×××××.com</email> |
157 |
+ <name>Thomas Bettler</name> |
158 |
+ </maintainer> |
159 |
+ <longdescription> |
160 |
+ PDAL is a C++ library for translating and manipulating point cloud data. |
161 |
+ It is very much like the GDAL library which handles raster and vector data. |
162 |
+ </longdescription> |
163 |
+ <upstream> |
164 |
+ <remote-id type="github">PDAL/PDAL</remote-id> |
165 |
+ </upstream> |
166 |
+</pkgmetadata> |
167 |
|
168 |
diff --git a/sci-libs/pdal/pdal-2.3.0.ebuild b/sci-libs/pdal/pdal-2.3.0.ebuild |
169 |
new file mode 100644 |
170 |
index 000000000000..ee1182834970 |
171 |
--- /dev/null |
172 |
+++ b/sci-libs/pdal/pdal-2.3.0.ebuild |
173 |
@@ -0,0 +1,48 @@ |
174 |
+# Copyright 2021 Gentoo Authors |
175 |
+# Distributed under the terms of the GNU General Public License v2 |
176 |
+ |
177 |
+EAPI=8 |
178 |
+ |
179 |
+inherit cmake |
180 |
+ |
181 |
+DESCRIPTION="A C++ library for translating and manipulating point cloud data" |
182 |
+HOMEPAGE="https://pdal.io/" |
183 |
+SRC_URI="https://github.com/PDAL/PDAL/releases/download/${PV}/PDAL-${PV}-src.tar.gz" |
184 |
+ |
185 |
+LICENSE="BSD" |
186 |
+SLOT="0/13" |
187 |
+KEYWORDS="~amd64 ~x86" |
188 |
+IUSE="postgres" |
189 |
+ |
190 |
+BDEPEND=" |
191 |
+ virtual/pkgconfig |
192 |
+" |
193 |
+DEPEND=" |
194 |
+ dev-libs/jsoncpp |
195 |
+ net-misc/curl |
196 |
+ sci-libs/gdal |
197 |
+ sci-libs/libgeotiff |
198 |
+ sci-geosciences/laszip |
199 |
+ sys-libs/libunwind |
200 |
+ sys-libs/zlib |
201 |
+ postgres? ( dev-db/postgresql:*[xml] ) |
202 |
+" |
203 |
+RDEPEND="${DEPEND}" |
204 |
+ |
205 |
+PATCHES=( |
206 |
+ ${FILESDIR}/${P}-fix_cmake_install_location.patch |
207 |
+ ${FILESDIR}/${P}-upgrade_cmake_min.patch |
208 |
+) |
209 |
+ |
210 |
+S="${WORKDIR}/PDAL-${PV}-src" |
211 |
+ |
212 |
+src_configure() { |
213 |
+ local mycmakeargs=( |
214 |
+ -DBUILD_PLUGIN_PGPOINTCLOUD="$(usex postgres)" |
215 |
+ -DWITH_LAZPERF=OFF |
216 |
+ -DWITH_LASZIP=ON |
217 |
+ -DWITH_COMPLETION=ON |
218 |
+ ) |
219 |
+ |
220 |
+ cmake_src_configure |
221 |
+} |