blob: b29581f35d007fe198953b8755d583e6fa2e7cfd (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qmake-utils systemd toolchain-funcs xdg
DESCRIPTION="Desktop notification and configuration for dhcpcd"
HOMEPAGE="https://github.com/NetworkConfiguration/dhcpcd-ui https://roy.marples.name/projects/dhcpcd-ui/"
SRC_URI="https://github.com/NetworkConfiguration/dhcpcd-ui/releases/download/v${PV}/${P}.tar.xz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug gtk libnotify ncurses qt5"
# Qt handles notifications separately, no need for libnotify there
REQUIRED_USE="
libnotify? ( gtk )
"
BDEPEND="
media-gfx/cairosvg
virtual/libintl
"
DEPEND="
gtk? (
dev-libs/glib:2
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
)
libnotify? ( x11-libs/libnotify )
ncurses? ( sys-libs/ncurses:= )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
media-libs/mesa
)
"
RDEPEND="
${DEPEND}
>=net-misc/dhcpcd-6.4.4
"
src_configure() {
local myeconfargs=(
--without-qt
--without-qt5
$(use_enable debug)
$(use_enable libnotify notification)
$(use_with gtk gtk 'gtk+-3.0')
$(use_with ncurses curses)
)
tc-export AR CC CXX
econf "${myeconfargs[@]}"
if use qt5 ; then
cd src/dhcpcd-qt || die
eqmake5 PREFIX="${EPREFIX}/usr" SYSCONFDIR="${EPREFIX}/etc"
fi
}
src_compile() {
default
use qt5 && emake -C src/dhcpcd-qt
}
src_install() {
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
use qt5 && emake -C src/dhcpcd-qt DESTDIR="${D}" INSTALL_ROOT="${D}" install
systemd_dounit src/dhcpcd-online/dhcpcd-wait-online.service
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}
|