sci-libs/libdap: add 3.21.1

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-23 09:13:34 +01:00
parent c68bb9f75c
commit 3fa68ee09f
3 changed files with 89 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST libdap-3.20.9.tar.gz 2838651 BLAKE2B 84186a73455d8756d0dccaf11554861d48f55a358cc3f70d899d7f24b0b676b0bacdfff47b63c956619717c7fb7f7e3678669599724a2170221a4bc74d8388c2 SHA512 2e360148e5ca3b5c12552ff429b161d8be6905594ae2df98c5b005cd286cb803913b8336371cd07361082749122f7aa5cbc93ff1812ed598908afd0e83df927c
DIST libdap-3.21.1.tar.gz 2622133 BLAKE2B 96fc7bd65793bcda3c63b5329dc55338a838e1a964ddce43153e9dcad045a92b0e5d4e1b57c2c17c6504beaf05f9c70717425e07d8611258f278c03bc50f53e3 SHA512 a03562b536fccc580f4bfc6bc6ae27398171136a058c8e5edb3c7f395aeb5afc8739c9b45d3c82a98e1db6e22c559325f8ac33df29d412776f87aeaf7393c712

View File

@@ -0,0 +1,26 @@
https://src.fedoraproject.org/rpms/libdap/raw/rawhide/f/libdap-offline.patch
https://bugs.gentoo.org/830221
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -122,7 +122,6 @@ $(EXPRTESTSUITE) $(DMRTESTSUITE) $(GETDAPTESTSUITE)
$(SHELL) '$(DDSTESTSUITE)' $(TESTSUITEFLAGS)
$(SHELL) '$(EXPRTESTSUITE)' $(TESTSUITEFLAGS)
$(SHELL) '$(DMRTESTSUITE)' $(TESTSUITEFLAGS)
- $(SHELL) '$(GETDAPTESTSUITE)' $(TESTSUITEFLAGS)
# Make sure there are no spaces after the DASTESTSUITE names. jhrg 3/16/15
# Delete the scripts here and not using CLEANFILES because this target is
--- a/unit-tests/Makefile.am
+++ b/unit-tests/Makefile.am
@@ -85,9 +85,9 @@ D4-xml.tar.gz: D4-xml/DMR_*[0-9].xml
if CPPUNIT
UNIT_TESTS = marshT arrayT attrTableT structT sequenceT ddsT dasT \
RegexTest ArrayTest GridTest AttrTableTest ByteTest MIMEUtilTest ancT DASTest \
- DDSTest DDXParserTest generalUtilTest HTTPConnectTest parserUtilTest \
+ DDSTest DDXParserTest generalUtilTest parserUtilTest \
RCReaderTest SequenceTest SignalHandlerTest MarshallerTest \
- HTTPCacheTest ServerFunctionsListUnitTest Int8Test Int16Test UInt16Test \
+ ServerFunctionsListUnitTest Int8Test Int16Test UInt16Test \
Int32Test UInt32Test Int64Test UInt64Test Float32Test Float64Test \
D4BaseTypeFactoryTest BaseTypeFactoryTest util_mitTest

View File

@@ -0,0 +1,62 @@
# 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 ~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
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
}