Index | Thread | Search

From:
Matthieu Herrb <matthieu@openbsd.org>
Subject:
Re: [update] wayland/swaylock 1.8.3
To:
yaydn@protonmail.com
Cc:
Rafael Sadowski <rafael@sizeofvoid.org>, "ports@openbsd.org" <ports@openbsd.org>
Date:
Mon, 4 Aug 2025 09:46:34 +0200

Download raw body.

Thread
On Mon, Aug 04, 2025 at 06:00:03AM +0000, yaydn@protonmail.com wrote:
> På søndag 3. august 2025 kl. 21:05, Rafael Sadowski
> >
> >
> > I would suggest to define V = 1.8.3.
> >
> 
> 
> Good point, thanks. This good?
> 
> Not sure if position of 'V =' is fine.
> 

Almost. Now with regenerated patches and WANTLIB synced (make
lib-depends-check):

Index: Makefile
===================================================================
RCS file: /local/cvs/ports/wayland/swaylock/Makefile,v
diff -u -p -u -r1.5 Makefile
--- Makefile	21 May 2025 17:08:04 -0000	1.5
+++ Makefile	4 Aug 2025 07:44:32 -0000
@@ -1,8 +1,8 @@
 COMMENT =	screen locker for Wayland
 
-DISTNAME =	swaylock-1.8.2
-REVISION =	0
-SITES =		https://github.com/swaywm/swaylock/releases/download/v1.8.2/
+V =		1.8.3
+DISTNAME =	swaylock-${V}
+SITES =		https://github.com/swaywm/swaylock/releases/download/v${V}/
 
 CATEGORIES =	wayland
 
@@ -23,7 +23,7 @@ LIB_DEPENDS =	graphics/gdk-pixbuf2 \
 		graphics/cairo \
 		wayland/wayland
 
-WANTLIB =	c cairo gdk_pixbuf-2.0 gobject-2.0 wayland-client xkbcommon
+WANTLIB =	c cairo gdk_pixbuf-2.0 gobject-2.0 m wayland-client xkbcommon
 
 DEBUG_PACKAGES =${BUILD_PACKAGES}
 
Index: distinfo
===================================================================
RCS file: /local/cvs/ports/wayland/swaylock/distinfo,v
diff -u -p -u -r1.3 distinfo
--- distinfo	15 Apr 2025 06:36:33 -0000	1.3
+++ distinfo	4 Aug 2025 07:44:32 -0000
@@ -1,2 +1,2 @@
-SHA256 (swaylock-1.8.2.tar.gz) = zyNjVjUa8iZ5/fvhBxh6FJrKFUkVc3/bw8pWae813KM=
-SIZE (swaylock-1.8.2.tar.gz) = 33588
+SHA256 (swaylock-1.8.3.tar.gz) = ye3AIs78hNV2LfnkgO7RZid3aJfe9S1jDANI3lPwT5Q=
+SIZE (swaylock-1.8.3.tar.gz) = 33817
Index: patches/patch-render_c
===================================================================
RCS file: /local/cvs/ports/wayland/swaylock/patches/patch-render_c,v
diff -u -p -u -r1.2 patch-render_c
--- patches/patch-render_c	14 Sep 2024 06:25:15 -0000	1.2
+++ patches/patch-render_c	4 Aug 2025 07:44:32 -0000
@@ -1,7 +1,7 @@
 Index: render.c
 --- render.c.orig
 +++ render.c
-@@ -6,7 +6,9 @@
+@@ -7,7 +7,9 @@
  #include "swaylock.h"
  #include "log.h"
  
@@ -9,5 +9,5 @@ Index: render.c
  #define M_PI 3.14159265358979323846
 +#endif
  const float TYPE_INDICATOR_RANGE = M_PI / 3.0f;
- const float TYPE_INDICATOR_BORDER_THICKNESS = M_PI / 128.0f;
  
+ static void set_color_for_state(cairo_t *cairo, struct swaylock_state *state,

-- 
Matthieu Herrb