git: 8006c7f4467e - 2023Q2 - lang/gir-to-d: Pull in a fix from upstream.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Apr 2023 19:30:29 UTC
The branch 2023Q2 has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8006c7f4467ef142cb333b50096075502ba210f5
commit 8006c7f4467ef142cb333b50096075502ba210f5
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-04-13 12:53:17 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-04-15 19:30:16 +0000
lang/gir-to-d: Pull in a fix from upstream.
Sponsored by: Serenity Cybersecurity, LLC
(cherry picked from commit 2a4f447e3b26d99d9498c644fef38f03f8fec90c)
---
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);
+