1 |
commit: 8728d4c5ee2991eca35d949f52fb9d32ab6dce9a |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 24 15:30:29 2019 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 24 15:31:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8728d4c5 |
7 |
|
8 |
net-wireless/iwd: live ebuild tweaks |
9 |
|
10 |
Added new dep on docutils for man page generation. Changed all 9999 |
11 |
conditionals to *9999* for future-proofing and consistency. Introduced |
12 |
COMMON_DEPEND & reorganized deps. |
13 |
|
14 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
15 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
16 |
|
17 |
net-wireless/iwd/iwd-9999.ebuild | 18 +++++++++++------- |
18 |
1 file changed, 11 insertions(+), 7 deletions(-) |
19 |
|
20 |
diff --git a/net-wireless/iwd/iwd-9999.ebuild b/net-wireless/iwd/iwd-9999.ebuild |
21 |
index bed12522f62..e1dc339b4d2 100644 |
22 |
--- a/net-wireless/iwd/iwd-9999.ebuild |
23 |
+++ b/net-wireless/iwd/iwd-9999.ebuild |
24 |
@@ -4,7 +4,7 @@ |
25 |
EAPI=6 |
26 |
inherit autotools flag-o-matic linux-info systemd |
27 |
|
28 |
-if [[ ${PV} == 9999 ]]; then |
29 |
+if [[ ${PV} == *9999* ]]; then |
30 |
EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/wireless/iwd.git" |
31 |
inherit git-r3 |
32 |
else |
33 |
@@ -19,15 +19,19 @@ LICENSE="GPL-2" |
34 |
SLOT="0" |
35 |
IUSE="+client +crda +monitor ofono wired cpu_flags_x86_aes cpu_flags_x86_ssse3" |
36 |
|
37 |
-RDEPEND=">=dev-libs/ell-0.21 |
38 |
- net-wireless/wireless-regdb |
39 |
+COMMON_DEPEND=">=dev-libs/ell-0.21 |
40 |
sys-apps/dbus |
41 |
- client? ( sys-libs/readline:0= ) |
42 |
+ client? ( sys-libs/readline:0= )" |
43 |
+ |
44 |
+RDEPEND="${COMMON_DEPEND} |
45 |
+ net-wireless/wireless-regdb |
46 |
crda? ( net-wireless/crda )" |
47 |
|
48 |
-DEPEND="${RDEPEND} |
49 |
+DEPEND="${COMMON_DEPEND} |
50 |
virtual/pkgconfig" |
51 |
|
52 |
+[[ ${PV} == *9999* ]] && DEPEND+=" dev-python/docutils" |
53 |
+ |
54 |
pkg_pretend() { |
55 |
CONFIG_CHECK=" |
56 |
~ASYMMETRIC_KEY_TYPE |
57 |
@@ -96,7 +100,7 @@ pkg_pretend() { |
58 |
} |
59 |
|
60 |
src_unpack() { |
61 |
- if [[ ${PV} == "9999" ]] ; then |
62 |
+ if [[ ${PV} == *9999* ]] ; then |
63 |
git-r3_src_unpack |
64 |
git clone git://git.kernel.org/pub/scm/libs/ell/ell.git "${WORKDIR}"/ell |
65 |
else |
66 |
@@ -132,7 +136,7 @@ src_install() { |
67 |
newinitd "${FILESDIR}/ead.initd" ead |
68 |
fi |
69 |
|
70 |
- if [[ ${PV} == "9999" ]] ; then |
71 |
+ if [[ ${PV} == *9999* ]] ; then |
72 |
exeinto /usr/share/iwd/scripts/ |
73 |
doexe test/* |
74 |
fi |