diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-02-28 00:54:00 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-02-28 01:03:01 +0100 |
commit | c02c8cd6770e3cc594e8d63f76d0a6c4c3435f4e (patch) | |
tree | 8e2a577f935d61448d8496da113e455057098f23 /x11-misc | |
parent | app-backup/borgbackup: 1.2.0 version bump. (diff) | |
download | gentoo-c02c8cd6770e3cc594e8d63f76d0a6c4c3435f4e.tar.gz gentoo-c02c8cd6770e3cc594e8d63f76d0a6c4c3435f4e.tar.bz2 gentoo-c02c8cd6770e3cc594e8d63f76d0a6c4c3435f4e.zip |
x11-misc/dunst: update config path
Closes: https://bugs.gentoo.org/834050
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/dunst/dunst-1.7.3-r1.ebuild | 79 | ||||
-rw-r--r-- | x11-misc/dunst/dunst-1.8.0-r1.ebuild | 81 | ||||
-rw-r--r-- | x11-misc/dunst/dunst-9999.ebuild | 2 | ||||
-rw-r--r-- | x11-misc/dunst/files/dunst-1.8.0-xdg.patch | 23 |
4 files changed, 185 insertions, 0 deletions
diff --git a/x11-misc/dunst/dunst-1.7.3-r1.ebuild b/x11-misc/dunst/dunst-1.7.3-r1.ebuild new file mode 100644 index 000000000000..37336b25c793 --- /dev/null +++ b/x11-misc/dunst/dunst-1.7.3-r1.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 +} diff --git a/x11-misc/dunst/dunst-1.8.0-r1.ebuild b/x11-misc/dunst/dunst-1.8.0-r1.ebuild new file mode 100644 index 000000000000..3607f4c5c20e --- /dev/null +++ b/x11-misc/dunst/dunst-1.8.0-r1.ebuild @@ -0,0 +1,81 @@ +# 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 ) +" + +PATCHES=( "${FILESDIR}/${PN}-1.8.0-xdg.patch" ) + +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 +} diff --git a/x11-misc/dunst/dunst-9999.ebuild b/x11-misc/dunst/dunst-9999.ebuild index c26bd529c4b9..6bf23561e0a8 100644 --- a/x11-misc/dunst/dunst-9999.ebuild +++ b/x11-misc/dunst/dunst-9999.ebuild @@ -39,6 +39,8 @@ BDEPEND=" wayland? ( dev-libs/wayland-protocols ) " +PATCHES=( "${FILESDIR}/${PN}-1.8.0-xdg.patch" ) + src_prepare() { default diff --git a/x11-misc/dunst/files/dunst-1.8.0-xdg.patch b/x11-misc/dunst/files/dunst-1.8.0-xdg.patch new file mode 100644 index 000000000000..e2a3a127094c --- /dev/null +++ b/x11-misc/dunst/files/dunst-1.8.0-xdg.patch @@ -0,0 +1,23 @@ +From 50743754de28da6d474c001e6b7e04ada789c04a Mon Sep 17 00:00:00 2001 +From: Aleksei Bavshin <alebastr89@gmail.com> +Date: Sun, 27 Feb 2022 08:49:41 -0800 +Subject: [PATCH] Use correct variable for the configuration file paths + +Fixes #1041 +--- + src/utils.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/utils.c b/src/utils.c +index 380dac26..90c47a9a 100644 +--- a/src/utils.c ++++ b/src/utils.c +@@ -448,7 +448,7 @@ FILE *fopen_verbose(const char * const path) + + /* see utils.h */ + void add_paths_from_env(GPtrArray *arr, char *env_name, char *subdir, char *alternative) { +- const char *xdg_data_dirs = g_getenv("XDG_DATA_DIRS"); ++ const char *xdg_data_dirs = g_getenv(env_name); + if (!xdg_data_dirs) + xdg_data_dirs = alternative; + |