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/, net-libs/ldns/files/
Date: Fri, 24 Dec 2021 10:57:47
Message-Id: 1640342340.0a36d35cb709c129100be8cf867748d47e6aa934.mschiff@gentoo
1 commit: 0a36d35cb709c129100be8cf867748d47e6aa934
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 22 21:32:51 2021 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 24 10:39:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a36d35c
7
8 net-libs/ldns: add 1.8.1 and clean up ebuild
9
10 Drop USE flags: dane, ecdsa, ed25519, ed448 gost
11 These features are now enabled unconditionally.
12
13 Drop obsolete sed calls and eautoreconf.
14
15 Add patch to fix static libs info in ldns.pc.
16
17 Closes: https://bugs.gentoo.org/829687
18 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
19 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
20
21 net-libs/ldns/Manifest | 1 +
22 net-libs/ldns/files/ldns-1.8.1-pkgconfig.patch | 10 +++
23 net-libs/ldns/ldns-1.8.1.ebuild | 89 ++++++++++++++++++++++++++
24 3 files changed, 100 insertions(+)
25
26 diff --git a/net-libs/ldns/Manifest b/net-libs/ldns/Manifest
27 index a296b9b972ad..fae73226a526 100644
28 --- a/net-libs/ldns/Manifest
29 +++ b/net-libs/ldns/Manifest
30 @@ -1,2 +1,3 @@
31 DIST ldns-1.7.1.tar.gz 1244394 BLAKE2B 8f2d9c6e34c4f13924ce1531a5757c4a619fc31ebc5a0a3d4aaf43fcfc8b53e8f371984b1c60ab74f735a05a9ca0710fc29a40fffeaef66eb54395eb3a727a0d SHA512 e8f72a4ff4aa544acac5e7be9a8ba38c6b8d388bb26f9a0ed04c1a921622f8582cc8539beafc76a29187a55c94069b7c1875e77522e1a7e7bb3e297dd1e4c2b7
32 DIST ldns-1.8.0.tar.gz 1283220 BLAKE2B f916a8c76d788ac7c52aea8bfe675ad4c614a0c6fb011b61f5a27d4a5dc1a2adb33b5c6992b4813b3758c9b7cceab1c77f8c1d66baaa4de993f23888bce69df1 SHA512 54b306160bb7fd76d181f4be0a13134017f6f98ae96e0c954409f31f262e9dbe611c4b76fb6dff47bb6155c652ed8d026b52a50dfcf611e54d9c204b314c4fd6
33 +DIST ldns-1.8.1.tar.gz 1284971 BLAKE2B ae01ef32571fe3996ddd41f911815239abb704ea1dee479fa612bfd701ca369222ab709923f014662248988cb4452a75bc5debad47d2b0386dc59169b353e6a3 SHA512 600f8e221716742caf439a425008827aef1814fc1d9e751f8f492d0235ff45ca48df90abba17979bac9f4485947bb9fe8102924d9cebe6cb56d5b788e1c4bd14
34
35 diff --git a/net-libs/ldns/files/ldns-1.8.1-pkgconfig.patch b/net-libs/ldns/files/ldns-1.8.1-pkgconfig.patch
36 new file mode 100644
37 index 000000000000..7731ff6af7a2
38 --- /dev/null
39 +++ b/net-libs/ldns/files/ldns-1.8.1-pkgconfig.patch
40 @@ -0,0 +1,10 @@
41 +--- a/packaging/libldns.pc.in
42 ++++ b/packaging/libldns.pc.in
43 +@@ -8,6 +8,6 @@
44 + URL: http://www.nlnetlabs.nl/projects/ldns
45 + Version: @PACKAGE_VERSION@
46 + Requires:
47 ++Requires.private: libcrypto libssl
48 + Libs: -L${libdir} -lldns
49 +-Libs.private: @LDFLAGS@
50 + Cflags: -I${includedir}
51
52 diff --git a/net-libs/ldns/ldns-1.8.1.ebuild b/net-libs/ldns/ldns-1.8.1.ebuild
53 new file mode 100644
54 index 000000000000..51026edcbd17
55 --- /dev/null
56 +++ b/net-libs/ldns/ldns-1.8.1.ebuild
57 @@ -0,0 +1,89 @@
58 +# Copyright 1999-2021 Gentoo Authors
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI=8
62 +PYTHON_COMPAT=( python3_{7,8,9,10} )
63 +inherit python-single-r1 multilib-minimal
64 +
65 +DESCRIPTION="a library with the aim to simplify DNS programming in C"
66 +HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
67 +SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
68 +
69 +LICENSE="BSD"
70 +SLOT="0/3"
71 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x64-solaris"
72 +IUSE="doc examples python static-libs vim-syntax"
73 +
74 +REQUIRED_USE="
75 + python? ( ${PYTHON_REQUIRED_USE} )
76 +"
77 +
78 +BDEPEND="
79 + python? ( dev-lang/swig )
80 + doc? ( app-doc/doxygen )
81 +"
82 +DEPEND="
83 + python? ( ${PYTHON_DEPS} )
84 + >=dev-libs/openssl-1.1.1l-r1:0=[${MULTILIB_USEDEP},static-libs?]
85 + examples? ( net-libs/libpcap )
86 +"
87 +RDEPEND="${DEPEND}
88 + !<net-dns/ldns-utils-1.8.0-r2
89 +"
90 +
91 +RESTRICT="test" # missing test directory
92 +
93 +MULTILIB_CHOST_TOOLS=(
94 + /usr/bin/ldns-config
95 +)
96 +
97 +pkg_setup() {
98 + use python && python-single-r1_pkg_setup
99 +}
100 +
101 +src_prepare() {
102 + local PATCHES=(
103 + "${FILESDIR}/ldns-1.8.1-pkgconfig.patch"
104 + )
105 + default
106 +}
107 +
108 +multilib_src_configure() {
109 + ECONF_SOURCE=${S} \
110 + econf \
111 + $(use_enable static-libs static) \
112 + $(multilib_native_use_with python pyldns) \
113 + $(multilib_native_use_with python pyldnsx) \
114 + --with-ssl="${EPREFIX}"/usr \
115 + $(multilib_native_with drill) \
116 + $(multilib_native_use_with examples) \
117 + --disable-rpath
118 +}
119 +
120 +multilib_src_compile() {
121 + default
122 +
123 + if multilib_is_native_abi && use doc ; then
124 + emake doxygen
125 + fi
126 +}
127 +
128 +multilib_src_install() {
129 + default
130 +
131 + if multilib_is_native_abi && use doc ; then
132 + dodoc -r doc/html
133 + fi
134 +}
135 +
136 +multilib_src_install_all() {
137 + dodoc Changelog README*
138 +
139 + find "${D}" -name '*.la' -delete || die
140 + use python && python_optimize
141 +
142 + if use vim-syntax ; then
143 + insinto /usr/share/vim/vimfiles/ftdetect
144 + doins libdns.vim
145 + fi
146 +}