git: 655dd44bb3a2 - main - x11/hyprpicker: update to 0.4.0

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 29 Sep 2024 21:26:16 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=655dd44bb3a2f53339dfc9ac941460861bf81204

commit 655dd44bb3a2f53339dfc9ac941460861bf81204
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-09-29 17:25:12 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-09-29 21:25:30 +0000

    x11/hyprpicker: update to 0.4.0
    
    Changes:        https://github.com/hyprwm/hyprpicker/releases/tag/v0.4.0
    Reported by:    GitHub (watch releases)
---
 x11/hyprpicker/Makefile | 25 +++++++++++--------------
 x11/hyprpicker/distinfo |  8 +++-----
 2 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/x11/hyprpicker/Makefile b/x11/hyprpicker/Makefile
index 7366d3cb9bad..d0fd251d1473 100644
--- a/x11/hyprpicker/Makefile
+++ b/x11/hyprpicker/Makefile
@@ -1,11 +1,8 @@
 PORTNAME=	hyprpicker
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.3.0
+DISTVERSION=	0.4.0
 CATEGORIES=	x11 wayland
 
-PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
-PATCHFILES+=	36d974181da4.patch:-p1 # https://github.com/hyprwm/hyprpicker/issues/74
-
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	Color picker and magnifier for Wayland
 WWW=		https://github.com/hyprwm/hyprpicker
@@ -13,8 +10,10 @@ WWW=		https://github.com/hyprwm/hyprpicker
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	wayland-protocols>0:graphics/wayland-protocols
-LIB_DEPENDS=	libwayland-client.so:graphics/wayland \
+BUILD_DEPENDS=	hyprwayland-scanner>=0.4.0:devel/hyprwayland-scanner \
+		wayland-protocols>0:graphics/wayland-protocols
+LIB_DEPENDS=	libhyprutils.so:devel/hyprutils \
+		libwayland-client.so:graphics/wayland \
 		libxkbcommon.so:x11/libxkbcommon
 
 USES=		compiler:c++11-lib cmake gnome localbase:ldflags pkgconfig
@@ -32,21 +31,19 @@ CLIPBOARD_RUN_DEPENDS=	wl-copy:x11/wl-clipboard
 
 post-patch:
 # Extract (snapshot) version from the port instead of Git
-	@${REINPLACE_CMD} -i .nogit -e '/Get git info/,/^#$$/d' \
+	@${REINPLACE_CMD} -i .nogit -e '/Get git info/,/^include/{//p;d;}' \
 		-e 's/$${GIT_BRANCH}/main/' \
 		-e 's/$${GIT_COMMIT_HASH}/${GH_TAGNAME}/' \
-		-e '/$${GIT_COMMIT_MESSAGE}/d' \
+		-e 's/$${GIT_COMMIT_MESSAGE}/?/' \
 		-e 's/$${GIT_DIRTY}/portbld/' \
 		${WRKSRC}/CMakeLists.txt
 # Drop unused dependencies
-	@${REINPLACE_CMD} -e 's/ pango pangocairo//' \
-		-e 's/ libjpeg//' \
-		-e '/OpenGL/d; /GLESv2/d' \
-		-e '/pthread/d; /CMAKE_THREAD_LIBS_INIT/d' \
+	@${REINPLACE_CMD} -e '/pango/d' \
+		-e '/libjpeg/d' \
+		-e 's/pthread $${CMAKE_THREAD_LIBS_INIT}//' \
 		-e '/ rt)/d' \
 		${WRKSRC}/CMakeLists.txt
-	@${REINPLACE_CMD} -e '/GLES3/d' \
-		-e '/pthread\.h/d' \
+	@${REINPLACE_CMD} -e '/pthread\.h/d' \
 		${WRKSRC}/src/includes.hpp
 
 do-install:
diff --git a/x11/hyprpicker/distinfo b/x11/hyprpicker/distinfo
index abf66d576e4d..c4d144fbeae0 100644
--- a/x11/hyprpicker/distinfo
+++ b/x11/hyprpicker/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1715699592
-SHA256 (hyprwm-hyprpicker-v0.3.0_GH0.tar.gz) = a443188ef7619be48c9992ea208121772b7e1da6662d672c650e30e159eeb891
-SIZE (hyprwm-hyprpicker-v0.3.0_GH0.tar.gz) = 24591
-SHA256 (36d974181da4.patch) = 69543b77de140263ad9d45b2d3b87ddfedce64009fd9c89b64908f13a94f12bd
-SIZE (36d974181da4.patch) = 805
+TIMESTAMP = 1727630712
+SHA256 (hyprwm-hyprpicker-v0.4.0_GH0.tar.gz) = 479f23400f45e2e455ea7550d67848149f0d1092904fafdd4be6c8da5cc2be04
+SIZE (hyprwm-hyprpicker-v0.4.0_GH0.tar.gz) = 24530