--- kdelibs-3.5.2-r4.ebuild 2006-04-24 00:33:32.000000000 -0600 +++ kdelibs-3.5.2-r5.ebuild 2006-04-24 00:34:35.000000000 -0600 @@ -12,7 +12,7 @@ LICENSE="GPL-2 LGPL-2" SLOT="3.5" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="acl alsa arts cups doc jpeg2k kerberos openexr spell ssl tiff zeroconf" +IUSE="acl alsa arts avahi cups doc jpeg2k kerberos openexr spell ssl tiff zeroconf" # kde.eclass has kdelibs in DEPEND, and we can't have that in here. # so we recreate the entire DEPEND from scratch. @@ -37,7 +37,7 @@ openexr? ( >=media-libs/openexr-1.2 ) spell? ( || ( app-text/aspell app-text/ispell ) ) - zeroconf? ( net-misc/mDNSResponder ) + zeroconf? ( !avahi? ( net-misc/mDNSResponder ) ) virtual/fam virtual/ghostscript" @@ -49,6 +49,9 @@ RDEPEND="${RDEPEND} || ( x11-apps/rgb virtual/x11 )" +PDEPEND="avahi? ( kde-base/kdnssd-avahi )" + + PATCHES="${FILESDIR}/${PN}-3.5.0-bindnow.patch ${FILESDIR}/${PN}-3.5.0-kicker-crash.patch ${FILESDIR}/${P}-xorg7-rgbtxt.patch @@ -70,8 +73,13 @@ $(use_with alsa) $(use_with arts) $(use_with kerberos gssapi) $(use_with tiff) $(use_with jpeg2k jasper) $(use_with openexr) - $(use_enable cups) $(use_enable zeroconf dnssd) - --without-hspell" + $(use_enable cups) --without-hspell" + + if use zeroconf && ! use avahi; then + myconf="${myconf} --enable-dnssd" + else + myconf="${myconf} --disable-dnssd" + fi if use spell && has_version app-text/aspell; then myconf="${myconf} --with-aspell"