summaryrefslogtreecommitdiff
path: root/kde-frameworks/kdnssd/kdnssd-6.29.0.ebuild
blob: fa3c44a6e75b590ec74bf639947254b843ca8e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

QTMIN=6.10.1
inherit ecm frameworks.kde.org

DESCRIPTION="Framework for network service discovery using Zeroconf"

LICENSE="LGPL-2+"
KEYWORDS="amd64 arm64 ~ppc64 ~riscv ~x86"
IUSE="minimal"

DEPEND="
	>=dev-qt/qtbase-${QTMIN}:6[network]
	!minimal? (
		>=dev-qt/qtbase-${QTMIN}:6[dbus]
		net-dns/avahi[mdnsresponder-compat]
	)
"
RDEPEND="${DEPEND}
	!minimal? ( elibc_glibc? ( sys-auth/nss-mdns ) )
"
BDEPEND=">=dev-qt/qttools-${QTMIN}:6[linguist]"

src_configure() {
	if use minimal; then
		local mycmakeargs=(
			-DCMAKE_DISABLE_FIND_PACKAGE_Avahi=ON
			-DCMAKE_DISABLE_FIND_PACKAGE_DNSSD=ON
			-DCMAKE_DISABLE_FIND_PACKAGE_Qt6Widgets=ON # examples are not installed
		)
	fi

	ecm_src_configure
}