commit:     83cb9b90c828335667b6fa8440422415d19b6dd9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  5 03:00:40 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan  5 03:09:38 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83cb9b90

net-libs/ldns: add 1.9.0

Bug: https://bugs.gentoo.org/879911
Closes: https://bugs.gentoo.org/931592
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/ldns/Manifest          |  1 +
 net-libs/ldns/ldns-1.9.0.ebuild | 92 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 93 insertions(+)

diff --git a/net-libs/ldns/Manifest b/net-libs/ldns/Manifest
index 64862969c2c7..271d8ee356c0 100644
--- a/net-libs/ldns/Manifest
+++ b/net-libs/ldns/Manifest
@@ -1 +1,2 @@
 DIST ldns-1.8.4.tar.gz 1301058 BLAKE2B 
26003c816c380a58c441f70cb2ea37b7e1402383bc35fbaceae1668af5f591f4cdd04e9ef90655a87ef2ec505a06c1d5c802ed2a80414464ef2e89f4349b995c
 SHA512 
3ee26289bfe587fb19b7441412917d7f7197e385cc1329847c1ae707650709a1ccef7d4a645bd85da89effad95715ec868ef312e5f336d3fe2e408e8109439fc
+DIST ldns-1.9.0.tar.gz 1305262 BLAKE2B 
2079fc2f7b4bf244038bbb94edcced98d5a12272df726c016d94ce9c7f8daabab3c7f4cf1c18355f4572995150a5d5876122086fab5e8704b2c225b211d7a511
 SHA512 
8b2a40e5e512ef1100240b765d4a6bb183a8f13a27436c42c5e1a9d6a4de71434900216ea339a717f791f5329f9ef64d0f4794b582decbd2a314ef4ca3a1171c

diff --git a/net-libs/ldns/ldns-1.9.0.ebuild b/net-libs/ldns/ldns-1.9.0.ebuild
new file mode 100644
index 000000000000..6238af780b78
--- /dev/null
+++ b/net-libs/ldns/ldns-1.9.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+inherit python-single-r1 multilib-minimal
+
+DESCRIPTION="Library that aims to simplify DNS programming in C"
+HOMEPAGE="https://www.nlnetlabs.nl/projects/ldns/about/";
+SRC_URI="https://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="doc examples python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="test" # missing test directory
+
+BDEPEND="
+       doc? ( app-text/doxygen )
+       python? (
+               ${PYTHON_DEPS}
+               dev-lang/swig
+               $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
+       )
+"
+DEPEND="
+       >=dev-libs/openssl-1.1.1l-r1:=[${MULTILIB_USEDEP},static-libs?]
+       examples? ( net-libs/libpcap )
+       python? ( ${PYTHON_DEPS} )
+"
+RDEPEND="
+       ${DEPEND}
+"
+
+# False positive, always fails, bug #898658
+QA_CONFIG_IMPL_DECL_SKIP+=(
+       ioctlsocket
+)
+
+MULTILIB_CHOST_TOOLS=(
+       /usr/bin/ldns-config
+)
+
+PATCHES=(
+       "${FILESDIR}/ldns-1.8.1-pkgconfig.patch"
+)
+
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
+multilib_src_configure() {
+       local myeconfargs=(
+               $(use_enable static-libs static)
+               $(multilib_native_use_with python pyldns)
+               $(multilib_native_use_with python pyldnsx)
+               --with-ssl="${EPREFIX}"/usr
+               $(multilib_native_with drill)
+               $(multilib_native_use_with examples)
+               --disable-rpath
+       )
+
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+       default
+
+       if multilib_is_native_abi && use doc ; then
+               emake doxygen
+       fi
+}
+
+multilib_src_install() {
+       default
+
+       if multilib_is_native_abi && use doc ; then
+               dodoc -r doc/html
+       fi
+}
+
+multilib_src_install_all() {
+       dodoc Changelog README*
+
+       find "${D}" -name '*.la' -delete || die
+       use python && python_optimize
+
+       insinto /usr/share/vim/vimfiles/ftdetect
+       doins libdns.vim
+}

Reply via email to