mirror of
https://git.freebsd.org/ports.git
synced 2025-05-07 19:30:46 -04:00
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
16 lines
344 B
Text
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
|
|
}
|