Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/dunst/
Date: Tue, 28 Jun 2022 20:21:35
Message-Id: 1656447138.820531d2c59c0eb68fefd708bc370897ba481392.conikost@gentoo
1 commit: 820531d2c59c0eb68fefd708bc370897ba481392
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 28 20:12:18 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 20:12:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820531d2
7
8 x11-misc/dunst: add 1.9.0
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 x11-misc/dunst/Manifest | 1 +
13 x11-misc/dunst/dunst-1.9.0.ebuild | 79 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/x11-misc/dunst/Manifest b/x11-misc/dunst/Manifest
17 index fa2968213d5c..b7c6a5098e40 100644
18 --- a/x11-misc/dunst/Manifest
19 +++ b/x11-misc/dunst/Manifest
20 @@ -1 +1,2 @@
21 DIST dunst-1.8.1.tar.gz 4603941 BLAKE2B c694503087425a69eecd40e4e50c5cfe5e5d3e9525d259b04dacd7e2bc05ff188aad14a331c41e6ecdd91b7c43d87d5902662b8a510675f3450da7097b7da1e9 SHA512 bd8605844eacb24ec1beafbd62be1defa8ff9f6fc2e93a4746acaba483e86d0fa3937045c20dbba71c46310102d8878c8ec987a3081328b02a09d7f9fde974d9
22 +DIST dunst-1.9.0.tar.gz 4609222 BLAKE2B 4879122e342c1e518bca079bacd4ae769fd7da41db681230613c61531e62df94223757372c428c06710afd843200dcb78883d352f4e25098f0672b5c89ab0d87 SHA512 e43c960561d1f804c1d8f73f9376b33f61bf1ba5c5d0579c9875ef96da6522e214d5b74166ca3375dff1b4b0291b611b2d9ac1fb41fa8722db04c21e898824d1
23
24 diff --git a/x11-misc/dunst/dunst-1.9.0.ebuild b/x11-misc/dunst/dunst-1.9.0.ebuild
25 new file mode 100644
26 index 000000000000..e3f5d7b97fd2
27 --- /dev/null
28 +++ b/x11-misc/dunst/dunst-1.9.0.ebuild
29 @@ -0,0 +1,79 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit systemd toolchain-funcs
36 +
37 +DESCRIPTION="Lightweight replacement for common notification daemons"
38 +HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst"
39 +SRC_URI="https://github.com/dunst-project/dunst/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="BSD"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
44 +IUSE="wayland"
45 +
46 +DEPEND="
47 + dev-libs/glib:2
48 + sys-apps/dbus
49 + x11-libs/cairo[X,glib]
50 + x11-libs/gdk-pixbuf:2
51 + x11-libs/libX11
52 + x11-libs/libXext
53 + x11-libs/libXScrnSaver
54 + x11-libs/libXinerama
55 + x11-libs/libXrandr
56 + x11-libs/libnotify
57 + x11-libs/pango[X]
58 + x11-misc/xdg-utils
59 + wayland? ( dev-libs/wayland )
60 +"
61 +
62 +RDEPEND="${DEPEND}"
63 +
64 +BDEPEND="
65 + dev-lang/perl
66 + virtual/pkgconfig
67 + wayland? ( dev-libs/wayland-protocols )
68 +"
69 +
70 +src_prepare() {
71 + default
72 +
73 + # Respect users CFLAGS
74 + sed -e 's/-Os//' -i config.mk || die
75 +
76 + # Use correct path for dbus and system unit
77 + sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i dunst.systemd.service.in || die
78 + sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i org.knopwob.dunst.service.in || die
79 +}
80 +
81 +src_configure() {
82 + tc-export CC PKG_CONFIG
83 +
84 + default
85 +}
86 +
87 +src_compile() {
88 + local myemakeargs=(
89 + SYSCONFDIR="${EPREFIX}/etc/xdg"
90 + SYSTEMD="0"
91 + WAYLAND="$(usex wayland 1 0)"
92 + )
93 +
94 + emake "${myemakeargs[@]}"
95 +}
96 +
97 +src_install() {
98 + local myemakeargs=(
99 + PREFIX="${ED}/usr"
100 + SYSCONFDIR="${ED}/etc/xdg"
101 + SYSTEMD="0"
102 + WAYLAND="$(usex wayland 1 0)"
103 + )
104 +
105 + emake "${myemakeargs[@]}" install
106 +
107 + systemd_newuserunit dunst.systemd.service.in dunst.service
108 +}