| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.21.1 | 8 | ~amd64 ~ppc ~ppc64 ~x86 | 0 |
# Copyright 1999-2025 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"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/libxml2:2
net-misc/curl
sys-apps/util-linux
virtual/zlib:=
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
sys-devel/bison
sys-devel/flex
test? ( dev-util/cppunit )
"
PATCHES=(
"${FILESDIR}"/${PN}-3.21.1-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
# Needs bison/flex
unset YACC LEX
econf \
--enable-shared \
$(use_enable static-libs static)
}
src_install() {
default
# package provides .pc files
find "${ED}" -name '*.la' -delete || die
}
dev-libs/libxml2:2 net-misc/curl sys-apps/util-linux virtual/zlib:=
dev-libs/libxml2:2 net-misc/curl sys-apps/util-linux virtual/zlib:=
virtual/pkgconfig sys-devel/bison sys-devel/flex test? ( dev-util/cppunit )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | libdap-3.21.1.tar.gz | 2622133 bytes | https://www.opendap.org/pub/source/libdap-3.21.1.tar.gz |