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: Fri, 25 Feb 2022 11:34:35
Message-Id: 1645788836.d35d2478a433f89ffea14a7f1c1995dcf38d8495.conikost@gentoo
1 commit: d35d2478a433f89ffea14a7f1c1995dcf38d8495
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 25 11:33:56 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 25 11:33:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d35d2478
7
8 x11-misc/dunst: add 1.8.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.8.0.ebuild | 78 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 79 insertions(+)
15
16 diff --git a/x11-misc/dunst/Manifest b/x11-misc/dunst/Manifest
17 index 52a62bb405e6..29ad301d4c5e 100644
18 --- a/x11-misc/dunst/Manifest
19 +++ b/x11-misc/dunst/Manifest
20 @@ -1 +1,2 @@
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
24 diff --git a/x11-misc/dunst/dunst-1.8.0.ebuild b/x11-misc/dunst/dunst-1.8.0.ebuild
25 new file mode 100644
26 index 000000000000..95b0a0bf7fb1
27 --- /dev/null
28 +++ b/x11-misc/dunst/dunst-1.8.0.ebuild
29 @@ -0,0 +1,78 @@
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 + SYSTEMD="0"
90 + WAYLAND="$(usex wayland 1 0)"
91 + )
92 +
93 + emake "${myemakeargs[@]}"
94 +}
95 +
96 +src_install() {
97 + local myemakeargs=(
98 + PREFIX="${ED}/usr"
99 + SYSCONFDIR="${ED}/etc"
100 + SYSTEMD="0"
101 + WAYLAND="$(usex wayland 1 0)"
102 + )
103 +
104 + emake "${myemakeargs[@]}" install
105 +
106 + systemd_newuserunit dunst.systemd.service.in dunst.service
107 +}