git: 2a4f447e3b26 - main - lang/gir-to-d: Pull in a fix from upstream.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 15 Apr 2023 17:50:05 UTC
The branch main has been updated by arrowd:

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

commit 2a4f447e3b26d99d9498c644fef38f03f8fec90c
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-04-13 12:53:17 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-04-15 17:49:59 +0000

    lang/gir-to-d: Pull in a fix from upstream.
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 lang/gir-to-d/Makefile                             |  2 +-
 lang/gir-to-d/files/patch-source_gtd_GirFunction.d | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/lang/gir-to-d/Makefile b/lang/gir-to-d/Makefile
index 7d034b3518d3..c3cb6e74fce7 100644
--- a/lang/gir-to-d/Makefile
+++ b/lang/gir-to-d/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gir-to-d
 PORTVERSION=	0.23.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang
 
 MAINTAINER=	arrowd@FreeBSD.org
diff --git a/lang/gir-to-d/files/patch-source_gtd_GirFunction.d b/lang/gir-to-d/files/patch-source_gtd_GirFunction.d
new file mode 100644
index 000000000000..af780f6323ad
--- /dev/null
+++ b/lang/gir-to-d/files/patch-source_gtd_GirFunction.d
@@ -0,0 +1,12 @@
+--- source/gtd/GirFunction.d.orig	2022-03-23 22:26:51 UTC
++++ source/gtd/GirFunction.d
+@@ -1277,6 +1277,9 @@ final class GirFunction
+ 			if ( type.cType == "guchar*" )
+ 				return "char[]";
+ 
++			if ( type.cType == "gunichar2*" )
++				return "wchar[]";
++
+ 			if ( type.size > -1 )
+ 				size = to!string(type.size);
+