commit:     13770b8af63f1776a11d8da91a7f551bd7874f27
Author:     Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
AuthorDate: Tue Aug 22 06:06:56 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 22 09:07:06 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13770b8a

net-dns/knot: add libidn2 USE flag

Closes: https://github.com/gentoo/gentoo/pull/5405

 net-dns/knot/knot-2.5.3-r1.ebuild | 7 +++++--
 net-dns/knot/metadata.xml         | 4 ++++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/net-dns/knot/knot-2.5.3-r1.ebuild 
b/net-dns/knot/knot-2.5.3-r1.ebuild
index 82772faaabb..1c8e08233e8 100644
--- a/net-dns/knot/knot-2.5.3-r1.ebuild
+++ b/net-dns/knot/knot-2.5.3-r1.ebuild
@@ -24,7 +24,7 @@ KNOT_MODULES=(
        "+synthrecord"
        "+whoami"
 )
-IUSE="doc caps +fastparser idn systemd +utils ${KNOT_MODULES[@]}"
+IUSE="doc caps +fastparser idn libidn2 systemd +utils ${KNOT_MODULES[@]}"
 
 RDEPEND="
        >=net-libs/gnutls-3.3:=
@@ -36,7 +36,10 @@ RDEPEND="
                dev-libs/fstrm
                dev-libs/protobuf-c
        )
-       idn? ( || ( net-dns/libidn >=net-dns/libidn2-2.0.0 ) )
+       idn? (
+               !libidn2? ( net-dns/libidn )
+               libidn2? ( >=net-dns/libidn2-2.0.0 )
+       )
        dev-libs/libedit
        systemd? ( >=sys-apps/systemd-229 )
 "

diff --git a/net-dns/knot/metadata.xml b/net-dns/knot/metadata.xml
index 35d8e806530..9245494df34 100644
--- a/net-dns/knot/metadata.xml
+++ b/net-dns/knot/metadata.xml
@@ -21,6 +21,10 @@
                        Use a zone file parser that is faster, but requires
                        more memory and CPU time to compile
                </flag>
+               <flag name="libidn2">
+                       If IDN support is enabled, use net-dns/libidn2 instead
+                       of net-dns/libidn
+               </flag>
                <flag name="noudp">
                        Enable the module which can send empty truncated
                        responses to UDP queries

Reply via email to