summaryrefslogtreecommitdiff
path: root/sci-libs/libdap/libdap-3.20.9.ebuild
blob: 1692827e92de4aa2e5c01eee1194aa7ddc64f1f5 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools flag-o-matic

DESCRIPTION="Implementation of a C++ SDK for DAP 2.0 and 3.2"
HOMEPAGE="https://www.opendap.org"
SRC_URI="https://www.opendap.org/pub/source/${P}.tar.gz"

LICENSE="|| ( LGPL-2.1 URI )"
SLOT="0"
KEYWORDS="amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE="static-libs test"
RESTRICT="!test? ( test )"

RDEPEND="
	dev-libs/libxml2:2
	net-misc/curl
	sys-apps/util-linux
	sys-libs/zlib"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig
	app-alternatives/lex
	test? ( dev-util/cppunit )"

PATCHES=(
	"${FILESDIR}"/${PN}-3.20.9-disable-net-tests.patch
)

src_prepare() {
	default

	eautoreconf
}

src_configure() {
	# -Werror=lto, -Werror=strict-aliasing
	# https://bugs.gentoo.org/878895
	# https://github.com/OPENDAP/libdap4/issues/244
	append-flags -fno-strict-aliasing
	filter-lto

	# bug 619144
	append-cxxflags -std=c++14

	econf \
		--enable-shared \
		$(use_enable static-libs static)
}

src_install() {
	default

	# package provides .pc files
	find "${ED}" -name '*.la' -delete || die
}