ports/devel/glib20/files/glib-schemas.ucl.in
Baptiste Daroussin 522332dbc7 devel/glib: convert gio modules and glib schemas to triggers
Use trigger to compile glib schemas, and generate gio modules cache

PR:		262567
Reviewed by:	tcberner
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D34564
2022-03-18 11:00:23 +01:00

16 lines
344 B
Text

path: "%%PREFIX%%/share/glib-2.0/schemas"
cleanup: {
type: lua
sandbox: false
script: <<EOS
os.remove("%%PREFIX%%/share/glib-2.0/schemas/gschemas.compiled")
EOS
}
trigger: {
type: lua
sandbox: false
script: <<EOS
print("Compiling glib schemas")
pkg.exec({"%%PREFIX%%/bin/glib-compile-schemas", "%%PREFIX%%/share/glib-2.0/schemas"})
EOS
}