While building inputmethods/libkkc package, g-ir-scanner creates cache files
under /libkkc-20210214_writes_to_HOME.
I would like to move this path to ${WRKBUILD}/.cache rather than /.
We can also disable cache output by setting GI_SCANNER_DISABLE_CACHE,
but this diff is using XDG_CACHE_HOME and change the path instead of disabling.
ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/inputmethods/libkkc/Makefile,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 Makefile
--- Makefile 27 Nov 2021 01:54:20 -0000 1.3
+++ Makefile 27 Nov 2021 05:22:36 -0000
@@ -52,6 +52,8 @@ CONFIGURE_ENV += LIBS="-lc++ -lc++abi -l
# suppress warnings (for C codes generated from Vala)
CONFIGURE_ENV += CFLAGS="-Wno-deprecated-declarations
-Wno-int-conversion -Wno-unused-value -Wno-tautological-pointer-compare
-Wno-incompatible-function-pointer-types -Wno-incompatible-pointer-types
-Wno-incompatible-pointer-types-discards-qualifiers"
+MAKE_ENV += XDG_CACHE_HOME=${WRKBUILD}/.cache
+
# tests/encoding.vala and tests/system-dictionary.vala crashes with
# Abort trap, bogus pointer (double free?).
# Attempting invalid encoding to CharsetConverter() at init() in