summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bettler <thomas.bettler@gmail.com>2024-11-04 17:21:03 +0100
committerSam James <sam@gentoo.org>2024-11-11 22:39:01 +0000
commit9015bb68ace477338299e410925bda10c0a490c4 (patch)
tree69dfd99b04e6f884a8b16ae8d856c09cd621bddd /sci-libs/pdal/pdal-2.8.1.ebuild
parentsci-libs/gdal: simplify lerc dep (diff)
downloadgentoo-9015bb68ace477338299e410925bda10c0a490c4.tar.gz
gentoo-9015bb68ace477338299e410925bda10c0a490c4.tar.bz2
gentoo-9015bb68ace477338299e410925bda10c0a490c4.zip
sci-libs/pdal: bump to v2.8.1
Closes: https://bugs.gentoo.org/937770 Signed-off-by: Thomas Bettler <thomas.bettler@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39201 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/pdal/pdal-2.8.1.ebuild')
-rw-r--r--sci-libs/pdal/pdal-2.8.1.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/sci-libs/pdal/pdal-2.8.1.ebuild b/sci-libs/pdal/pdal-2.8.1.ebuild
new file mode 100644
index 000000000000..f18bb365d8a9
--- /dev/null
+++ b/sci-libs/pdal/pdal-2.8.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="A C++ library for translating and manipulating point cloud data"
+HOMEPAGE="https://pdal.io/"
+SRC_URI="https://github.com/PDAL/PDAL/releases/download/${PV}/PDAL-${PV}-src.tar.bz2"
+S="${WORKDIR}/PDAL-${PV}-src"
+
+LICENSE="BSD"
+SLOT="0/18"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="debug postgres test"
+
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+RDEPEND="
+ net-misc/curl
+ app-arch/zstd:=
+ dev-libs/libxml2
+ dev-libs/openssl:=
+ sci-libs/gdal:=
+ sci-libs/libgeotiff:=
+ sys-libs/zlib
+ debug? ( sys-libs/libunwind:= )
+ postgres? ( dev-db/postgresql:*[xml] )
+"
+
+DEPEND="
+ test? ( sci-libs/gdal[geos,jpeg,png] )
+ ${RDEPEND}
+"
+
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/862915
+ # https://github.com/PDAL/PDAL/issues/3836
+ #
+ # only occurs inside unwind support
+ if use debug; then
+ append-flags -fno-strict-aliasing
+ filter-lto
+ fi
+
+ local mycmakeargs=(
+ -DBUILD_PLUGIN_PGPOINTCLOUD="$(usex postgres)"
+ -DWITH_COMPLETION=ON
+ -DWITH_BACKTRACE="$(usex debug)"
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ local myctestargs=(
+ --exclude-regex '(pgpointcloudtest|pdal_info_test|pdal_io_bpf_base_test|pdal_io_bpf_zlib_test|pdal_filters_overlay_test|pdal_filters_stats_test|pdal_app_plugin_test|pdal_merge_test|pdal_io_stac_reader_test)'
+ --output-on-failure
+ -j1
+ )
+
+ cmake_src_test
+}