git: 8957b4bf8361 - main - x11/swaync: update to 0.4

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 20 Feb 2022 00:00:55 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8957b4bf836154a92028ffded3e7602ca2a67e0b

commit 8957b4bf836154a92028ffded3e7602ca2a67e0b
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-02-19 23:03:06 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-02-19 23:57:58 +0000

    x11/swaync: update to 0.4
    
    Changes:        https://github.com/ErikReider/SwayNotificationCenter/releases/tag/v0.4
    Reported by:    GitHub (watch releases)
---
 x11/swaync/Makefile  | 11 ++++++++---
 x11/swaync/distinfo  |  6 +++---
 x11/swaync/pkg-plist |  1 +
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/x11/swaync/Makefile b/x11/swaync/Makefile
index 28fe51296597..28f6fd2a0eb0 100644
--- a/x11/swaync/Makefile
+++ b/x11/swaync/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	swaync
 DISTVERSIONPREFIX=	v
-PORTVERSION=	0.3
-PORTREVISION=	1
+PORTVERSION=	0.4
 CATEGORIES=	x11
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -22,8 +21,14 @@ GH_ACCOUNT=	ErikReider
 GH_PROJECT=	SwayNotificationCenter
 
 post-patch:
+# Extract (snapshot) version from the port instead of meson.build
+	@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
+		-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
+		${WRKSRC}/src/meson.build
 # Let @sample handle default files under etc/
-	@${REINPLACE_CMD} -e "/inst.*conf/s/'[^']*/&', rename: &.sample/1" \
+	@${REINPLACE_CMD} -e "s,'/',get_option('prefix')," \
+		-e "/output.*json/s/'[^']*/&.sample/" \
+		-e "/inst.*css/s/'[^']*/&', rename: &.sample/1" \
 		${WRKSRC}/src/meson.build
 
 .include <bsd.port.mk>
diff --git a/x11/swaync/distinfo b/x11/swaync/distinfo
index 7e07ccc566a4..0e4432517ca4 100644
--- a/x11/swaync/distinfo
+++ b/x11/swaync/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1641652933
-SHA256 (ErikReider-SwayNotificationCenter-v0.3_GH0.tar.gz) = 5de14b6e7d94e20a4f1adb28fb9502725144505cc74aa8d115d76565bd308334
-SIZE (ErikReider-SwayNotificationCenter-v0.3_GH0.tar.gz) = 3122403
+TIMESTAMP = 1645311786
+SHA256 (ErikReider-SwayNotificationCenter-v0.4_GH0.tar.gz) = 20df98e46c32b4df0b1688694c22402ef1c8cf8fd4ad67d307c05a070eeae117
+SIZE (ErikReider-SwayNotificationCenter-v0.4_GH0.tar.gz) = 3131182
diff --git a/x11/swaync/pkg-plist b/x11/swaync/pkg-plist
index 9edaec319622..13766d92a126 100644
--- a/x11/swaync/pkg-plist
+++ b/x11/swaync/pkg-plist
@@ -1,6 +1,7 @@
 bin/swaync
 bin/swaync-client
 @sample etc/xdg/swaync/config.json.sample
+etc/xdg/swaync/configSchema.json
 @sample etc/xdg/swaync/style.css.sample
 lib/systemd/user/swaync.service
 share/bash-completion/completions/swaync