blob: 2a755693c0f2faa978f1019ce017d63333825665 (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit qmake-utils systemd
DESCRIPTION="Desktop notification and configuration for dhcpcd"
HOMEPAGE="http://roy.marples.name/projects/dhcpcd-ui/"
SRC_URI="http://roy.marples.name/downloads/${PN%-ui}/${P}.tar.bz2"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug gtk gtk3 qt4 libnotify"
REQUIRED_USE="
?? ( gtk gtk3 qt4 )
gtk3? ( !gtk )
gtk? ( !gtk3 )"
DEPEND="
virtual/libintl
libnotify? (
gtk? ( x11-libs/libnotify )
gtk3? ( x11-libs/libnotify )
qt4? ( kde-frameworks/kdelibs:4 kde-apps/knotify:4 )
)
gtk? ( x11-libs/gtk+:2 )
gtk3? ( x11-libs/gtk+:3 )
qt4? ( dev-qt/qtgui:4 )"
RDEPEND="
>=net-misc/dhcpcd-6.4.4
qt4? ( dev-qt/qtsvg:4 )"
pkg_setup() {
if use qt4 ; then
# This is required in case a user still has qt3 installed
export QTDIR="$(qt4_get_bindir)"
fi
}
src_configure() {
local myeconfargs=(
$(use_enable debug)
$(usex gtk '--with-gtk=gtk+-2.0 --with-icons' '')
$(usex gtk3 '--with-gtk=gtk+-3.0 --with-icons' '')
$(usex qt4 '--with-qt --with-icons' '--without-qt')
$(use_enable libnotify notification)
$(use gtk || use gtk3 || echo '--without-gtk')
$(use gtk || use gtk3 || use qt4 || echo '--without-icons')
)
econf "${myeconfargs[@]}"
}
src_install() {
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
systemd_dounit src/dhcpcd-online/dhcpcd-wait-online.service
}
|