git: 8523402a804b - main - devel/glib20: Fix plist for !amd64 arches

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Thu, 03 Apr 2025 10:38:59 UTC
The branch main has been updated by arrowd:

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

commit 8523402a804ba88238a95b3bd5d171beb3c1bfd3
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-04-03 10:37:50 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-04-03 10:38:56 +0000

    devel/glib20: Fix plist for !amd64 arches
    
    Reported by:    fluffy
---
 devel/glib20/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile
index 33e83be1b291..55811895ddab 100644
--- a/devel/glib20/Makefile
+++ b/devel/glib20/Makefile
@@ -111,6 +111,11 @@ post-patch:
 
 CODEGENDIR=	${PREFIX}/share/glib-2.0/codegen
 
+post-install-DOCS-on:
+# this doc file gets created conditionally, so instead of adding another
+# PLIST_SUB item just create an empty file if it is missing
+	${TOUCH} ${STAGEDIR}${DOCSDIR}-2.0/const.VA_COPY_AS_ARRAY.html
+
 post-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/GConf/gsettings
 	${MKDIR} ${STAGEDIR}${PREFIX}/lib/gio/modules