blob: 38f2b2385cea78b496cd54fd91da5d6c0da2f5c6 (
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
85
86
87
88
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3 systemd toolchain-funcs
EGIT_REPO_URI="https://github.com/dunst-project/dunst"
DESCRIPTION="Lightweight replacement for common notification daemons"
HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst"
LICENSE="BSD"
SLOT="0"
IUSE="+completions +dunstify wayland +X +xdg"
DEPEND="
dev-libs/glib:2
sys-apps/dbus
x11-libs/cairo[X?,glib]
x11-libs/gdk-pixbuf:2
x11-libs/pango[X?]
dunstify? ( x11-libs/libnotify )
wayland? ( dev-libs/wayland )
X? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libXScrnSaver
x11-libs/libXinerama
x11-libs/libXrandr
)
xdg? ( x11-misc/xdg-utils )
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-lang/perl
virtual/pkgconfig
wayland? ( dev-libs/wayland-protocols )
"
REQUIRED_USE="|| ( wayland X )"
src_prepare() {
default
# Respect users CFLAGS
sed -e 's/-Os//' -i config.mk || die
# Use correct path for dbus and system unit
sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i dunst.systemd.service.in || die
sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i org.knopwob.dunst.service.in || die
}
src_configure() {
tc-export CC PKG_CONFIG
default
}
src_compile() {
local myemakeargs=(
DUNSTIFY="$(usex dunstify 1 0)"
SYSCONFDIR="${EPREFIX}/etc/xdg"
SYSTEMD="0"
WAYLAND="$(usex wayland 1 0)"
X11="$(usex X 1 0)"
)
emake "${myemakeargs[@]}"
}
src_install() {
local myemakeargs=(
COMPLETIONS="$(usex completions 1 0)"
DUNSTIFY="$(usex dunstify 1 0)"
PREFIX="${ED}/usr"
SYSCONFDIR="${ED}/etc/xdg"
SYSTEMD="0"
WAYLAND="$(usex wayland 1 0)"
X11="$(usex X 1 0)"
)
emake "${myemakeargs[@]}" install
systemd_newuserunit dunst.systemd.service.in dunst.service
}
|