commit:     820531d2c59c0eb68fefd708bc370897ba481392
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 28 20:12:18 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jun 28 20:12:18 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820531d2

x11-misc/dunst: add 1.9.0

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 x11-misc/dunst/Manifest           |  1 +
 x11-misc/dunst/dunst-1.9.0.ebuild | 79 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/x11-misc/dunst/Manifest b/x11-misc/dunst/Manifest
index fa2968213d5c..b7c6a5098e40 100644
--- a/x11-misc/dunst/Manifest
+++ b/x11-misc/dunst/Manifest
@@ -1 +1,2 @@
 DIST dunst-1.8.1.tar.gz 4603941 BLAKE2B 
c694503087425a69eecd40e4e50c5cfe5e5d3e9525d259b04dacd7e2bc05ff188aad14a331c41e6ecdd91b7c43d87d5902662b8a510675f3450da7097b7da1e9
 SHA512 
bd8605844eacb24ec1beafbd62be1defa8ff9f6fc2e93a4746acaba483e86d0fa3937045c20dbba71c46310102d8878c8ec987a3081328b02a09d7f9fde974d9
+DIST dunst-1.9.0.tar.gz 4609222 BLAKE2B 
4879122e342c1e518bca079bacd4ae769fd7da41db681230613c61531e62df94223757372c428c06710afd843200dcb78883d352f4e25098f0672b5c89ab0d87
 SHA512 
e43c960561d1f804c1d8f73f9376b33f61bf1ba5c5d0579c9875ef96da6522e214d5b74166ca3375dff1b4b0291b611b2d9ac1fb41fa8722db04c21e898824d1

diff --git a/x11-misc/dunst/dunst-1.9.0.ebuild 
b/x11-misc/dunst/dunst-1.9.0.ebuild
new file mode 100644
index 000000000000..e3f5d7b97fd2
--- /dev/null
+++ b/x11-misc/dunst/dunst-1.9.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2022 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="wayland"
+
+DEPEND="
+       dev-libs/glib:2
+       sys-apps/dbus
+       x11-libs/cairo[X,glib]
+       x11-libs/gdk-pixbuf:2
+       x11-libs/libX11
+       x11-libs/libXext
+       x11-libs/libXScrnSaver
+       x11-libs/libXinerama
+       x11-libs/libXrandr
+       x11-libs/libnotify
+       x11-libs/pango[X]
+       x11-misc/xdg-utils
+       wayland? ( dev-libs/wayland )
+"
+
+RDEPEND="${DEPEND}"
+
+BDEPEND="
+       dev-lang/perl
+       virtual/pkgconfig
+       wayland? ( dev-libs/wayland-protocols )
+"
+
+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=(
+               SYSCONFDIR="${EPREFIX}/etc/xdg"
+               SYSTEMD="0"
+               WAYLAND="$(usex wayland 1 0)"
+       )
+
+       emake "${myemakeargs[@]}"
+}
+
+src_install() {
+       local myemakeargs=(
+               PREFIX="${ED}/usr"
+               SYSCONFDIR="${ED}/etc/xdg"
+               SYSTEMD="0"
+               WAYLAND="$(usex wayland 1 0)"
+       )
+
+       emake "${myemakeargs[@]}" install
+
+       systemd_newuserunit dunst.systemd.service.in dunst.service
+}

Reply via email to