git: 4285975bf9ca - main - x11/hyprpaper: update to 0.7.1

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 17 Aug 2024 00:59:37 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4285975bf9cafc6d2b9006b1966916c67307b7df

commit 4285975bf9cafc6d2b9006b1966916c67307b7df
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-08-16 19:26:53 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-08-17 00:55:35 +0000

    x11/hyprpaper: update to 0.7.1
    
    Changes:        https://github.com/hyprwm/hyprpaper/releases/tag/v0.7.1
    Reported by:    GitHub (watch releases)
---
 x11/hyprpaper/Makefile | 19 +++++++------------
 x11/hyprpaper/distinfo |  8 +++-----
 2 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/x11/hyprpaper/Makefile b/x11/hyprpaper/Makefile
index 3ff90a634d7e..8dab8c74a064 100644
--- a/x11/hyprpaper/Makefile
+++ b/x11/hyprpaper/Makefile
@@ -1,11 +1,8 @@
 PORTNAME=	hyprpaper
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.7.0
+DISTVERSION=	0.7.1
 CATEGORIES=	x11 wayland
 
-PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
-PATCHFILES+=	03cd362f494d.patch:-p1 # https://github.com/hyprwm/hyprpaper/issues/169
-
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	Blazing fast Wayland wallpaper utility with IPC controls
 WWW=		https://github.com/hyprwm/hyprpaper
@@ -13,8 +10,10 @@ WWW=		https://github.com/hyprwm/hyprpaper
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	wayland-protocols>0:graphics/wayland-protocols
+BUILD_DEPENDS=	hyprwayland-scanner>=0.4.0:devel/hyprwayland-scanner \
+		wayland-protocols>0:graphics/wayland-protocols
 LIB_DEPENDS=	libhyprlang.so:devel/hyprlang \
+		libhyprutils.so:devel/hyprutils \
 		libwayland-client.so:graphics/wayland \
 		libwebp.so:graphics/webp
 
@@ -26,14 +25,14 @@ PLIST_FILES=	bin/${PORTNAME}
 
 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//' \
+	@${REINPLACE_CMD} -e '/pango/d' \
 		-e '/OpenGL/d; /GLESv2/d' \
 		-e '/ rt)/d' \
 		${WRKSRC}/CMakeLists.txt
@@ -41,8 +40,4 @@ post-patch:
 	@${REINPLACE_CMD} 's,/run/user,/var&,' \
 		${WRKSRC}/src/ipc/Socket.cpp
 
-do-install:
-	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
-		${STAGEDIR}${PREFIX}/bin
-
 .include <bsd.port.mk>
diff --git a/x11/hyprpaper/distinfo b/x11/hyprpaper/distinfo
index 40f872f97fbc..eed81fe4e9e2 100644
--- a/x11/hyprpaper/distinfo
+++ b/x11/hyprpaper/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1714339536
-SHA256 (hyprwm-hyprpaper-v0.7.0_GH0.tar.gz) = 4840425013b95b49120aeb87d4d4e7d83f8956e847a537e1e6dd7f58a4b643b4
-SIZE (hyprwm-hyprpaper-v0.7.0_GH0.tar.gz) = 29724
-SHA256 (03cd362f494d.patch) = 73d65b5634d8edb1156042721023913d8224f3e41977394296d33d6994b31725
-SIZE (03cd362f494d.patch) = 1051
+TIMESTAMP = 1723836413
+SHA256 (hyprwm-hyprpaper-v0.7.1_GH0.tar.gz) = 1086a9c7e4126446315aed23fc610f0869b77c899b9d828f997e7188341391e7
+SIZE (hyprwm-hyprpaper-v0.7.1_GH0.tar.gz) = 29173