gentoo-ebuilds/sci-libs/pdal/pdal-2.9.2.ebuild
Michał Górny 6a3644bf2f
*/*: Add := to virtual/zlib deps, part 1
Done via:

```
git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@'
```

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 10:36:27 +01:00

58 lines
1.3 KiB
Bash

# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="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/19"
KEYWORDS="amd64 ~arm ~arm64 ~x86"
IUSE="debug postgres test"
RESTRICT="!test? ( test )"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
"
RDEPEND="
app-arch/zstd:=
dev-libs/libxml2:=
dev-libs/openssl:=
net-misc/curl
sci-libs/gdal:=
>=sci-libs/libgeotiff-1.7.0:=
virtual/zlib:=
debug? ( sys-libs/libunwind:= )
postgres? ( dev-db/postgresql:*[xml] )
"
DEPEND="
${RDEPEND}
test? ( sci-libs/gdal[geos,jpeg(+),png,sqlite] )
"
src_configure() {
local mycmakeargs=(
-DBUILD_PLUGIN_PGPOINTCLOUD="$(usex postgres)"
-DWITH_COMPLETION=ON
-DWITH_BACKTRACE="$(usex debug)"
-DWITH_TESTS="$(usex test)"
)
cmake_src_configure
}
src_test() {
local myctestargs=(
--exclude-regex '(pgpointcloudtest|pdal_info_test|pdal_io_bpf_base_test|pdal_io_bpf_zlib_test|pdal_io_copc_reader_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
}