Update to Dunst 1.5.0

From Timo Myyrä (MAINTAINER)
This commit is contained in:
feinerer 2020-09-25 13:53:53 +00:00
parent 3279f2c633
commit c9a0bc783e
5 changed files with 52 additions and 13 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.9 2019/08/02 13:49:29 sthen Exp $
# $OpenBSD: Makefile,v 1.10 2020/09/25 13:53:53 feinerer Exp $
COMMENT = customizable and lightweight notification-daemon
GH_ACCOUNT = dunst-project
GH_PROJECT = dunst
GH_TAGNAME = v1.4.1
GH_TAGNAME = v1.5.0
CATEGORIES = x11
@ -15,18 +15,20 @@ MAINTAINER = Timo Myyra <timo.myyra@bittivirhe.fi>
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += X11 Xext Xinerama Xrandr Xss c cairo dbus-1 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gobject-2.0 intl m pango-1.0 pangocairo-1.0
WANTLIB += pthread
WANTLIB += X11 Xext Xinerama Xrandr Xss c cairo gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gobject-2.0 harfbuzz intl m notify
WANTLIB += pango-1.0 pangocairo-1.0 pthread
USE_GMAKE = Yes
LIB_DEPENDS += devel/gettext,-runtime \
devel/glib2 \
devel/libnotify \
devel/pango \
graphics/cairo \
graphics/gdk-pixbuf2 \
x11/dbus
graphics/gdk-pixbuf2
RUN_DEPENDS += x11/dbus
FAKE_FLAGS = PREFIX="${PREFIX}" \
MANPREFIX="${PREFIX}/man" \

View File

@ -1,2 +1,2 @@
SHA256 (dunst-1.4.1.tar.gz) = FWP+jJ6vMwej19vtJAUh956EFfE2SXAwUSxpcTEYvf4=
SIZE (dunst-1.4.1.tar.gz) = 160124
SHA256 (dunst-1.5.0.tar.gz) = LDkK3xRLX6D/AH6jYWyQ8btTffaoBCGWmT9VhdG8jJo=
SIZE (dunst-1.5.0.tar.gz) = 169272

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-dunstrc,v 1.2 2019/08/02 13:49:29 sthen Exp $
$OpenBSD: patch-dunstrc,v 1.3 2020/09/25 13:53:53 feinerer Exp $
Index: dunstrc
--- dunstrc.orig
+++ dunstrc
@@ -166,7 +166,7 @@
@@ -175,7 +175,7 @@
max_icon_size = 32
# Paths to default icons.
@ -12,7 +12,7 @@ Index: dunstrc
### History ###
@@ -180,10 +180,10 @@
@@ -189,10 +189,10 @@
### Misc/Advanced ###
# dmenu path.

View File

@ -0,0 +1,34 @@
$OpenBSD: patch-src_notification_c,v 1.3 2020/09/25 13:53:53 feinerer Exp $
Index: src/notification.c
--- src/notification.c.orig
+++ src/notification.c
@@ -58,7 +58,7 @@ void notification_print(const struct notification *n)
printf("\ticon_id: '%s'\n", n->icon_id);
printf("\tdesktop_entry: '%s'\n", n->desktop_entry ? n->desktop_entry : "");
printf("\tcategory: %s\n", n->category);
- printf("\ttimeout: %ld\n", n->timeout/1000);
+ printf("\ttimeout: %lld\n", (long long)n->timeout/1000);
printf("\turgency: %s\n", notification_urgency_to_string(n->urgency));
printf("\ttransient: %d\n", n->transient);
printf("\tformatted: '%s'\n", n->msg);
@@ -574,14 +574,14 @@ void notification_update_text_to_render(struct notific
char *new_buf;
if (hours > 0) {
new_buf =
- g_strdup_printf("%s (%ldh %ldm %lds old)", buf, hours,
- minutes, seconds);
+ g_strdup_printf("%s (%lldh %lldm %llds old)", buf, (long long)hours,
+ (long long)minutes, (long long)seconds);
} else if (minutes > 0) {
new_buf =
- g_strdup_printf("%s (%ldm %lds old)", buf, minutes,
- seconds);
+ g_strdup_printf("%s (%lldm %llds old)", buf, (long long)minutes,
+ (long long)seconds);
} else {
- new_buf = g_strdup_printf("%s (%lds old)", buf, seconds);
+ new_buf = g_strdup_printf("%s (%llds old)", buf, (long long)seconds);
}
g_free(buf);

View File

@ -1,6 +1,9 @@
@comment $OpenBSD: PLIST,v 1.3 2018/02/23 22:34:18 kn Exp $
@comment $OpenBSD: PLIST,v 1.4 2020/09/25 13:53:53 feinerer Exp $
@bin bin/dunst
bin/dunstctl
@bin bin/dunstify
@man man/man1/dunst.1
@man man/man1/dunstctl.1
share/dbus-1/services/org.knopwob.dunst.service
share/examples/dunst/
share/examples/dunst/dunstrc