1 |
commit: dd4dc053a9b31b318de3ed1a91d5dbda602d92b8 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 27 15:37:37 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 27 15:39:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd4dc053 |
7 |
|
8 |
net-misc/networkmanager: fixup deps and tidy ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69 |
11 |
|
12 |
.../networkmanager/networkmanager-1.8.0.ebuild | 82 +++++++++------------- |
13 |
1 file changed, 34 insertions(+), 48 deletions(-) |
14 |
|
15 |
diff --git a/net-misc/networkmanager/networkmanager-1.8.0.ebuild b/net-misc/networkmanager/networkmanager-1.8.0.ebuild |
16 |
index ba6cd27f53f..1ce1cc72ebb 100644 |
17 |
--- a/net-misc/networkmanager/networkmanager-1.8.0.ebuild |
18 |
+++ b/net-misc/networkmanager/networkmanager-1.8.0.ebuild |
19 |
@@ -16,9 +16,7 @@ HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" |
20 |
LICENSE="GPL-2+" |
21 |
SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version |
22 |
|
23 |
-IUSE="audit bluetooth connection-sharing consolekit +dhclient elogind gnutls \ |
24 |
-+introspection json kernel_linux +nss +modemmanager ncurses ofono +ppp resolvconf \ |
25 |
-selinux systemd teamd test vala +wext +wifi" |
26 |
+IUSE="audit bluetooth connection-sharing consolekit +dhclient elogind gnutls +introspection json kernel_linux +nss +modemmanager ncurses ofono +ppp resolvconf selinux systemd teamd test vala +wext +wifi" |
27 |
|
28 |
REQUIRED_USE=" |
29 |
modemmanager? ( ppp ) |
30 |
@@ -40,11 +38,11 @@ COMMON_DEPEND=" |
31 |
>=dev-libs/libnl-3.2.8:3=[${MULTILIB_USEDEP}] |
32 |
>=sys-auth/polkit-0.106 |
33 |
net-libs/libndp |
34 |
- >=net-libs/libsoup-2.40:2.4= |
35 |
+ net-misc/curl |
36 |
net-misc/iputils |
37 |
sys-apps/util-linux[${MULTILIB_USEDEP}] |
38 |
sys-libs/readline:0= |
39 |
- >=virtual/libgudev-165:=[${MULTILIB_USEDEP}] |
40 |
+ >=virtual/libudev-175:=[${MULTILIB_USEDEP}] |
41 |
audit? ( sys-process/audit ) |
42 |
bluetooth? ( >=net-wireless/bluez-5 ) |
43 |
connection-sharing? ( |
44 |
@@ -66,7 +64,10 @@ COMMON_DEPEND=" |
45 |
resolvconf? ( net-dns/openresolv ) |
46 |
selinux? ( sys-libs/libselinux ) |
47 |
systemd? ( >=sys-apps/systemd-209:0= ) |
48 |
- teamd? ( >=net-misc/libteam-1.9 ) |
49 |
+ teamd? ( |
50 |
+ dev-libs/jansson |
51 |
+ >=net-misc/libteam-1.9 |
52 |
+ ) |
53 |
" |
54 |
RDEPEND="${COMMON_DEPEND} |
55 |
wifi? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] ) |
56 |
@@ -92,17 +93,13 @@ DEPEND="${COMMON_DEPEND} |
57 |
" |
58 |
|
59 |
python_check_deps() { |
60 |
- local rv=0 |
61 |
if use introspection; then |
62 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" |
63 |
- (( rv |= $? )) |
64 |
+ has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return |
65 |
fi |
66 |
if use test; then |
67 |
has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
68 |
has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" |
69 |
- (( rv |= $? )) |
70 |
fi |
71 |
- return ${rv} |
72 |
} |
73 |
|
74 |
sysfs_deprecated_check() { |
75 |
@@ -151,43 +148,20 @@ src_prepare() { |
76 |
} |
77 |
|
78 |
multilib_src_configure() { |
79 |
- local myconf=() |
80 |
- |
81 |
- # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
82 |
- if use ppp; then |
83 |
- local PPPD_VER=`best_version net-dialup/ppp` |
84 |
- PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
85 |
- PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
86 |
- myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} ) |
87 |
- fi |
88 |
- |
89 |
- # unit files directory needs to be passed only when systemd is enabled, |
90 |
- # otherwise systemd support is not disabled completely, bug #524534 |
91 |
- use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" ) |
92 |
- |
93 |
- if multilib_is_native_abi; then |
94 |
- # work-around man out-of-source brokenness, must be done before configure |
95 |
- mkdir man || die |
96 |
- find "${S}"/man -name '*.?' -exec ln -s {} man/ ';' || die |
97 |
- fi |
98 |
- |
99 |
- # ifnet plugin always disabled until someone volunteers to actively |
100 |
- # maintain and fix it |
101 |
- # Also disable dhcpcd support as it's also completely unmaintained |
102 |
- # and facing bugs like #563938 and many others |
103 |
- # |
104 |
- # We need --with-libnm-glib (and dbus-glib dep) as reverse deps are |
105 |
- # still not ready for removing that lib |
106 |
- myconf=( |
107 |
+ local myconf=( |
108 |
--disable-more-warnings |
109 |
--disable-static |
110 |
--localstatedir=/var |
111 |
--disable-lto |
112 |
--disable-config-plugin-ibft |
113 |
+ # ifnet plugin always disabled until someone volunteers to actively |
114 |
+ # maintain and fix it |
115 |
--disable-ifnet |
116 |
--disable-qt |
117 |
--without-netconfig |
118 |
--with-dbus-sys-dir=/etc/dbus-1/system.d |
119 |
+ # We need --with-libnm-glib (and dbus-glib dep) as reverse deps are |
120 |
+ # still not ready for removing that lib |
121 |
--with-libnm-glib |
122 |
--with-nmcli=yes |
123 |
--with-udev-dir="$(get_udevdir)" |
124 |
@@ -199,11 +173,14 @@ multilib_src_configure() { |
125 |
--with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit)) |
126 |
$(multilib_native_use_with audit libaudit) |
127 |
$(multilib_native_use_enable bluetooth bluez5-dun) |
128 |
+ $(use_with dhclient) |
129 |
+ # Also disable dhcpcd support as it's also completely unmaintained |
130 |
+ # and facing bugs like #563938 and many others |
131 |
+ --without-dhcpcd |
132 |
$(multilib_native_use_enable introspection) |
133 |
$(multilib_native_use_enable json json-validation) |
134 |
$(multilib_native_use_enable ppp) |
135 |
- $(use_with dhclient) |
136 |
- --without-dhcpcd |
137 |
+ --without-libpsl |
138 |
$(multilib_native_use_with modemmanager modem-manager-1) |
139 |
$(multilib_native_use_with ncurses nmtui) |
140 |
$(multilib_native_use_with ofono) |
141 |
@@ -216,18 +193,27 @@ multilib_src_configure() { |
142 |
--without-valgrind |
143 |
$(multilib_native_use_with wext) |
144 |
$(multilib_native_use_enable wifi) |
145 |
- "${myconf[@]}" |
146 |
) |
147 |
|
148 |
- ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}" |
149 |
+ # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
150 |
+ if use ppp; then |
151 |
+ local PPPD_VER=`best_version net-dialup/ppp` |
152 |
+ PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
153 |
+ PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
154 |
+ myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} ) |
155 |
+ fi |
156 |
+ |
157 |
+ # unit files directory needs to be passed only when systemd is enabled, |
158 |
+ # otherwise systemd support is not disabled completely, bug #524534 |
159 |
+ use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" ) |
160 |
|
161 |
- # work-around gtk-doc out-of-source brokedness |
162 |
if multilib_is_native_abi; then |
163 |
- local d |
164 |
- for d in api libnm libnm-util libnm-glib; do |
165 |
- ln -s "${S}"/docs/${d}/html docs/${d}/html || die |
166 |
- done |
167 |
+ # work-around man out-of-source brokenness, must be done before configure |
168 |
+ ln -s "${S}/docs" docs || die |
169 |
+ ln -s "${S}/man" man || die |
170 |
fi |
171 |
+ |
172 |
+ ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}" |
173 |
} |
174 |
|
175 |
multilib_src_compile() { |