Gentoo Archives: gentoo-commits

From: Marc Schiffbauer <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/ldns/
Date: Wed, 01 Mar 2023 18:49:24
Message-Id: 1677696549.5484ef531559e140fb261d20f5b3c224c7a4604c.mschiff@gentoo
1 commit: 5484ef531559e140fb261d20f5b3c224c7a4604c
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 1 18:48:42 2023 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 18:49:09 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5484ef53
7
8 net-libs/ldns: support python3.11
9
10 Closes: https://bugs.gentoo.org/897104
11 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
12
13 net-libs/ldns/ldns-1.8.3-r1.ebuild | 90 ++++++++++++++++++++++++++++++++++++++
14 1 file changed, 90 insertions(+)
15
16 diff --git a/net-libs/ldns/ldns-1.8.3-r1.ebuild b/net-libs/ldns/ldns-1.8.3-r1.ebuild
17 new file mode 100644
18 index 000000000000..b6b2d28818e4
19 --- /dev/null
20 +++ b/net-libs/ldns/ldns-1.8.3-r1.ebuild
21 @@ -0,0 +1,90 @@
22 +# Copyright 1999-2023 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +PYTHON_COMPAT=( python3_{9..11} )
28 +inherit autotools python-single-r1 multilib-minimal
29 +
30 +DESCRIPTION="A library with the aim to simplify DNS programming in C"
31 +HOMEPAGE="https://www.nlnetlabs.nl/projects/ldns/"
32 +SRC_URI="https://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0/3"
36 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x64-solaris"
37 +IUSE="doc examples python static-libs"
38 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
39 +RESTRICT="test" # missing test directory
40 +
41 +BDEPEND="
42 + python? ( dev-lang/swig )
43 + doc? ( app-doc/doxygen )
44 +"
45 +DEPEND="
46 + python? ( ${PYTHON_DEPS} )
47 + >=dev-libs/openssl-1.1.1l-r1:0=[${MULTILIB_USEDEP},static-libs?]
48 + examples? ( net-libs/libpcap )
49 +"
50 +RDEPEND="
51 + ${DEPEND}
52 + !<net-dns/ldns-utils-1.8.0-r2
53 +"
54 +
55 +MULTILIB_CHOST_TOOLS=(
56 + /usr/bin/ldns-config
57 +)
58 +
59 +PATCHES=(
60 + "${FILESDIR}/ldns-1.8.1-pkgconfig.patch"
61 + "${FILESDIR}/${P}-docs.patch"
62 + "${FILESDIR}/${P}-configure-strict.patch"
63 +)
64 +
65 +pkg_setup() {
66 + use python && python-single-r1_pkg_setup
67 +}
68 +
69 +src_prepare() {
70 + default
71 +
72 + # Drop after 1.8.3
73 + eautoreconf
74 +}
75 +
76 +multilib_src_configure() {
77 + ECONF_SOURCE="${S}" econf \
78 + $(use_enable static-libs static) \
79 + $(multilib_native_use_with python pyldns) \
80 + $(multilib_native_use_with python pyldnsx) \
81 + --with-ssl="${EPREFIX}"/usr \
82 + $(multilib_native_with drill) \
83 + $(multilib_native_use_with examples) \
84 + --disable-rpath
85 +}
86 +
87 +multilib_src_compile() {
88 + default
89 +
90 + if multilib_is_native_abi && use doc ; then
91 + emake doxygen
92 + fi
93 +}
94 +
95 +multilib_src_install() {
96 + default
97 +
98 + if multilib_is_native_abi && use doc ; then
99 + dodoc -r doc/html
100 + fi
101 +}
102 +
103 +multilib_src_install_all() {
104 + dodoc Changelog README*
105 +
106 + find "${D}" -name '*.la' -delete || die
107 + use python && python_optimize
108 +
109 + insinto /usr/share/vim/vimfiles/ftdetect
110 + doins libdns.vim
111 +}