commit:     6c93f90f3600cb8232f51f2dbbec5be894b46f0a
Author:     Quincy Fleming <quincyf467 <AT> protonmail <DOT> com>
AuthorDate: Fri Mar  7 01:53:23 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Mar  8 06:53:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c93f90f

x11-misc/dunst: add 1.12.2

Signed-off-by: Quincy Fleming <quincyf467 <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40936
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 x11-misc/dunst/Manifest            |  1 +
 x11-misc/dunst/dunst-1.12.2.ebuild | 90 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)

diff --git a/x11-misc/dunst/Manifest b/x11-misc/dunst/Manifest
index b59d210d6756..831314dbe1fb 100644
--- a/x11-misc/dunst/Manifest
+++ b/x11-misc/dunst/Manifest
@@ -1 +1,2 @@
 DIST dunst-1.12.1.tar.gz 4654978 BLAKE2B 
61dfb8c3e56367cb2afed925f4ee66891ae8edd68837d6391889972aff46683eb5fe8fbf5951e30d6be9074aa648be480847e46cc36c2db6bb4024b42c02064c
 SHA512 
0b4ef72bde6bd4b535f11b58d8bf463df3b9b06d5e2ff40e327eb25f13771eb52c7f7aa91590c6d1228ecb3bc2105510409b6984dd45b5e747c1141f3b79b46c
+DIST dunst-1.12.2.tar.gz 4657260 BLAKE2B 
1d102ea2dc1d50009c45dc8923a12572b14d4bf142916febd3d5f853ba5cd9e1a5b7ddbcf5cb55f02b0bbea919ce040b1f627eefceccccfa62b333667052daf6
 SHA512 
f4fabcc5e260cf2dbd16eecd29129df24125ff1444d724202b835415242ed92b9857d42b23ad1e03c6cadd98de7b7ebd5ce20a0e41162baf55b15a71cb90b768

diff --git a/x11-misc/dunst/dunst-1.12.2.ebuild 
b/x11-misc/dunst/dunst-1.12.2.ebuild
new file mode 100644
index 000000000000..f5a7861e403a
--- /dev/null
+++ b/x11-misc/dunst/dunst-1.12.2.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd toolchain-funcs
+
+DESCRIPTION="Lightweight replacement for common notification daemons"
+HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst";
+SRC_URI="https://github.com/dunst-project/dunst/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+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
+
+       exeinto /etc/user/init.d
+       newexe "${FILESDIR}/dunst.initd" dunst
+       systemd_newuserunit dunst.systemd.service.in dunst.service
+}

Reply via email to