1 |
commit: c02c8cd6770e3cc594e8d63f76d0a6c4c3435f4e |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 27 23:54:00 2022 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 28 00:03:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c02c8cd6 |
7 |
|
8 |
x11-misc/dunst: update config path |
9 |
|
10 |
Closes: https://bugs.gentoo.org/834050 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
.../{dunst-9999.ebuild => dunst-1.7.3-r1.ebuild} | 15 +++++++------- |
14 |
.../{dunst-9999.ebuild => dunst-1.8.0-r1.ebuild} | 17 +++++++++------- |
15 |
x11-misc/dunst/dunst-9999.ebuild | 2 ++ |
16 |
x11-misc/dunst/files/dunst-1.8.0-xdg.patch | 23 ++++++++++++++++++++++ |
17 |
4 files changed, 43 insertions(+), 14 deletions(-) |
18 |
|
19 |
diff --git a/x11-misc/dunst/dunst-9999.ebuild b/x11-misc/dunst/dunst-1.7.3-r1.ebuild |
20 |
similarity index 75% |
21 |
copy from x11-misc/dunst/dunst-9999.ebuild |
22 |
copy to x11-misc/dunst/dunst-1.7.3-r1.ebuild |
23 |
index c26bd529c4b9..37336b25c793 100644 |
24 |
--- a/x11-misc/dunst/dunst-9999.ebuild |
25 |
+++ b/x11-misc/dunst/dunst-1.7.3-r1.ebuild |
26 |
@@ -1,18 +1,17 @@ |
27 |
-# Copyright 1999-2021 Gentoo Authors |
28 |
+# Copyright 1999-2022 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
EAPI=8 |
32 |
|
33 |
-inherit git-r3 systemd toolchain-funcs |
34 |
- |
35 |
-EGIT_REPO_URI="https://github.com/dunst-project/dunst" |
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="" |
45 |
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv x86" |
46 |
IUSE="wayland" |
47 |
|
48 |
DEPEND=" |
49 |
@@ -45,8 +44,9 @@ src_prepare() { |
50 |
# Respect users CFLAGS |
51 |
sed -e 's/-Os//' -i config.mk || die |
52 |
|
53 |
- # Use correct path for system unit |
54 |
+ # Use correct path for dbus and system unit |
55 |
sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i dunst.systemd.service.in || die |
56 |
+ sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i org.knopwob.dunst.service.in || die |
57 |
} |
58 |
|
59 |
src_configure() { |
60 |
@@ -57,6 +57,7 @@ src_configure() { |
61 |
|
62 |
src_compile() { |
63 |
local myemakeargs=( |
64 |
+ SYSCONFDIR="${EPREFIX}/etc/xdg" |
65 |
SYSTEMD="0" |
66 |
WAYLAND="$(usex wayland 1 0)" |
67 |
) |
68 |
@@ -67,7 +68,7 @@ src_compile() { |
69 |
src_install() { |
70 |
local myemakeargs=( |
71 |
PREFIX="${ED}/usr" |
72 |
- SYSCONFDIR="${ED}/etc" |
73 |
+ SYSCONFDIR="${ED}/etc/xdg" |
74 |
SYSTEMD="0" |
75 |
WAYLAND="$(usex wayland 1 0)" |
76 |
) |
77 |
|
78 |
diff --git a/x11-misc/dunst/dunst-9999.ebuild b/x11-misc/dunst/dunst-1.8.0-r1.ebuild |
79 |
similarity index 73% |
80 |
copy from x11-misc/dunst/dunst-9999.ebuild |
81 |
copy to x11-misc/dunst/dunst-1.8.0-r1.ebuild |
82 |
index c26bd529c4b9..3607f4c5c20e 100644 |
83 |
--- a/x11-misc/dunst/dunst-9999.ebuild |
84 |
+++ b/x11-misc/dunst/dunst-1.8.0-r1.ebuild |
85 |
@@ -1,18 +1,17 @@ |
86 |
-# Copyright 1999-2021 Gentoo Authors |
87 |
+# Copyright 1999-2022 Gentoo Authors |
88 |
# Distributed under the terms of the GNU General Public License v2 |
89 |
|
90 |
EAPI=8 |
91 |
|
92 |
-inherit git-r3 systemd toolchain-funcs |
93 |
- |
94 |
-EGIT_REPO_URI="https://github.com/dunst-project/dunst" |
95 |
+inherit systemd toolchain-funcs |
96 |
|
97 |
DESCRIPTION="Lightweight replacement for common notification daemons" |
98 |
HOMEPAGE="https://dunst-project.org/ https://github.com/dunst-project/dunst" |
99 |
+SRC_URI="https://github.com/dunst-project/dunst/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
100 |
|
101 |
LICENSE="BSD" |
102 |
SLOT="0" |
103 |
-KEYWORDS="" |
104 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
105 |
IUSE="wayland" |
106 |
|
107 |
DEPEND=" |
108 |
@@ -39,14 +38,17 @@ BDEPEND=" |
109 |
wayland? ( dev-libs/wayland-protocols ) |
110 |
" |
111 |
|
112 |
+PATCHES=( "${FILESDIR}/${PN}-1.8.0-xdg.patch" ) |
113 |
+ |
114 |
src_prepare() { |
115 |
default |
116 |
|
117 |
# Respect users CFLAGS |
118 |
sed -e 's/-Os//' -i config.mk || die |
119 |
|
120 |
- # Use correct path for system unit |
121 |
+ # Use correct path for dbus and system unit |
122 |
sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i dunst.systemd.service.in || die |
123 |
+ sed -e "s|##PREFIX##|${EPREFIX}/usr|" -i org.knopwob.dunst.service.in || die |
124 |
} |
125 |
|
126 |
src_configure() { |
127 |
@@ -57,6 +59,7 @@ src_configure() { |
128 |
|
129 |
src_compile() { |
130 |
local myemakeargs=( |
131 |
+ SYSCONFDIR="${EPREFIX}/etc/xdg" |
132 |
SYSTEMD="0" |
133 |
WAYLAND="$(usex wayland 1 0)" |
134 |
) |
135 |
@@ -67,7 +70,7 @@ src_compile() { |
136 |
src_install() { |
137 |
local myemakeargs=( |
138 |
PREFIX="${ED}/usr" |
139 |
- SYSCONFDIR="${ED}/etc" |
140 |
+ SYSCONFDIR="${ED}/etc/xdg" |
141 |
SYSTEMD="0" |
142 |
WAYLAND="$(usex wayland 1 0)" |
143 |
) |
144 |
|
145 |
diff --git a/x11-misc/dunst/dunst-9999.ebuild b/x11-misc/dunst/dunst-9999.ebuild |
146 |
index c26bd529c4b9..6bf23561e0a8 100644 |
147 |
--- a/x11-misc/dunst/dunst-9999.ebuild |
148 |
+++ b/x11-misc/dunst/dunst-9999.ebuild |
149 |
@@ -39,6 +39,8 @@ BDEPEND=" |
150 |
wayland? ( dev-libs/wayland-protocols ) |
151 |
" |
152 |
|
153 |
+PATCHES=( "${FILESDIR}/${PN}-1.8.0-xdg.patch" ) |
154 |
+ |
155 |
src_prepare() { |
156 |
default |
157 |
|
158 |
|
159 |
diff --git a/x11-misc/dunst/files/dunst-1.8.0-xdg.patch b/x11-misc/dunst/files/dunst-1.8.0-xdg.patch |
160 |
new file mode 100644 |
161 |
index 000000000000..e2a3a127094c |
162 |
--- /dev/null |
163 |
+++ b/x11-misc/dunst/files/dunst-1.8.0-xdg.patch |
164 |
@@ -0,0 +1,23 @@ |
165 |
+From 50743754de28da6d474c001e6b7e04ada789c04a Mon Sep 17 00:00:00 2001 |
166 |
+From: Aleksei Bavshin <alebastr89@×××××.com> |
167 |
+Date: Sun, 27 Feb 2022 08:49:41 -0800 |
168 |
+Subject: [PATCH] Use correct variable for the configuration file paths |
169 |
+ |
170 |
+Fixes #1041 |
171 |
+--- |
172 |
+ src/utils.c | 2 +- |
173 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
174 |
+ |
175 |
+diff --git a/src/utils.c b/src/utils.c |
176 |
+index 380dac26..90c47a9a 100644 |
177 |
+--- a/src/utils.c |
178 |
++++ b/src/utils.c |
179 |
+@@ -448,7 +448,7 @@ FILE *fopen_verbose(const char * const path) |
180 |
+ |
181 |
+ /* see utils.h */ |
182 |
+ void add_paths_from_env(GPtrArray *arr, char *env_name, char *subdir, char *alternative) { |
183 |
+- const char *xdg_data_dirs = g_getenv("XDG_DATA_DIRS"); |
184 |
++ const char *xdg_data_dirs = g_getenv(env_name); |
185 |
+ if (!xdg_data_dirs) |
186 |
+ xdg_data_dirs = alternative; |
187 |
+ |