summaryrefslogtreecommitdiff
path: root/net-libs/libnm-glib/libnm-glib-1.18.10-r1.ebuild
blob: fcb61704bbdc6b1c2537ddb8487e13fda37ed8ea (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

GNOME_ORG_MODULE="NetworkManager"

inherit gnome.org meson multilib-minimal

DESCRIPTION="Legacy NetworkManager glib and util libraries"
HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="gnutls +nss"
REQUIRED_USE="|| ( nss gnutls )"
RESTRICT="test"

DEPEND="
	>=sys-apps/dbus-1.2[${MULTILIB_USEDEP}]
	>=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}]
	>=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
	net-libs/libndp[${MULTILIB_USEDEP}]
	sys-apps/util-linux[${MULTILIB_USEDEP}]
	>=virtual/libudev-175:=[${MULTILIB_USEDEP}]
	nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
	!nss? ( gnutls? (
		dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
		>=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) )
"

RDEPEND="
	${DEPEND}
	!<net-misc/networkmanager-1.19
"

BDEPEND="
	>=dev-util/intltool-0.40
	virtual/pkgconfig
"

multilib_src_configure() {
	local emesonargs=(
		-Dsystemdsystemunitdir=no
		-Dudev_dir=no
		-Ddbus_conf_dir="/etc/dbus-1/system.d"

		-Dsession_tracking_consolekit=false
		-Dsession_tracking=no
		-Dsuspend_resume=upower
		-Dpolkit=false
		-Dpolkit_agent=false
		-Dselinux=false
		-Dsystemd_journal=false
		-Dlibaudit=no

		-Dwext=false
		-Dwifi=false
		-Diwd=false
		-Dppp=false
		-Dmodem_manager=false
		-Dofono=false
		-Dconcheck=false
		-Dteamdctl=false
		-Dovs=false
		-Dlibnm_glib=true
		-Dnmcli=false
		-Dnmtui=false
		-Dbluez5_dun=false
		-Debpf=true

		-Dresolvconf=no
		-Dnetconfig=no

		-Ddhclient=no
		-Ddhcpcanon=no
		-Ddhcpcd=no

		-Dintrospection=false
		-Dvapi=false
		-Dtests=no
		-Dmore_asserts=no
		-Dmore_logging=false
		-Dvalgrind=no
		-Dlibpsl=false
		-Djson_validation=false
		-Dcrypto=$(usex nss nss gnutls)
		-Dqt=false
	)

	meson_src_configure
}

multilib_src_compile() {
	meson_src_compile
}

multilib_src_install() {
	dolib.so libnm-{glib,util}/libnm-*.so*[0-9]
}

multilib_src_install_all() {
	:
}