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,30 +1,30 @@ PORTNAME= gir-to-d PORTVERSION= 0.23.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MAINTAINER= arrowd@FreeBSD.org COMMENT= Create D bindings from GObject introspection files WWW= https://github.com/gtkd-developers/gir-to-d LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ldc2:lang/ldc LIB_DEPENDS= libphobos2-ldc-shared.so:lang/ldc \ libdruntime-ldc-shared.so:lang/ldc USES= gnome meson USE_GNOME= introspection USE_GITHUB= yes GH_ACCOUNT= gtkd-developers GH_TAGNAME= v${DISTVERSION} # a workaround for https://github.com/ldc-developers/ldc/issues/4000 CONFIGURE_ENV= DFLAGS=--allinst PLIST_FILES= bin/girtod .include 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); +