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