net-dns/knot: add libidn2 USE flag
authorPierre-Olivier Mercier <nemunaire@nemunai.re>
Tue, 22 Aug 2017 06:06:56 +0000 (08:06 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 22 Aug 2017 09:07:06 +0000 (11:07 +0200)
Closes: https://github.com/gentoo/gentoo/pull/5405

net-dns/knot/knot-2.5.3-r1.ebuild
net-dns/knot/metadata.xml

index 82772faaabbcc0056a7477c94aa324a3b359e26a..1c8e08233e898647167313fbd338d23926564e17 100644 (file)
@@ -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 )
 "
index 35d8e8065306780c7cdb29a8493c24f11ce7c7fa..9245494df34e34d29f982d4dd1e9e06ab1c776b9 100644 (file)
                        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