summaryrefslogtreecommitdiff
path: root/sci-libs/pdal/pdal-2.3.0.ebuild
blob: 949b5ab43e8b1a116a0122a16518c691d5af4a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

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.gz"

LICENSE="BSD"
SLOT="0/13"
KEYWORDS="~amd64 ~x86"
IUSE="postgres test"
RESTRICT="!test? ( test )"

BDEPEND="
	virtual/pkgconfig
"
DEPEND="
	dev-libs/jsoncpp
	net-misc/curl
	sci-libs/gdal
	sci-libs/libgeotiff
	sci-geosciences/laszip
	sys-libs/libunwind
	sys-libs/zlib
	postgres? ( dev-db/postgresql:*[xml] )
	test? ( sci-libs/gdal[geos,jpeg,png] )
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}"/${P}-fix_cmake_install_location.patch
	"${FILESDIR}"/${P}-upgrade_cmake_min.patch
	"${FILESDIR}"/${P}-fix_tests_for_proj811.patch
)

S="${WORKDIR}/PDAL-${PV}-src"

src_configure() {
	local mycmakeargs=(
		-DBUILD_PLUGIN_PGPOINTCLOUD="$(usex postgres)"
		-DWITH_LAZPERF=OFF
		-DWITH_LASZIP=ON
		-DWITH_COMPLETION=ON
	)

	cmake_src_configure
}

src_test() {
	local myctestargs=(
		--exclude-regex '(pgpointcloudtest|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)'
		--output-on-failure
	)

	cmake_src_test
}