x11-misc/dunst - 9999 (gentoo)

Search

Notice: This package is in a virtual group: virtual/notification-daemon
Equivalents: gnome-base/gnome-shell, gnome-extra/cinnamon, gui-apps/mako, kde-plasma/plasma-workspace, lxqt-base/lxqt-notificationd, net-misc/eventd, x11-misc/mate-notification-daemon, x11-misc/notification-daemon, x11-misc/notify-osd, x11-wm/awesome, x11-wm/enlightenment, xfce-extra/xfce4-notifyd

Install

Install this version:

emerge -a =x11-misc/dunst-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =x11-misc/dunst-9999

Or alternatively:

emerge --autounmask-write -a =x11-misc/dunst-9999

Package Information

Description:
Lightweight replacement for common notification daemons
Homepage:
https://dunst-project.org/ https://github.com/dunst-project/dunst
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2025 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|@bindir@|${EPREFIX}/usr/bin|" -i dunst.systemd.service.in || die
	sed -e "s|@bindir@|${EPREFIX}/usr/bin|" -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

	exeinto /etc/user/init.d
	newexe "${FILESDIR}/dunst.initd" dunst
	systemd_newuserunit dunst.systemd.service.in dunst.service
}

USE Flags

Manage flags for this package: euse -i <flag> -p x11-misc/dunst | euse -E <flag> -p x11-misc/dunst | euse -D <flag> -p x11-misc/dunst

Global/Standard Flags

completions
Default: Enabled (+)
dunstify
Default: Enabled (+)
X
Default: Enabled (+)
xdg
Default: Enabled (+)

Inherited Eclasses

Dependencies

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

	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 )

BDEPEND

	dev-lang/perl
	virtual/pkgconfig
	wayland? ( dev-libs/wayland-protocols )