x11-misc/x11vnc: Use zeroconf instead of avahi USE flag (#477620)
authorPacho Ramos <pacho@gentoo.org>
Sun, 2 Oct 2016 12:20:54 +0000 (14:20 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 2 Oct 2016 12:37:28 +0000 (14:37 +0200)
Package-Manager: portage-2.3.1

x11-misc/x11vnc/x11vnc-0.9.14.ebuild

index 0829431715788ae15c7466dd72a8b810cc488c91..54e382b27a0ca07318c61e1cf66880eadec7aa3a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -13,7 +13,7 @@ SRC_URI="https://github.com/LibVNC/x11vnc/archive/0.9.14.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE="avahi crypt fbcon libressl ssl xinerama"
+IUSE="crypt fbcon libressl ssl xinerama zeroconf"
 
 RDEPEND=">=net-libs/libvncserver-0.9.8
        x11-libs/libX11
@@ -22,12 +22,13 @@ RDEPEND=">=net-libs/libvncserver-0.9.8
        x11-libs/libXfixes
        x11-libs/libXrandr
        >=x11-libs/libXtst-1.1.0
-       avahi? ( >=net-dns/avahi-0.6.4 )
        ssl? (
                !libressl? ( dev-libs/openssl:0= )
                libressl? ( dev-libs/libressl:= )
        )
-       xinerama? ( x11-libs/libXinerama )"
+       xinerama? ( x11-libs/libXinerama )
+       zeroconf? ( >=net-dns/avahi-0.6.4 )
+"
 DEPEND="${RDEPEND}
        x11-libs/libXt
        x11-proto/inputproto
@@ -46,13 +47,13 @@ src_prepare() {
 src_configure() {
        # --without-v4l because of missing video4linux 2.x support wrt #389079
        econf \
-               $(use_with avahi) \
                $(use_with crypt) \
                $(use_with fbcon fbdev) \
                $(use_with ssl) \
                $(use_with ssl crypto) \
                --without-v4l \
-               $(use_with xinerama)
+               $(use_with xinerama) \
+               $(use_with zeroconf avahi)
 }
 
 src_install() {