git: fdf37ec6360d - main - x11/wdisplays: unbreak build with textproc/py-scour

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 29 Mar 2023 16:49:49 UTC
The branch main has been updated by jbeich:

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

commit fdf37ec6360d430f2a71f85f85cc2e70ae7fc60f
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-29 16:39:22 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-29 16:49:08 +0000

    x11/wdisplays: unbreak build with textproc/py-scour
    
    ====> Checking for pkg-plist issues (check-plist)
    ===> Parsing plist
    ===> Checking for items in STAGEDIR missing from pkg-plist
    Error: Orphaned: share/icons/hicolor/scalable/apps/network.cycles.wdisplays.svg
    ===> Checking for items in pkg-plist which are not in STAGEDIR
    Error: Missing: share/icons/hicolor/scalable/apps/wdisplays.svg
    ===> Error: Plist issues found.
    *** Error code 1
    
    PR:             270525
    Reported by:    Chad Jacob Milios
---
 x11/wdisplays/Makefile                          |  4 ++--
 x11/wdisplays/files/patch-resources_meson.build | 13 +++++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/x11/wdisplays/Makefile b/x11/wdisplays/Makefile
index 595f5f2b3b7f..27b0ebe12e84 100644
--- a/x11/wdisplays/Makefile
+++ b/x11/wdisplays/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	wdisplays
 DISTVERSION=	1.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11 wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -24,6 +24,6 @@ USE_GNOME=	cairo gtk30
 GH_ACCOUNT=	artizirk
 PLIST_FILES=	bin/${PORTNAME} \
 		share/applications/network.cycles.${PORTNAME}.desktop \
-		share/icons/hicolor/scalable/apps/${PORTNAME}.svg
+		share/icons/hicolor/scalable/apps/network.cycles.${PORTNAME}.svg
 
 .include <bsd.port.mk>
diff --git a/x11/wdisplays/files/patch-resources_meson.build b/x11/wdisplays/files/patch-resources_meson.build
new file mode 100644
index 000000000000..58810677480e
--- /dev/null
+++ b/x11/wdisplays/files/patch-resources_meson.build
@@ -0,0 +1,13 @@
+https://github.com/artizirk/wdisplays/pull/1
+
+--- resources/meson.build.orig	2021-03-29 08:33:43 UTC
++++ resources/meson.build
+@@ -37,7 +37,7 @@ if scour.found()
+       install: true,
+       install_dir: icondir)
+   else
+-install_data(icon, install_dir: icondir)
++install_data(icon, install_dir: icondir, rename: '@0@.svg'.format(meson.project_name()))
+   endif
+ 
+ install_data(