1 |
commit: 9ab1a2f12404eef7babcdc3ba906a98c091980d3 |
2 |
Author: Lukáš Poláček <lukas <AT> ksp <DOT> sk> |
3 |
AuthorDate: Mon Jun 27 06:21:57 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 7 22:53:05 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ab1a2f1 |
7 |
|
8 |
net-misc/dhcpcd-ui: Add knotify dependency |
9 |
|
10 |
Package fails to build when libnotify and qt4 USE flags are set. |
11 |
Adding knotify as a dependency fixes the issue. |
12 |
|
13 |
Gentoo-Bug: 568166 |
14 |
|
15 |
Package-Manager: portage-2.2.28 |
16 |
Closes: https://github.com/gentoo/gentoo/pull/1763 |
17 |
|
18 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
19 |
|
20 |
net-misc/dhcpcd-ui/dhcpcd-ui-0.7.5-r1.ebuild | 60 ++++++++++++++++++++++++++++ |
21 |
1 file changed, 60 insertions(+) |
22 |
|
23 |
diff --git a/net-misc/dhcpcd-ui/dhcpcd-ui-0.7.5-r1.ebuild b/net-misc/dhcpcd-ui/dhcpcd-ui-0.7.5-r1.ebuild |
24 |
new file mode 100644 |
25 |
index 0000000..78bfb2a |
26 |
--- /dev/null |
27 |
+++ b/net-misc/dhcpcd-ui/dhcpcd-ui-0.7.5-r1.ebuild |
28 |
@@ -0,0 +1,60 @@ |
29 |
+# Copyright 1999-2016 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Id$ |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit qmake-utils systemd |
36 |
+ |
37 |
+DESCRIPTION="Desktop notification and configuration for dhcpcd" |
38 |
+HOMEPAGE="http://roy.marples.name/projects/dhcpcd-ui/" |
39 |
+SRC_URI="http://roy.marples.name/downloads/${PN%-ui}/${P}.tar.bz2" |
40 |
+ |
41 |
+LICENSE="BSD-2" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="debug gtk gtk3 qt4 libnotify" |
45 |
+ |
46 |
+REQUIRED_USE=" |
47 |
+ ?? ( gtk gtk3 qt4 ) |
48 |
+ gtk3? ( !gtk ) |
49 |
+ gtk? ( !gtk3 )" |
50 |
+ |
51 |
+DEPEND=" |
52 |
+ virtual/libintl |
53 |
+ libnotify? ( |
54 |
+ gtk? ( x11-libs/libnotify ) |
55 |
+ gtk3? ( x11-libs/libnotify ) |
56 |
+ qt4? ( kde-base/kdelibs kde-apps/knotify ) |
57 |
+ ) |
58 |
+ gtk? ( x11-libs/gtk+:2 ) |
59 |
+ gtk3? ( x11-libs/gtk+:3 ) |
60 |
+ qt4? ( dev-qt/qtgui:4 )" |
61 |
+ |
62 |
+RDEPEND=">=net-misc/dhcpcd-6.4.4" |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ if use qt4 ; then |
66 |
+ # This is required in case a user still has qt3 installed |
67 |
+ export QTDIR="$(qt4_get_bindir)" |
68 |
+ fi |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local myeconfargs=( |
73 |
+ $(use_enable debug) |
74 |
+ $(usex gtk '--with-gtk=gtk+-2.0 --with-icons' '') |
75 |
+ $(usex gtk3 '--with-gtk=gtk+-3.0 --with-icons' '') |
76 |
+ $(usex qt4 '--with-qt --with-icons' '--without-qt') |
77 |
+ $(use_enable libnotify notification) |
78 |
+ $(use gtk || use gtk3 || echo '--without-gtk') |
79 |
+ $(use gtk || use gtk3 || use qt4 || echo '--without-icons') |
80 |
+ ) |
81 |
+ econf "${myeconfargs[@]}" |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ emake DESTDIR="${D}" INSTALL_ROOT="${D}" install |
86 |
+ |
87 |
+ systemd_dounit src/dhcpcd-online/dhcpcd-wait-online.service |
88 |
+} |